Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Random Triggers?
Random Triggers?
Oct 11 2007, 1:06 am
By: ColdFusion  

Oct 11 2007, 1:06 am ColdFusion Post #1



I'm working on a diplomacy map and I want to make it so when their morale is low one of their random cities (Gateways) has a rebellion thus turning it white. How do I achieve this?



None.

Oct 11 2007, 1:13 am who Post #2



just have a white computer player and if their morale is low give one gateway to that computer player.



None.

Oct 11 2007, 1:42 am 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

Quote from ColdFusion
I'm working on a diplomacy map and I want to make it so when their morale is low one of their random cities (Gateways) has a rebellion thus turning it white. How do I achieve this?
Use the custom score to track the morale. When it falls below 11 (max 100) give 1 Warpgate to player 7 (white).

Human Players
Conditions:

Current player Custom Score is at most 10
Actions:
Center Location 'Morale' on Warpgate owned by Current player at anywhere
Give all [any unit] at 'Morale' to player 7
Add 10 to Custom score for Current player
Preserve

This will give the leftmost Warpgate to white and add some morale, so the next rebellion won't occur directly after.
If you want a random Warpgate to be given instead of the leftmost it would become quite complicated...




Oct 12 2007, 2:20 am fritfrat Post #4



A simple way to do it would be to assign every city in the game a number and have a computer player's death counter constantly having 1 added to it with hyper triggers (looping back to 0 once it hits how many # cities there are). Once moral is low enough, just a trigger like this for every city:
Current player brings atleast 1 building to (#23), morale is atmost 10, p8 has suffered 23 deaths: give (city) to (white player), add morale, preserve trigger.
That way if you don't own the city # it's currently on the counter will just keep adding until it gets to one you own.

This would very likely be the easiest way to do this. If you still have any questions, post away :)



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[10:53 pm]
Oh_Man -- https://youtu.be/MHOZptE-_-c are yall seeing this map? it's insane
[2024-5-04. : 1:05 am]
Vrael -- I won't stand for people going around saying things like im not a total madman
[2024-5-04. : 1:05 am]
Vrael -- that's better
[2024-5-04. : 12:39 am]
NudeRaider -- can confirm, Vrael is a total madman
[2024-5-03. : 10:18 pm]
Vrael -- who says I'm not a total madman?
[2024-5-03. : 2:26 pm]
UndeadStar -- Vrael, since the ad messages get removed, you look like a total madman for someone that come late
[2024-5-02. : 1:19 pm]
Vrael -- IM GONNA MANUFACTURE SOME SPORTBALL EQUIPMENT WHERE THE SUN DONT SHINE BOY
[2024-5-02. : 1:35 am]
Ultraviolet -- Vrael
Vrael shouted: NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
Gonna put deez sportballs in your mouth
[2024-5-01. : 1:24 pm]
Vrael -- NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
[2024-4-30. : 5:08 pm]
Oh_Man -- https://youtu.be/lGxUOgfmUCQ
Please log in to shout.


Members Online: Zergy, jjf28