Pocket Plane Group

Miscellany, Inc. => Infinity Engine Modding Q&A => Topic started by: Sticz on April 29, 2006, 03:42:40 PM

Title: Adding a STR REF and using in a title change
Post by: Sticz on April 29, 2006, 03:42:40 PM
How does one go about adding a str ref to the dlg.talk and then referring to that specific str ref in an effect on an NPC? I want to change the title of the class that my NPC has, but not assign a custom kit. If I wanted to re-name a paladin class of "undead hunter" with "vampire slayer" and use WeiDu to write the string, how do I get it so that whenever my mod is installed the title will show correctly?

Sticz ???
Title: Re: Adding a STR REF and using in a title change
Post by: Grim Squeaker on April 29, 2006, 05:19:03 PM
Well, title changes like this are handled with a spl.  And when you copy across the spl you have to SAY ~My string~ at the correct offset.  Look at the NPC Kit Pack at G3 for an example, specifically Minsc's kit, which is just a rename.
Title: Re: Adding a STR REF and using in a title change
Post by: Avenger_teambg on April 30, 2006, 04:33:18 AM
Since this isn't a kit, and using up a kit slot is not too polite towards other (kit) mods, probably creating a creature with the effect and using that magic SAY for the creature is the best.
Title: Re: Adding a STR REF and using in a title change
Post by: Grim Squeaker on April 30, 2006, 05:08:31 AM
Since this isn't a kit, and using up a kit slot is not too polite towards other (kit) mods, probably creating a creature with the effect and using that magic SAY for the creature is the best.


An invisible kit shouldn't harm anyone really.  Unless you're actually worried about filling up the 2da.
Title: Re: Adding a STR REF and using in a title change
Post by: Avenger_teambg on April 30, 2006, 05:34:00 AM
Well, it isn't really important to me how he would implement it, go with the easier way.
To me it is simpler to have a single creature file which i would supply anyway than additional 2da/spell manipulations.
Though you are right in that a hidden kit doesn't interfere with other mods too much.
Title: Re: Adding a STR REF and using in a title change
Post by: Grim Squeaker on April 30, 2006, 05:49:40 AM
But yeah, either way you want to have a spl file that you copy over with WeiDU and SAY at the appropriate offset.
Title: Re: Adding a STR REF and using in a title change
Post by: Avenger_teambg on April 30, 2006, 09:23:14 AM
But yeah, either way you want to have a spl file that you copy over with WeiDU and SAY at the appropriate offset.
No, i would directly add the effect into the creature :)
I can only agree that either way there would be a file copied over with weidu and applied SAY at the appropriate offset.
Just to clarify, i'm sure using the kit/spell is a bit more weidu friendly.
Title: Re: Adding a STR REF and using in a title change
Post by: Sticz on May 03, 2006, 11:22:02 PM
I plan on using the effect on the creature file. I have used this several times. I am running into the problem of just getting the STR REF to be static. As this is a working mod, the STR REFS are fluid,  I will need a static STR REF and a number to set it to.

I just need to figure out how to set it to a specific number.

Sticz