• 🏆 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!

[JASS] Is it possible to control script generated from GUI IF check actions

Status
Not open for further replies.
Level 3
Joined
Sep 11, 2004
Messages
63
So I was reading thru a .j file from map, I see a lot of ineffective code blocks like this one:

If (not(foo == true)) then
return false
end if
return true

After google a bit it seems to be a bug with worldedit GUI trigger script generator

IF foo == true THEN action in GUI will always produce the somewhat "inverse" code posted above.

I wonder if there is a way to make GUI trigger editor generate proper script for IF checks, because the overhead can become significant if these checks are in unit-attacked or periodic triggers.

Using pure JASS might be the solution to this,but currently I have no intentions to convert my GUI triggers to pure JASS.
 
Status
Not open for further replies.
Top