pete_smith1229 Posted October 11, 2022 Share Posted October 11, 2022 Similar to when a character reaches the experience threshold to level up, there's a message in the text window (or chatbox?) which appears as: CharName: Level Up Is it possible to write a message like "Special abilities gained" when a character reaches level 20 and another message at another specified level? Quote Link to comment
subtledoctor Posted October 11, 2022 Share Posted October 11, 2022 You'll have to add the string to the game and set a variable to its .tlk ref via "RESOLVE_STR_REF (~_____~)" Thren make a spell with opcode 139 "Display String" and the string parameter set to your string ref. Add "AP_[spell filename]" at the appropriate level to the appropriate kit ability table(s). Quote Link to comment
pete_smith1229 Posted October 11, 2022 Author Share Posted October 11, 2022 @subtledoctor Thanks, I'll try this out! Quote Link to comment
pete_smith1229 Posted October 12, 2022 Author Share Posted October 12, 2022 Got it working. Used the NI tool to find the relevant "CLABXXXX.2da" files (e.g. "CLABBA01.2da" for bard), manually edited the entry at a specific level and changed it to reference a new spell with the Display String parameter. Now I can script this. Thanks again @subtledoctor Quote Link to comment
jmerry Posted October 12, 2022 Share Posted October 12, 2022 (edited) One thing to note: abilities in the CLAB are removed when a character leaves the party and reapplied when they rejoin. So if this is being done for a character that's not the protagonist, that message will display again every time the character rejoins the party after leaving it (once they reach the appropriate level). [Edit - just noticed the IWD tag. OK, not really an issue in that game since you create full parties, unless the character gets petrified or something.] Edited October 12, 2022 by jmerry Quote Link to comment
pete_smith1229 Posted October 14, 2022 Author Share Posted October 14, 2022 @jmerry Yes, modding icewind but I wasn't aware of abilities being removed and reapplied when party member leaves/joins. Good to know when modding BG, thanks! Quote Link to comment
subtledoctor Posted October 14, 2022 Share Posted October 14, 2022 You can have your spell cast a second spell, and in the 2nd spell put a 206 effect with timing mode 9, and the resource set to the name of the first spell. I think that should make sure it only happens once. Quote Link to comment
pete_smith1229 Posted October 14, 2022 Author Share Posted October 14, 2022 @subtledoctor Sounds like a good plan, thanks! I noticed IWD:EE doesn't have a CLAB file for true class mages since they don't gain any abilities (unlike in BG:EE) so I created one using "CLABMA01.2DA" which I fortunately found in one of the threads you responded to: Quote Link to comment
subtledoctor Posted October 14, 2022 Share Posted October 14, 2022 4 hours ago, pete_smith1229 said: so I created one using "CLABMA01.2DA" This is the way. Quote Link to comment
mickabouille Posted October 15, 2022 Share Posted October 15, 2022 On 10/12/2022 at 11:32 PM, jmerry said: [Edit - just noticed the IWD tag. OK, not really an issue in that game since you create full parties, unless the character gets petrified or something.] There are NPC mods for IWD that intend to make it work a bit like the BG series, with aone or more charname and members that join or quit, banters and dialogues. Not sure if the way they work is different and if that changes anything onwhat is said above. For example https://github.com/Pocket-Plane-Group/IWD_NPC https://downloads.weaselmods.net/tag/npc-iwd/ (a whole bunch by Lava) https://github.com/ArtemiusI/KarihiNPC Quote Link to comment
pete_smith1229 Posted October 15, 2022 Author Share Posted October 15, 2022 @mickabouille Interesting, don't think I've seen those mods before. Thanks for sharing! Quote Link to comment
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.