• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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