| 08-21-2003, 10:45 PM | #1 |
Just like the subject says: will this trigger work? It's meant to crash the game if more than one person is in the game, and I'm not in the game as well, but allow for it to be played in single-player. I want to preview my map tonight, but I don't want it to be distributed, because it's not finished. Code:
Crash if it is Hosted Without Me
Events
Time - Elapsed game time is 5.00 seconds
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Name of (Picked player)) Equal to Zoizite
(Name of (Picked player)) Equal to Zoi
Then - Actions
Set ZoiIsInGame = True
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of players in (All players controlled by a User player)) Greater than 1
ZoiIsInGame Equal to False
Then - Actions
Game - Display to (All players) the text: Don't host this map...
Wait 5.00 game-time seconds
Trigger - Run Crash <gen> (ignoring conditions)
Else - Actions
Do nothing
Crash
Events
Conditions
Actions
Trigger - Run (This trigger) (ignoring conditions)I'm previewing my map on Azeroth at 7:00pm Central time in the channel Zoi if anyone is interested. [edit] Found a bug already. |
| 08-21-2003, 10:47 PM | #2 |
Looks like it would work. Hrm. That'd be an interesting little tidbit to put into all backup maps. |
| 08-21-2003, 10:47 PM | #3 |
Looks good to me. Gotta love that infinite loop for crashing :D |
| 08-21-2003, 10:51 PM | #4 |
Thx for the quick reply. I fixed messup where on one of the lines checking my name. Added an OR condition, because without it, it'd be impossible to play(it would never get a TRUE) |
| 08-22-2003, 04:03 AM | #5 |
Well, Shvegait tested it, and it definately works... a little too good >:) He said he had to restart his comp after it, lol. I didn't want it to be that bad, but oh well. |
| 08-22-2003, 04:16 AM | #6 |
Umm...why don't you just have your loop end in defeat for everyone every 5 sec? |
| 08-22-2003, 04:18 AM | #7 |
Ya know... Instead of freezeing people's wc3 like a jerk you COULD just end in defeat. |
| 08-22-2003, 05:07 AM | #8 |
Lol, I think it's funnier this way. |
