"Expected Endif" error, GUI.

Halo_king116

Working As Intended
Reaction score
153
Hello all, once again. :)

Basically, since I cannot find an answer to the problem I am having with the Doodad Limit for WotE, I have been forced to move onto another map.

Since I am a bit rusty, I had to look through the Leak Tutorials once again to find out how to remove Point leaks. And, I did everything as I normally would for removing the leak properly. As far as I can tell, theres nothing wrong with it. But, the WE shows an error message for the trigger that states "Expected Endif". Below is a copy of the simple trigger and below that is a picture of the error.

Thanks in advanced! :D


Code:
God To Players1
    Events
        Unit - A unit enters God to Blue <gen>
    Conditions
        (Unit-type of (Triggering unit)) Not equal to God's Little Helper
        (Unit-type of (Triggering unit)) Not equal to Angel
        (Unit-type of (Triggering unit)) Not equal to God
        (Unit-type of (Triggering unit)) Not equal to Satan
        (Unit-type of (Triggering unit)) Not equal to Gods Evil Builder (Fast Build)
        (Unit-type of (Triggering unit)) Not equal to Another Builder (Male)
        (Unit-type of (Triggering unit)) Not equal to Minion (Possessed)
        (Unit-type of (Triggering unit)) Not equal to Heaven's Guard
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Triggering unit) is A Hero) Equal to True
            Then - Actions
                Unit - Change ownership of (Entering unit) to Player 2 (Blue) and Change color
                Set Vari = (Center of Blue Receive <gen>)
                Unit - Move (Entering unit) instantly to Vari
                Custom script: Call RemoveLocation (udg_Vari)
            Else - Actions
                Set Vari = (Center of Blue Receive <gen>)
                Unit - Create 1 (Unit-type of (Entering unit)) for Player 2 (Blue) at Vari facing Default building facing (270.0) degrees
                Custom script: Call RemoveLocation (udg_Vari)
                Unit - Remove (Entering unit) from the game


error01mu0.jpg





Have a nice day! :) I really hope someone can help.
 
S

shadowvzs

Guest
try this with copy paste to custom script:
Code:
Custom script:   call RemoveLocation(udg_Vari)
 

Halo_king116

Working As Intended
Reaction score
153
Thanks a tonne you both. I knew it was so simple, yet I couldn't see where I went wrong myself. My instinct to capatalize the start of somethign was my folly :p

Well, thanks one last time! I learned something, and I can continue with my side project.

Have a nice day :)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top