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

Status
Not open for further replies.
Level 13
Joined
Feb 5, 2018
Messages
567
  • 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 13
Joined
Feb 5, 2018
Messages
567
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