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

Adding Armor to a unit permanently in Jass

Status
Not open for further replies.

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,877
Like I said in your other post, anything you can do in GUI (the basic Trigger Editor) you can also do in Jass. The Trigger Editor is a graphical interface that layers on top of the Jass code, allowing you to write Jass code with the use of buttons/icons/drop-down menus/etc. Simply put, it hides the code behind an easy to understand and easy to use interface. For new users and those unfamiliar with coding this is much easier to work with than writing the code yourself.

With that in mind, here's how you can find the answer to your questions through the trigger editor:

example.png


The Trigger Editor provides a Search for text feature which will help you find anything you need. There's no need to ask us if you can adjust a unit's armor when the editor already has the answer. Then you simply convert your trigger to custom text (code) and look for the function you wanted. The names are pretty self-explanatory. This shows us that our GUI trigger was actually Jass code the entire time!

Events/Conditions/Actions are all considered functions.
 
Last edited:
Status
Not open for further replies.
Top