variable question...

Whisp_Rush

Active Member
Reaction score
0
Hi!

I'd like to do something like this with if/than/else: If variable has a value, than do nothing, else set variable xy....
is it possible to do this?
thx
 

evilwolf

Member
Reaction score
11
This...
Code:
Variable
    Events
        Map initialization
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Vari1 Equal to 1
            Then - Actions
                Do nothing
            Else - Actions
                Set Vari1 = 1
 

Whisp_Rush

Active Member
Reaction score
0
sorry I wrote it wrong... I mean, if the variable has been set to an item, than do nothing, else set variable to the last created item
 

Weep

Godspeed to the sound of the pounding
Reaction score
400
I don't mean to be accusatory, but did you even try?

Trigger:
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • ItemVariable Equal to No item
    • Then - Actions
      • Set ItemVariable = (Last created item)
    • Else - Actions
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top