Hello! I want to report some findings how traify copes with the OUTER_SPRINT variables for crossplatform coding.
This gives a parse warning for the "%tutu_var%SHOPKN" after the EXTERN:
/* Nashkel shop */
CHAIN
IF WEIGHT #-1
~Global("C#BE_SHOPKN","LOCALS",0)
InParty("C#Brage") See("C#Brage") !StateCheck("C#Brage",CD_STATE_NOTVALID)~ THEN %tutu_var%SHOPKN shop_brage
~blabla~
END
IF ~~ THEN DO ~SetGlobal("C#BE_SHOPKN","LOCALS",1)~ EXTERN %tutu_var%SHOPKN 0
This gives a parse warning for the "%tutu_scriptbg%FTOWN2%eet_var%":
I_C_T %tutu_scriptbg%FTOWN2%eet_var% 1 C#BE_BGFTOWN2_1
== C#BrageJ IF ~InParty("C#Brage") See("C#Brage") !StateCheck("C#Brage",CD_STATE_NOTVALID)~ THEN ~blabla~
END
This gives parse warnings for all instances of %tutu_var%:
I_C_T %tutu_var%NOBW2 0 C#BE_NOBW2_0
== %tutu_var%NOBW2 IF ~InParty("C#Brage") See("C#Brage") !StateCheck("C#Brage",CD_STATE_NOTVALID)~ THEN ~blabla~
END
after traify-ing, this:
CHAIN
IF WEIGHT #-1
~NumTimesTalkedToGT(0)
InParty("C#Brage") InMyArea("C#Brage") !StateCheck("C#Brage",CD_STATE_NOTVALID)
Global("C#BE_GreetBardolan","LOCALS",0)~ THEN %tutu_var%BARDOL bardolan
~Blabla1~
== C#BrageJ ~I thank you, Bardolan. You did good.~
== %tutu_var%BARDOL ~Thank you, captain...~
END
IF ~~ THEN DO ~SetGlobal("C#BE_GreetBardolan","LOCALS",1)~ EXIT
becomes this pair (note that the @0 and @3 are not inside the .d-file):
CHAIN
IF WEIGHT #-1
~NumTimesTalkedToGT(0)
InParty("C#Brage") InMyArea("C#Brage") !StateCheck("C#Brage",CD_STATE_NOTVALID)
Global("C#BE_GreetBardolan","LOCALS",0)~ THEN %tutu_var%BARDOL bardolan
~Blabla1~
== C#BrageJ @1
== %tutu_var%BARDOL ~Thank you, captain...~
END
IF ~~ THEN DO ~SetGlobal("C#BE_GreetBardolan","LOCALS",1)~ EXIT
@0 = ~bardolan~ ~Blabla1~
@1 = ~I thank you, Bardolan. You did good.~
@2 = ~BARDOL~ ~Thank you, captain...~
If there is anything you could do to help weidu understand what the actual text for traify-ing is in these cases, that would be cool!