Aller au contenu

Photo

Managing Lvlup packages?


  • Veuillez vous connecter pour répondre
1 réponse à ce sujet

#1
wyvern14

wyvern14
  • Members
  • 107 messages
I modified the 2da, packages and AL/AIP files to create specific packages for each of my recruitable followers, so I can manage what they gain as they level up. So far, that part works wonders, I can assign the AI, package and such to my characters and I tested it ingame. They have the right class and all.

However, I have an issue with referencing my AL files in the toolset. Going through the single player stuff, I noticed that the constants that manage the AL 2das are included in sys_autolevelup_h, but trying to deconstruct the hiring process of Alistair, Wynne and others, I can't find where it tells them to "select your talents, spells and skills according to const int TABLE_AL_NAME" except at the top of .

Also quite interesting - just adding that tidbit of info in packages.xls doesn't work. Only 2 followers have a value that is not 0 in there (Wynne has a 0, what tells her which spells to pick up? It's nowhere in her package!), so it's somewhere else, but where?

#2
wyvern14

wyvern14
  • Members
  • 107 messages
I figured it out and it works absolutely like I wanted to, no problem at ALL! If anyone needs pointers or doesn't know how to proceed, here's a quick breakdown:

EDIT the following 2DA
- packages (you'll have to refer the m2da stuff here, look at the # assigned to say Alistair to figure what goes where. Make sure your lines go under category 8 like the other followers)
- m2da list (add a row for each new tactic table you make in AIP followers + 1 row per ALname file you create. Jot the line #s down)
- aip_followers
- create a ALname for each of the NPC levelup pattern you want (this is handled internal from EVENT_TYPE_PARTY_MEMBER_HIRED and there is no need to reference your AL anywhere except m2da core)
- edit events and in the line that says EVENT_TYPE_PARTY_MEMBER_HIRED, write your own script (see overriding events on the wiki)

In the toolset:
- create a constant script, referencing your followers (const string NAME= "tag";)
- make a global plot to control who is recruited, who's in party, etc. Look at the single player gen00pt_party for references
- create a plot script for that plot, use the single player one for guidelines. You'll notice that it refers to autolevelup functions on recruitement, that's what we want to override without touching core player resources
- create a script to handle the EVENT_TYPE_PARTY_MEMBER_HIRED, copy paste the stuff in player core related to the event BUT include a "yourmodulename_sys_autolevel_h", which we'll create
- create a new script named "yourmodulename_sys_autolevel_h", where at the top you'll complement the strings with the # that corresponds to your AL files as seen in the m2da. After the line of code that says else if(GetTag(oChar) == GEN_FL_ZEVRAN) nRet = TABLE_AL_ZEVRAN;, duplicate this and refer to your followers, using their constant name as in your constant file ad point to the appropriate tables


And... Go in Creatures, assign the Followers global package, the right package and the right AI and you're set! Tada!