• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

[Trigger] Custom script, "Missing End block" or "Unexpected )"

Status
Not open for further replies.
Level 12
Joined
Feb 5, 2018
Messages
521
  • Custom script: if life > GetUnitStateSwap(UNIT_STATE_LIFE, (uu) )
I am losing my mind, I have been moving the brackets, removing the brackets. And changing position of brackets with space. Nothing works.

I also used a variable, copied the custom text from the variable and it still does not work.

Before moving from GUI to JASS or vJass, I am practicing custom scripts.

:(
 
Level 12
Joined
Feb 5, 2018
Messages
521
Ahh, I added the then to an invidual custom script line.

EDIT:
I have another question
  • Custom script: set i = GetUnitAbilityLevelSwapped('A06H', u)
  • Custom script: call DisplayTextToForce( GetPlayersAll(), I2S(i) )
This always returns 0. I checked that the ability code is correct.

I need it to return the correct value to use a damage formula.

@disruptive_
 
Last edited:
Status
Not open for further replies.
Top