Staredit Network

Staredit Network -> UMS Assistance -> Anti-Camp system
Report, edit, etc...Posted by chuiu on 2005-01-25 at 18:06:00
Well if he's using my method, that wouldn't really be necessary. Unless you can respawn and move to the anti-camp spot in less than 3 seconds.
Report, edit, etc...Posted by A dead marine on 2005-01-26 at 00:54:59
Thanks Chu, its working perfectly fine now. Although its a little glitchy. I told my friend to test my Laser Tag map with me, when I step on the anti-camp area with a marine, it either takes a long time to show the message, or it just doesn't shown. Thanks anyway Chu. I got another problem. I don't want to create another thread for it so here's the problem. I am trying to centering a location with texts showing in the beginning of the game. I wanted it just like S.W.A.T created by Mathrix(U) at the beginning. I wanted that it's showing text, but also centering a location so you can't move the screen if you try. Please help.. thanks. (I ask a lot of questions don't I?)
Report, edit, etc...Posted by chuiu on 2005-01-26 at 01:10:25
Just do 2 triggers. One that displays the text, and one that centers the view for as long as you want/need.

Conditions:
Elapsed time is at least 0 game seconds.
Elapsed time is at most 10 game seconds.

Actions:
Center view at 'Location'.
Preserve trigger.

That will center the view for the first 10 seconds of the game (10 seconds Starcraft time that is, if it is in fastest it will be less time).
Report, edit, etc...Posted by MindArchon on 2005-01-26 at 17:51:03
To make map revealers dissapear at the start (after 5 seconds) place map revealers everywhere for player 1 (or any player, you would just need vision) and do this

Trigger
Players:
¤ Player 1
Conditions:
¤ Game Time Elapsed = 5 Seconds
Actions:
¤ Remove All 'Map Reavealer' For Player 1


Note that remove all only works, not remove at location. You would then recreate revealers at locations you want the player to see.
Report, edit, etc...Posted by A dead marine on 2005-01-26 at 23:45:57
Thanks, MindArchon, but I already got the map revealer done, so thanks for posting anyway. Would you know how to make the anti-camp system to work for multiply players by the chance? What Chu's trigger gave me works perfectly if I test it with myself in the map, but when I ask my friend to test it with me, it doesn't work properly. It doesn't show the anti-camp message when I step on the location. When this anti-camp system is done, I only have to add a few sounds and heroes and the map will be done.
Report, edit, etc...Posted by chuiu on 2005-01-27 at 00:17:39
If you make it per force and use current player, it should work perfectly for everyone.
Report, edit, etc...Posted by A dead marine on 2005-01-27 at 00:42:34
Oh I see now, because I put them as Force, that's why it wasn't working, Thanks again Chu. smile.gif

EDIT: You mean the triggers for each players right?
Report, edit, etc...Posted by chuiu on 2005-01-27 at 10:27:55
I mean, you put the trigger for the group of players you want it for, the force they are in. Then under the conditions and actions for the player you use current player.
Report, edit, etc...Posted by A dead marine on 2005-01-27 at 22:03:54
QUOTE(Chu @ Jan 26 2005, 12:10 AM)
Just do 2 triggers.  One that displays the text, and one that centers the view for as long as you want/need.

Conditions:
Elapsed time is at least 0 game seconds.
Elapsed time is at most 10 game seconds.

Actions:
Center view at 'Location'.
Preserve trigger.

That will center the view for the first 10 seconds of the game (10 seconds Starcraft time that is, if it is in fastest it will be le... (trimmed)
[right][snapback]132733[/snapback][/right]


Hmm, my text isn't seem to be displaying at the beginning of the game. Although, the center is working finely. I have four hyper triggers in the section 'All Players'. I did the displaying trigger like this:

Condition:
Elapsed time is exactly 5 game seconds.
Or (If the one above doesn't work.)
Always

Action: (Example)
Display text for current player : (All colorful texts)
Wait for 90 milliseconds.
Display text for current player : (Text again)
Wait for 1000 milliseconds.
Display text for current player : (Text with colors)
Wait for 90 milliseconds.
Display text for current player : (Text with colors again)
Wait for 1000 milliseconds.

The 'elapsed time' or 'always' doesn't work. My friend told me that he thinks you need a specific line for it, but i'm not sure if his right.
Report, edit, etc...Posted by LegacyWeapon on 2005-01-27 at 22:19:54
Are you sure the trigger displaying text is being run for the human player?
Make sure you move the hyper triggers below the display text because the display text has waits and may cause wait blocking.
Report, edit, etc...Posted by chuiu on 2005-01-28 at 03:12:02
Are you testing in multiplayer? Be sure you do that before you try my next suggestion which is to make another condition which is player specific. Like "commands at least 1 any unit", etc.
Report, edit, etc...Posted by A dead marine on 2005-01-28 at 22:52:00
QUOTE(LegacyWeapon @ Jan 27 2005, 09:19 PM)
Are you sure the trigger displaying text is being run for the human player?
Make sure you move the hyper triggers below the display text because the display text has waits and may cause wait blocking.
[right][snapback]133825[/snapback][/right]

Yes, the trigger was being run by human players. I put the hyper triggers on the 'All Player' section, so now the display message trigger is on 'All Player' section. After trying out what you've said, it worked, the text is now showing! Thanks, but there weren't enough space for me to fit all the text I wanted to display though... how can I make another trigger box and after the last displayed text, it will continue on with the text on the next trigger box? Example:

Action:
- Display text ......
- Wait .......
- Display text ......
- Wait ....... (Last trigger, the 64th trigger)

New trigger box: (Continue on with the text above.)

Condition:
- (Not sure...)
Action:
- Display text .....
- Wait ......
- Display text .....
- Etc....

Hope you understand what I am trying to say.....

QUOTE(Chu @ Jan 28 2005, 02:12 AM)
Are you testing in multiplayer?  Be sure you do that before you try my next suggestion which is to make another condition which is player specific.  Like "commands at least 1 any unit", etc.
[right][snapback]133915[/snapback][/right]

I am still currently testing the map with myself on Battle.net for the basic triggers, examples like the display text above. When I am not so sure if this trigger will work when more players enter, I asks my friends to test it with me, like the anti-camp system.
Report, edit, etc...Posted by LegacyWeapon on 2005-01-28 at 23:48:38
QUOTE(A dead marine @ Jan 28 2005, 10:52 PM)
Yes, the trigger was being run by human players. I put the hyper triggers on the 'All Player' section, so now the display message trigger is on 'All Player' section. After trying out what you've said, it worked, the text is now showing! Thanks, but there weren't enough space for me to fit all the text I wanted to display though... how can I make another trigger box and after the last displayed text, it will continue on with the text on the next trigger box?
[right][snapback]134310[/snapback][/right]

At the first display box:
Actions:
Display
wait
display
wait
(last spot here)
Set Switch (or set counter [death counters are prefered])

Second display trigger
Conditions:
Switch is set (counter is w/e)
Next Page (2)