Event:
Player 1 leaves the game
Player 2 leaves the game
Player 3 leaves the game
etc.
Actions: Pick every unit owned by triggering player and do actions:
- Remove picked unit from the game
Ok. I can explain it to you by hand. Triggers are much easier to learn than they seem by first look :)
- Click F4 to open trigger editor.
- Now click ctrl+t or "create a new trigger"
- Now you see there are events, conditions and actions
- Events are what launch the trigger, then it...
There is a command in triggers (Action->Unit->Make vulnerable/invulnerable)
Basically you just have to make 2 triggers that:
Event:
Map intialization
Action:
Make "Structure 2" invulnerable
and
Event:
"Structure 1" dies
Action:
Make "Structure 2" vulnerable
You could also just add the...
Event: Every 10 seconds
Actions: Set player property gold to ((property (gold) of x)+((property (gold) of x)/5))
arithmetics is the +-/*
Idk if this helped :D
This is exactly same problem I had yesterday. I don't know about your spell but in my spell there was targets allowed: "non-hero". Thats why it worked only when I used it but when I putted my hero against the AI controlled boss it didn't work :D It took me long time to figure this out.
I hope...
Thanks for answers. Used MP's solution because I'm not so into Jass :P I guess your trigger would've worked as well.
-----------------------------
Is there any possibilty to cease trigger while it's in progress. I would like to do a heal function where if you stop attacking/spellcasting, after...
GUI = Game user interface meaning no Jass, only World-editor commands. Go to "Triggers" and then just add the events, conditions and actions just like these guys said putting all the variables/regions to your corresponding regions.
I have a solution I use in my map for skipping cutscenes. It's bit similar as MP's
Firstly create a variable "Vote_skip" or what do you want to name it. Set it as an integer.
Do triggers for each players like this (I don't remember exactly how the triggers go but surely you get an idea)...
http://world-editor-tutorials.thehelper.net/models.php
The world-editor-tutorials.thehelper.net has multiple tutorials :) Try checking there first if you encounter a problem.
Sorry I have no idea what your skill level is so I'm just going to explain thoroughly.
I'm pretty sure that's not the best way to do that. If you want to do a spell that has a special effect you have to use triggers. This has a good dummy guide in the...
This was something I did. I made units that check if an unit is in their range so they "damage area". For some reason the spell stopped working when I putted the "locust" on them. The trigger was like:
Peridiocal event: Every 0,1 seconds
Actions
- Pick all units matching condition (matching...
Ok so I'm basically doing a spellblock minigame into my map. There are casters casting spells in line from the other side of the arena. The spells must not hit the back wall. Instead you have to use abilities to create units in the way of the spells. So basically theres a spell coming trough and...
Ok so I'm doing a cutscene/cinematic on my map. Don't worry about the events. Another trigger has the run trigger event.
So basically everything goes fine to the part where the first line is said. Camera is correct and the line is right (Send transmission action). For some reason though the...
Would this be any help? Put Pickpocket instead of the Animate Dead ofcourse.
Enemy_gold is an integrer variable.
This trigger takes fifth of enemys gold and gives it to you.
If you want to make the amount random replace the number 5 with another variable and do another action of "set...
Firstly sorry for typos/grammar as I'm Finnish :P
So I basically want to do revenge type of spell where you cast the spell and next time you take damage the attacking unit will take same amount of damage he did to the you. Did this sound bit too hard? I'll give an example.
Unit 1 and Unit 2 are...