| 07-23-2008, 08:59 PM | #1 |
When a unit dies in a region, how do I trigger it so another unit of the same type gets created in that same region at a random point 25 seconds later? (GUI) Also how do you hide a passive ability such as Critial Strike and Evasion, so it doesn't show on a unit, but still triggers as if it was still there. Thanks for all the help. |
| 07-23-2008, 09:04 PM | #2 |
Use the event A Unit Dies and check with the boolean condition if the unit is within the desired region, if you have multiple regions, you gonna need a loop. The place a wait in first line, then use the CreateUnit Action with a random point of the desired region (look out for leaks). That's it, i might post an example trigger later. To your 2nd question, give the unit a spellbook with the critical strike and evasion in it and disable the skill (Spellbook) for the corresponding player on map init. It will not be shown then anymore, however Crit and Evasion should still fire. ---Edit--- Here ya go with the basic trigger (you can also use a loop + if / then / else in the actions if you want to use the trigger for multiple regions. Trigger: RespawnUnit---Edit2--- The Spellbook is an item ability. And the leak is fixed (as much as possible in GUI) in my example trigger |
| 07-23-2008, 09:05 PM | #3 |
The spellbook is an item correct? Or is it a ability I am currently not seeing. EDIT: And is there a way to prevent leaks as well then? EDIT2: Thank you for your help. |
| 07-24-2008, 08:37 AM | #4 |
Just a quick question for that trigger you provided for me, that can work for multiple regions right? EDIT 1: And as for the spellbook idea. The reason why I want it to be disabled is because I want every unit on the map to be able to have Critical Strike and Evasion. Will it disable the spellbook for all units by the player? And will it even disable the book for newly created units as well? |
| 07-24-2008, 06:50 PM | #6 |
Well like any mapper, I want to make it as less buggy as possible, so you would suggest the JASS and MUI correct? EDIT: And sorry what I meant with the disable, is when you disable the ability, it will do it for all units, even newly created ones for the corrisponding player? |
| 07-24-2008, 06:53 PM | #7 |
I personally would always suggest vJASS or normal JASS. I prefer vJASS, because it reduce the amount to write and make quite some things much easier. |
| 07-24-2008, 06:59 PM | #8 |
Is vJass easier to learn as well? I mean I tried reading some tutorials on learning JASS, just to big, and unfortunatly I couldn't wrap my brain around it at the current moment. (Probably had to do with the fact I was running on no sleep) |
