Aller au contenu

Photo

How to edit the atributes of Paladin Summoned Horse?


  • Veuillez vous connecter pour répondre
4 réponses à ce sujet

#1
WhiteTiger

WhiteTiger
  • Members
  • 479 messages

The abilities of this creature depend on the paladin level of the one who summoned it. The lowest stats are for paladin level 5, with improvements at paladin levels 8, 11, 15, 25, 30, 35, and 40.

 

Abilities
strength: 19 to 28
dexterity: 13
constitution: 17
intelligence: 6 to 13
wisdom: 13
charisma: 6
 
Script "x3_inc_horse" (cut):
    int nLevel=GetLevelByClass(CLASS_TYPE_PALADIN,oSummoner);
    int nMountNum=1;
             if (nLevel>7&&nLevel<11) nMountNum=2;
        else if (nLevel>10&&nLevel<15) nMountNum=3;
        else if (nLevel>14&&nLevel<25) nMountNum=4;
        else if (nLevel>24&&nLevel<30) nMountNum=5;
        else if (nLevel>29&&nLevel<35) nMountNum=6;
        else if (nLevel>34&&nLevel<40) nMountNum=7;
        else if (nLevel>39) nMountNum=8;
how to edit the atributes like HP, Strenght, Dex[...] of the paladin mount?


#2
Pstemarie

Pstemarie
  • Members
  • 2 745 messages

You need to edit the templates for the summoned paladin horses with a GFF editor. If I recall correctly, nMountNum is a reference that points to the resref of the correct template to summon - you can get the template names from the const declarations for that variable.



#3
WhiteTiger

WhiteTiger
  • Members
  • 479 messages

we have this information too (cut):

const string HORSE_PALADIN_PREFIX = "x3_palhrs";
object oSummoner=OBJECT_SELF;
object oMount;
string sResRef=HORSE_PALADIN_PREFIX;
int nMountNum=1; //[...]
oMount=HorseCreateHorse(sResRef+IntToString(nMountNum),GetLocation(oSummoner),oSummoner);

Is "x3_palhrs" the resref of the horse so we can edit it? 

 

I tried to change "x3_palhrs" to "nightmare004" and change sResRef+IntToString(nMountNum) to sResRef, but nothing changed. //(nightmare004 is a resref of nightmare horse - I tried to change only for test if works)



#4
Pstemarie

Pstemarie
  • Members
  • 2 745 messages

You don't need to change the script. You need to change the UTC files for the creatures. The files you're looking for are:

 

x3_palhrs1.utc

x3_palhrs2.utc

x3_palhrs3.utc

x3_palhrs4.utc

x3_palhrs5.utc

x3_palhrs6.utc

x3_palhrs7.utc

x3_palhrs8.utc

 

Using NWExplorer, export the files from XP3.KEY. Open them with GFF Editor, change the parameters you want, then drop the edited files into your override.

 

Alternatively, change the paletteID parameter of each UTC file to "255" in GFF Editor and drop them into a HAK.


  • Shadooow et WhiteTiger aiment ceci

#5
WhiteTiger

WhiteTiger
  • Members
  • 479 messages

"Using NWExplorer, export the files from XP3.KEY. Open them with GFF Editor, change the parameters you want, then drop the edited files into your override."

 

 

Perfect! thank you very much  :D