• 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] Stupid Question

Status
Not open for further replies.
Level 6
Joined
Jul 25, 2005
Messages
221
Can anyone please answer this question:

How in the world do you guys know all the function commands for your triggers?
I have a hard time understanding Hello world -.-
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
Triggers use Action functions that you told em to use (TriggerAddAction)
And they use Functions used inside Actions functions
I hope you got me

And get a Jass NewGen Pack (not required for this but get it :p)
 
Last edited:
Level 6
Joined
Jun 30, 2006
Messages
230
How in the world do you guys know all the function commands for your triggers?

Honestly, I don't. I know a lot of ones I use regularly, but I'm often looking up the exact syntax in either Jass Craft or the using the function finder in JassNewGen. If I want to do something but don't know which function to use, find a word you THINK will be in there and search in Jass Craft/JassNewGen. Poke around and you will usually find it quickly.
 
Level 20
Joined
Apr 22, 2007
Messages
1,960
I don't know most of them either, although most of the native function names are really easy to guess. For example, want to get the triggering unit? GetTriggerUnit(). Want to get the first unit from a group? FirstOfGroup(yourgroup)... etc...
 
Level 6
Joined
Jul 25, 2005
Messages
221
Jass Craft aye? Well, guess I have lots to learn.

Mind giving me an example on this trigger, how to make it in Jass..eh.. not using bj functions or something? >.<

  • Melee Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Wait 0.05 seconds
      • Multiboard - Create a multiboard with 2 columns and 1 rows, titled Power
      • Set Multiboard_Power = (Last created multiboard)
      • Multiboard - Set the width for (Last created multiboard) item in column 1, row 1 to 10.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 1 to 10.00% of the total screen width
      • Multiboard - Set the display style for (Last created multiboard) item in column 2, row 1 to Show text and Hide icons
      • Multiboard - Set the display style for (Last created multiboard) item in column 1, row 1 to Show text and Hide icons
      • Multiboard - Hide (Last created multiboard)
      • Multiboard - Show (Last created multiboard)
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to (Current: + (String(intPower)))
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to (Max: + (String(intMaxPower)))
      • Multiboard - Hide (Last created multiboard)
      • Custom script: if GetLocalPlayer() == Player(0) then
      • Multiboard - Show (Last created multiboard)
      • Custom script: endif
      • Trigger - Turn on Power Plant Power System <gen>
      • Player - Disable No Damage Book for Player 1 (Red)
      • Unit - Add No Damage Book to Knight 0041 <gen>
 
Status
Not open for further replies.
Top