Jump to content


Photo

Alternative action versions


  • Please log in to reply
5 replies to this topic

#1 temnix

temnix
  • Member
  • 983 posts

Posted 22 December 2017 - 09:44 AM

In my ACTION.IDS (BG:EE) I had "AddXpWorth(O:Object)," that's number 384. The G3 Guide lists two versions of that action at that number: the one I had and "AddXPWorthOnce(O:Object*,I:ClearStat*BOOLEAN)." As you can see, they aren't the same - the second can make a creature XP-worthless after it relinquishes its points. That's what I needed in my case, but the engine wasn't recognizing the alternative, refused to compile. I edited my ACTION.IDS and replaced the action at 384. And it works on my setup, but what about players who download my mod? Do I need to include my ACTION.IDS? That seems a bit much.



#2 Avenger_teambg

Avenger_teambg
  • Member
  • 604 posts

Posted 22 December 2017 - 02:46 PM

If you are making a weidu mod, you can add the entry with something like this:

 

APPEND ~action.ids~ ~384 AddXPWorthOnce(O:Object*,I:ClearStat*BOOLEAN)~        UNLESS ~AddXPWorthOnce~
 
This will work on current and future versions of EE.
 
You should have both versions of the action. 

Edited by Avenger_teambg, 22 December 2017 - 02:49 PM.

Avenger

#3 temnix

temnix
  • Member
  • 983 posts

Posted 23 December 2017 - 08:59 AM

So two entries for 384 are no problem? Good to know.



#4 subtledoctor

subtledoctor
  • Modder
  • 656 posts

Posted 26 December 2017 - 01:05 PM

The UNLESS line means it won't be appended if it is already there

#5 The Imp

The Imp

    Not good, see EVIL is better. You'll LIVE.

  • Member
  • 5150 posts

Posted 26 December 2017 - 01:31 PM

The UNLESS line means it won't be appended if it is already there
No. You failed to ... I don't know what, but you failed, as the install will make the .ids read:
384 AddXpWorth(O:Object)
...
384 AddXPWorthOnce(O:Object*,I:ClearStat*BOOLEAN)

And then, as there two 384's, termix asks if that is OK, and it is.

Edited by The Imp, 26 December 2017 - 01:33 PM.

Yep, Jarno Mikkola. my Mega Mod FAQ. Use of the BWS, and how to use it(scroll down that post a bit). 
OK, desert dweller, welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand. Ouh, actually it was still snow then.. but anyways.


#6 Avenger_teambg

Avenger_teambg
  • Member
  • 604 posts

Posted 27 December 2017 - 04:09 PM

Imp is correct again :) There are lots of actions with aliases, this was used even by the vanilla game, weidu can handle it too.

With the EE, we added a few 'enhancements' to old actions, but we kept the old syntax around so dialogs which use script source won't be broken.


Avenger