| 06-28-2004, 04:21 AM | #1 |
Hey... I was just wondering where we could learn how to use coustom text in the trigger editor, and also if you can change integrers like a units health or mana. I wanna trigger like this Integrer set target of abilities health/mana to x. You catch my drift. I'd mainly like to learn coustom text though, if it isnt that complicated ofcourse... |
| 06-28-2004, 10:35 AM | #2 | |
Quote:
the custom text is called JASS, it isn't difficult at all if you are familiar with a few other computer languages: my friend learned JASS for the most part in a very short time (few minutes) because of his knowledge of other languages. You Can change a units health or mana with triggers, which you don't need to know jass to do, it's a trigger function. If you use an advanced editor such as we unlimited there is an advanced function for changing the units max hp, or strength. |
| 06-28-2004, 02:27 PM | #3 |
Just so you know, units life is actually a real. As for your life trigger, there should be a GUI action 'Unit - Set Life of Unit' and 'Unit - Set Mana of Unit'. Just set your real-type variable X to what you want and then use the above actions to set the properties to X. As for Jass, the only reason I ever even use it is for local variables. Like MeuhAteTree said, if you have knowledge of other programming languages, it won't be too hard. In my opinion, Jass is rather painful because you have to type everything and it's case sensitive. In addition, you have to memorize the functions, making it even more trouble. I learned Jass (what I know of it) through making triggers in GUI and then using the 'Convert to Custom Text' command to see what it was like in Jass. Then I read through and studied the new version until I eventually figured out exactly what was going on. To help exemplify how Jass is wierd, the Jass command for Wait is "call TriggerSleepAction( X )" where X is the number of seconds. As for advanced World Editors, I would suggest you never get one. I have three main reasons for this:
|
| 06-28-2004, 04:41 PM | #4 |
This is undoubtedly one of the better JASS introductions out there. Also contains references to more complex JASS information, have a look if you got some time and patience to spare. ![]() |
| 06-28-2004, 11:38 PM | #5 |
Oh and you can convert integers to real values to use them to set unit life/mana using the "Convert inetger to real" function. |
