Pocket Plane Group
Friends and Neighbors => Weimer Republic (WeiDU.org) => WeiDU => Topic started by: Nythrun on May 19, 2008, 04:53:43 PM
-
Before someone releases a mod using it, and there's back-compatibility to fret over?
/edit
Debug info is swapping these around for STRING_SET also, maybe other places - if anyone cares :)
-
Fixed for ALTER_TRANS. Can you give an example for STRING_SET?
-
I can't even find what I was doing anymore (a stupid trick with COPY - some_macro some_maco EVALUATE_BUFFER REINCLUDE some_macro).
STRING_SET doesn't accept #strrefs anyway so it can't possibly matter, I'd just wondered if it might have been related.
No worries.
-
How do you solve the backwards compatibility issues?
-
In this case (as I'm clearly fixing a bug, and the relevant feature is only a couple of versions old), I just ignore them, rather than adding a ALTER_TRANS_NOT_SWAP_AT_HASH_SIGNS.
Obviously, I'm the only developer who will get yelled at for breaking backwards compatibility and is expected to introduce PLEASE_FIX_THIS_BUG keywords (all other language developers will just point you to the New Way Of Writing Your Code).
-
No offense, I was just curious. (Since WeiDU really seems to care about backwards compatability [IF_EVAL].)
I forgot that ALTER_TRANS is a very recent addition.
-
Not much out there using it - I was still working with
REPLACE_SAY ~%CORAN_JOINED%~ %BGTCORANJState4% @0
and have only one line in bg1npc that uses ALTER_TRANS, with no .tra necessary:
REPLACE_SAY ~%tutu_var%BRIELB~ 14 @1
ALTER_TRANS ~%tutu_var%BRIELB~ BEGIN 14 END BEGIN 0 END BEGIN ACTION ~SetGlobal("P#Briel_Stay","GLOBAL",1) RealSetGlobalTimer("X#BriLostPatience","GLOBAL",1800)~ END
so this fix would let me do both at once, right?
-
Stuff that uses REPLACE_SAY can't be edited by ALTER_TRANS (since it's a state thing, not a transition thing).
-
I've used ALTER_TRANS tons in my PS:T Fixpack/UB/Tweak mods (not released yet, but soon). I certainly don't mind fixing the code, though, when 207 is released.
Seriously, ALTER_TRANS is such an immensely useful command, I dunno how you've all done so much without it. I mean that literally - I don't know how you've done a whole mess of things, cause I can't find any alternate way to do them (like adding/replacing journal entries, transition replies, changing a response trigger when you can't use REPLACE_TRIGGER_TEXT because the trigger is fine elsewhere, etc. etc. etc.
Don't read that as a request to be told how to do it otherwise, heh. I'm quite happy with ALTER_TRANS. :)
Qwinn
-
8) Brain-blowout. Sorry. An ALTER_TRANS that could do that is called REPLACE... should have reread the docs.
TRIGGER: The trigger condition for the transition. i.e "TRIGGER" ~Global("foo","GLOBAL",0)~
ACTION: The action performed if the transition is selected. i.e. "ACTION" ~SetGlobal("foo","GLOBAL",1)~
REPLY: The player’s reply, if any. i.e. "REPLY" ~REPLY #57922~
JOURNAL: Can add or change the journal entry. i.e. "JOURNAL" ~JOURNAL @100~
SOLVED_JOURNAL: Same as JOURNAL, except for entries into the solved section of the journal.
UNSOLVED_JOURNAL: Same as JOURNAL, except for entries into the unsolved section of the journal.
EPILOGUE: Specifies where the transition leads to (GOTO, EXTERN, or EXIT) i.e. EPILOGUE" ~EXTERN BVICONI 0~
FLAGS: Used to set transition flags manually, though I can’t imagine why one would do this.
-
REPLY: The player’s reply, if any. i.e. "REPLY" ~REPLY #57922~
JOURNAL: Can add or change the journal entry. i.e. "JOURNAL" ~JOURNAL @100~
Be aware that those are incorrect in the tutorial. Do not repeat the words "REPLY" and "JOURNAL" between the tildes. Proper usage is:
ALTER_TRANS dialogfile BEGIN ... END BEGIN ... END BEGIN "REPLY" ~#57922~ END
ALTER_TRANS dialogfile BEGIN ... END BEGIN ... END BEGIN "JOURNAL" ~@100~ END
Qwinn