| 01-13-2006, 02:29 AM | #1 |
New problem! Anyway, i've got bosses in an RPG style setting, when a boss is attacked it begins a short triggered sequence where it plays the boss music, warns all players that a boss has been engaged and spawns any hidden helpers for the boss. What i want is a trigger (GUI please) that checks if a boss is currently engaged or not, and if it is, does nothing, but if it is not, resets the encounter. |
| 01-13-2006, 02:48 AM | #2 |
what a waste of a thread.....just like this post is a waste too :P |
| 01-13-2006, 02:55 AM | #3 |
Yeah, while i was looking over the stuff i'd posted i realised what the problem was. But theres a new problem now! |
| 01-13-2006, 10:46 AM | #4 |
run a loop trough players and check if their order is "attack" |
| 01-13-2006, 11:23 AM | #5 |
Check boss hp. If its full, then the battle obviously haven't started yet. |
| 01-13-2006, 12:04 PM | #6 |
or just use the event "boss is damaged" or attacked, whatever. |
| 01-14-2006, 08:55 AM | #7 |
Lets say boss event starts, players get him down to half HP and then they wipe, i want to find out some way to check if the boss is currently under attack or not, and if not reset the instance. The only way i could think was a trigger that fired each time he was attacked and checked his health at a pair of intervals, if the second check was less than the first check then do nothing. The only problem with that is healing abilities, so i need another way. |
| 01-15-2006, 04:09 PM | #8 |
put the Boss in a region, make it so if he leaves the region, trigger an order telling him to run back. When you want to see if he's under attack, check to see if there are any players in the region. The only problem with that is that they might not be attacking him, but still be in the region...unlucky them :p |
| 01-15-2006, 04:19 PM | #9 |
Like I said: check the order of the "heroes" that could attack him periodicaly |
| 01-15-2006, 05:15 PM | #10 |
What if a caster currently fights the boss, and he uses his spells instead of attack, the boss would still be in battle, try doing this: Code:
event- boss is damaged condition- none action- set custom value of boss to custom value of boss+1 Wait 5 sec set custom value of boss to custom value of boss-1 |
| 01-15-2006, 05:52 PM | #11 |
As an alternative method, you could give the boss a high-powered life regeneration ability. When he's attacked, remove the ability and start a timer that adds the ability back after five seconds. |
