• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

[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