• 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] (boolexpr, widgets, etc...)

Status
Not open for further replies.
Level 26
Joined
Aug 18, 2009
Messages
4,099
BoolExprs are objects that store a function or more and are meant to return a boolean value through these functions. They are used in GroupEnum-functions for example to filter out unwanted units. They are a way of dynamically passing/calling code.

Here is an API for them. And, Not and Or create new boolexprs from other ones and you can also take a look into the children types conditionfunc and filterfunc (which are practically the same). They also have constructors but do not produce a new instance each time, only one per function, so that recycles.

Widget is the parent type of destructable, item and unit, virtually these are interactive objects in the 3d environment with life. There are some functions for them.

I do not get your second question. You want to know what the parameters mean in various functions? Well, I doubt you will find a complete list but most is obvious from name and context, else ask for the specific.
 
Level 13
Joined
Sep 13, 2010
Messages
550
native GetTerrainCliffLevel takes real x, real y returns integer so what you have to put in? Simple, for example give the reals for 128 , 128 point:
if GetTerrainCliffLevel( 128 , 128 ) == 1 then You have to add as much argument to make it work. constant native GetLearnedSkillLevel takes nothing returns integer it takes nothing -> call GetLearnedSkillLevel( ) nothing need in bracket. All thing you give in the function must be separated with , . If takes integer give 1 if takes integer for an unit's id like 'unit' or GetUnitTypeId( UNIT ) etc. Widgets are units, destructables and items. At the end you can get things like call SaveInteger( SpecialButtons , pid * 5 + 5 , int , LoadInteger( SpecialButtons , pid * 5 + 5 , LoadInteger( SpecialButtons , 73 , pid ) ) )

Off topic: My JNGP jass editor doesn't knows Hashtable handler natives, functions. It is completelly missing from the database. How?
 

Attachments

  • hmmm....JPG
    hmmm....JPG
    64.9 KB · Views: 253
well its ovious that jass manual = jass helper manual, same as heineken = beer :)...

I do not get your second question. You want to know what the parameters mean in various functions? Well, I doubt you will find a complete list but most is obvious from name and context, else ask for the specific.

and yeah I want to know if there's a parameter tutorials, like what I have stated above, boolexpr, widgets, etc...
 
Level 20
Joined
Jul 6, 2009
Messages
1,885
well its ovious that jass manual = jass helper manual, same as heineken = beer :)...



and yeah I want to know if there's a parameter tutorials, like what I have stated above, boolexpr, widgets, etc...
...you won't find vanilla (normal; non vJASS) JASS info there.
^ That's what i wanted to say.

And for your parameters question, you can find all functions in JASSCraft (and in JNGP, there's a function list in trigger editor) and which parameters they require. You can also find all parameter types in JASSCraft and whether they extend or are children of another type.
 
Last edited:
Status
Not open for further replies.
Top