Author Topic: How to edit the atributes of Paladin Summoned Horse?  (Read 382 times)

Legacy_WhiteTiger

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +0/-0
How to edit the atributes of Paladin Summoned Horse?
« on: May 03, 2014, 09:54:57 pm »


               

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?


               
               

               
            

Legacy_Pstemarie

  • Hero Member
  • *****
  • Posts: 4368
  • Karma: +0/-0
How to edit the atributes of Paladin Summoned Horse?
« Reply #1 on: May 03, 2014, 10:49:35 pm »


               

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.



               
               

               
            

Legacy_WhiteTiger

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +0/-0
How to edit the atributes of Paladin Summoned Horse?
« Reply #2 on: May 03, 2014, 11:31:06 pm »


               

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)



               
               

               
            

Legacy_Pstemarie

  • Hero Member
  • *****
  • Posts: 4368
  • Karma: +0/-0
How to edit the atributes of Paladin Summoned Horse?
« Reply #3 on: May 04, 2014, 12:25:49 am »


               

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.



               
               

               
            

Legacy_WhiteTiger

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +0/-0
How to edit the atributes of Paladin Summoned Horse?
« Reply #4 on: May 04, 2014, 01:58:55 am »


               


"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  '<img'>