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.
[2026-6-26. : 10:31 am]
NudeRaider -- blessed innocent soul knows nothing of the strife we had before EUDs were discovered :teehee:
[2026-6-23. : 3:29 am]
DarkenedFantasies -- Probably just didn't care. For example, at some point before release, they've updated the graphics of some of the Protoss buildings (Forge, CyberCore, Citadel, Observatory, Arbiter Tribunal), but instead of properly re-rendering them with edited 3D models, they did crappy copy-paste jobs on the rendered graphics.
[2026-6-22. : 8:35 pm]
Ultraviolet -- :wob:
[2026-6-21. : 11:38 pm]
Symmetry -- :wob:
[2026-6-21. : 4:56 am]
Ultraviolet -- I suppose we'll likely never know, but my guess would be that they already saw it operating successfully and there was no monetary incentive to finish the original work. And the dev cycle in old school Blizzard was so hectic, it's possible it just got forgotten about after the original game got released. Plus there's an element of existing MPQ files that were packaged with the original discs becoming outdated if they updated it. And it's not like they remade the original MPQs, they just made new ones for BW specifically
[2026-6-21. : 4:26 am]
Oh_Man -- so that makes me think maybe the theory they are unfinished is not true and its a deliberate design decision, coz why not finish them wen ur making brood war?
[2026-6-21. : 4:25 am]
Oh_Man -- the thing is thos buildings are from classic. that means they went ahead and made brood war without ever finishing the 'unfinished' buildings
[2026-6-20. : 6:15 pm]
Ultraviolet -- Yeah he's talked about a lot of that stuff in his casts before. It seems plausible. Especially knowing how Blizzard of yesteryear operated.
[2026-6-20. : 3:47 pm]
NudeRaider -- to clarify: couldn't recall the behavior for every single Protoss building but I was aware the disparity exists.
[2026-6-20. : 3:43 pm]
NudeRaider -- Contained nothing new for me. Didn't know all building's behavior, but very much all unit's. Also Terran balance whine - also nothing new :lol:
Please log in to shout.


Members Online: Symmetry, Prankenstein, O)FaRTy1billion[MM]