• 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.

[JASS] handles and widgets

Status
Not open for further replies.
Level 40
Joined
Dec 14, 2005
Messages
10,532
handler?

you mean handle.

a handle is ANYTHING that is not a Boolean, String, Integer, Real, or Code

a widget is a HANDLE that is not in the Player ( force, player, etc. ) or Trigger category

( someone correct me if im wrong on the widget )

therefore, any unit is a widget, so we can say

unit u == widget u <--- this will be true if widget u was assigned the same object as unit u

unit u == handle u <--- this will be true if handle u was assigned the same object as unit u

widget u == handle u <--- this will always be true

in Common.j, you can look all this upp

eg. Type Widget extends Handle

etc.
 
Level 4
Joined
May 6, 2006
Messages
79
thnx, but i still don't understand...

uhmm ok, I get the thing about handles (not handlers :oops: ) and widgets, but what's with them?? when can they come handy?? What's the best use for them??

It's not just curiousity... I'm making an RPG map and therefore I need complicated triggers for the custom spells and traps and bosses... maybe some of the information you give here save me some time and effort and make me the most thankful person on earth.
 
Status
Not open for further replies.
Top