Jump to content

Weidu code question


Guest korean

Recommended Posts

Guest korean

Hi, all.

 

i have a question about weidu.

 

 

 

INTERJECT or INTERJECT_COPY_TRANS

== examj IF ~IsValidForPartyDialog("example") GlobalLT("foo","LOCALS",2)~

THEN ~@1~

== examj IF ~IsValidForPartyDialog("example") GlobalGT("foo","LOCALS",1)~

THEN ~@2 ~

END

 

In above situation, one of two state will be skipped? Or improper structure to flow? ???

Link to comment

Better to do it as two separate interjections, because if the first is false, the chain will break and you'll never see the second.

 

INTERJECT_COPY_TRANS someguy 4 examplesomeguy1

== examj IF ~IsValidForPartyDialog("example") GlobalLT("foo","LOCALS",2)~

THEN ~@1~

END

 

INTERJECT_COPY_TRANS someguy 4 examplesomeguy2

== examj IF ~IsValidForPartyDialog("example") GlobalGT("foo","LOCALS",1)~

THEN ~@2 ~

END

Link to comment

WeiDU sets the hidden variable examplesomeguy1 to 1 every time you write an interjection, so using different variables and placing your personal prefix in front of it might be useful. For example, if your prefix is GG, then it's

INTERJECT_COPY_TRANS someguy 4 GGexamplesomeguy1

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...