| 11-21-2004, 02:09 AM | #1 |
I am making a defense map, and I want a message to show up after every round. However, I don't know how to do this, or I thought I knew how. Usually what I do is Code:
Event: whatever Conditions: none Actions: Game - Display Text Message to (All Players) for X seconds the text: blah blah blah First, I have a trigger that triggers every round (every 180 seconds, run spawn units <gen>) For spawn units trigger, no events, no conditions, Code:
Actions: <<<<all of the spawning triggers go here (it is long)>>>> Game - Display to (All players) for 15.00 seconds the text: (|c00FFFF00Level + ((String((roundnumber + 1))) + (: |r + ((Name of (Last created unit)) + ( ( + ((String(EnemyCount[roundnumber])) + at each of the four spawning points))))))) Please help. I have spent hours yesterday, today, and still am now trying to figure this problem out. Thanks. |
| 11-21-2004, 02:23 PM | #2 |
After you've run your spawn triggers, and youve detected all the units that have done whatever they were supposed e.g get to a point or die. Create a action at the end trigger - run message.gen make a new triggers called message... no events or conditions just the text message, and it will show up after every round. Regardless you give us just about no info to work on, is it a td, aos, rpg ..what? |
| 11-21-2004, 02:35 PM | #3 |
The color code you use gives you a fully transparent color, so you can't see the text message: it's written with invisible ink. Replace the "c00FFFF00" with "cFFFFFF00". |
| 11-21-2004, 03:42 PM | #4 |
"Regardless you give us just about no info to work on, is it a td, aos, rpg ..what?" -- sorry, my post wouldn't post for 3 times because my internet kept crashing, and I had to go somewhere and wanted to post before, I won't do this again. :( Thanks for your help guys. ^_^EDIT: Nope, still doesn't work. Here is my trigger now.. Trigger #1 (Trigger Next Round) Code:
Event: Time - Timer expires Condition: Action: Trigger - Run Spawn Units <gen> (ignoring conditions) Trigger #2 (Spawn Units) Code:
Event: Condition: Action: Set TempForce = (All players) Trigger - Run Spawn Msg <gen> (ignoring conditions) <all spawning triggers go here> Trigger #3 (Spawn Msg) Code:
Event: Condition: Action: Set TempForce = (All players) Game - Display to TempForce for 15.00 seconds the text: ((|cffffff00Level + (String((roundnumber + 1)))) + (( :|r + (|cffffcc0025|r + (String(EnemyType[roundnumber])))) + |cffffcc00at each of the four spawning points.|r)) Custom script: call DestroyForce( udg_TempForce ) I have problems with other texts showing up too. I am using World Editor Unlimited (A third party editor) if that helps any. Thanks |
