Staredit Network

Staredit Network -> UMS Assistance -> Diplomacy and World War map help
Report, edit, etc...Posted by JordanN_3335 on 2006-12-01 at 08:38:48
Well I need help on these triggers.
Trigger
Description:
CountDown timer
Players:
¤ All players
Conditions:
¤ CountDown Timer is at most 120
¤ Current Player brings exactly 1 building to Okinawa
¤ Foes bring exactly 0 buildings to Okinawa
¤ allies bring exactly 0 buildings to Okinawa
Actions:
¤ Modify resources for current player add 600 ore and gas
¤ Display for current player Okinawa Territory
¤ Preserve trigger

Now how would I make the timer reset back to 180 seconds and rewards the player 600 minerals per territory during that time of 120. Also I'm planning on using hyper triggers so the alliance system is more balanced.
Report, edit, etc...Posted by Shocko on 2006-12-01 at 09:06:29
I'm not entirely sure what you're saying but ima take a shot at it anyways.

Conditions
{
Countdown timer = exactly,180 seconds (if it is milliseconds; 18 000)
Bring 1 building to okiwana
foes bring 0 units to okiwana
allies bring 0 units to okiwana
}

Actions
{
Add resources
SetCountDownTimer = x seconds or if it is milliseconds multiply seconds by 100.
}

or if you ment start at 180, after 180 seconds you reset the counter it should be something like;

Conditions
{
Countdown timer = exactly,0 seconds ( or 0 milliseconds )
Bring 1 building to okiwana
foes bring 0 units to okiwana
allies bring 0 units to okiwana
}

Actions
{
Add resources
SetCountDownTimer = 180 seconds (or if it is milliseconds 18 000.)
}

If that isn't what you're looking for please try clarifying for me a little better.
Report, edit, etc...Posted by CheatEnabled on 2006-12-01 at 09:44:31
You can use a switch that sets every 120 seconds, and when the switch is set, you add the money. Then, the switch clears, and you set the timer back to 120.
Report, edit, etc...Posted by green_meklar on 2006-12-01 at 10:50:36
I think CheatEnabled's system is probably the best.

One other thing. Presumably you'll have lots of copies of that trigger (for different territories), so making it as small as possible would be nice. theoretically, you should be able to get rid of one condition by putting it this way instead:

Conditions:
Countdown timer is at most 120 seconds
Current player commands at least 1 buildings at [territory]
All players commands at most 1 buildings at [territory]

Keep in mind that using 'exactly' instead of 'at least' should have exactly the same effect, it's just that I personally prefer to use 'at least' except where it actually has to be exact.
Next Page (1)