Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Trouble with Trigger
Trouble with Trigger
Jun 12 2008, 7:34 pm
By: Filleinconnue  

Jun 12 2008, 7:34 pm Filleinconnue Post #1



I have a slight problem with a Map I am Making for Warhammer 40,000. A Diplo like trigger where when a Player owns a Certain place it is Given Money at 0:00.
But, My problem is when the Timer rolls over - nothing happens.
¤Player 1-7
- Current Player Brings 4 Men to [_________]
- Allies Bring Nothing to [_________]
- Foes Bring Nothing to [__________]
— Give [Pylon] to Current Player at [____________]
- Preserve.

¤Player 1-7
- Countdown Timer is at 0 Sec
- Current Player Brings [Pylon] to [_____________]
- Allies / Foes do not bring exactly anything to [_________]
— Set Switch 1, Preserve

¤Players 1-7
- Countdown Timer is Exactly 0 Sec
- Switch 1 is Set
— Modify Resource amount, Add 200 Minerals
[ Clear Switch 1]
[Preserve]


This is for Control of a Pylon so that the player can get money off of controlling it at 0:00.
Anyone?



None.

Jun 12 2008, 8:37 pm Impeached Post #2



The switch trigger will only fire for P1, as the switch gets 1. set, then 2. runs for player 1 and gets cleared. Try just eliminating the switch and giving current player the minerals in the second trigger. Make sure you don't set the countdown timer back away from 0, either, until that trigger has a chance to fire for all 8 players.

Post has been edited 1 time(s), last time on Jun 12 2008, 8:59 pm by Impeached.



None.

Jun 13 2008, 10:09 pm NudeRaider Post #3

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Yeah the switch is redundant. Combine the last 2 triggers:

¤Player 1-7
- Countdown Timer is at most 0 Sec
- Current Player Brings [Pylon] to [_____________]
- Foes brings exactly 0 [any unit] to [_________]
— Modify Resource amount, Add 200 Minerals
[Preserve]

Also make sure the timer isn't being reset before the trigger has a chance to run.
Example scenario that could be responsible for the error:
P1 and P5 have captured a location.
Countdown timer is at 0:00
P1 fires his give money trigger
--
The Countdown reset trigger looks like this:
All Players:
Countdown timer is 0:00
Set timer to 2:00
--
=> P1 detects 0:00 and sets it to 2:00
P5 checks the give money trigger and finds the timer at 2:00 => doesn't fire.

Give the reset timer trigger to a comp player with the highest Player number (e.g. Player 8)
If you don't use comp players you need to make some sort of delay, so that the reset triggers is fired the next trigger loop.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2026-6-04. : 3:42 am]
RIVE -- Hellooooo, Nurse
[2026-6-03. : 4:19 pm]
NudeRaider -- Hello World!
[2026-6-01. : 4:03 pm]
IskatuMesk -- no Hello World? No Hello . jpeg? Not even ddosing some government website? smh my head
[2026-5-31. : 10:02 pm]
Symmetry -- I was really just figuring out how to compile
[2026-5-31. : 10:02 pm]
Symmetry -- I didn't make it do anything
[2026-5-31. : 9:17 pm]
Ultraviolet -- hell yeah. did you have trouble making the button functional, or just haven't gotten there yet?
[2026-5-31. : 8:29 pm]
Symmetry -- I made the marine shoot lasers and gave the medic a nonfunctional button
[2026-5-31. : 8:07 pm]
Ultraviolet -- Symmetry
Symmetry shouted: I did my first EUD thing today. Feels like me finding arsenal at age 8 again
haha for sure. in some ways it's even more exciting because you can play EUD maps on regular battle.net, don't need to convince someone to download your mod to play with you. what did you do?
[2026-5-31. : 6:47 pm]
Symmetry -- I did my first EUD thing today. Feels like me finding arsenal at age 8 again
[2026-5-31. : 3:20 pm]
l)ark_ssj9kevin -- le reddit
Please log in to shout.


Members Online: NudeRaider