Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Trigger Help (Please)
Trigger Help (Please)
Sep 15 2007, 4:24 pm
By: Tazzy  

Sep 15 2007, 4:24 pm Tazzy Post #1

Long forgotten founding member

Well what I am stuck on I would like some of the advanded USM mappers to help me. Well to be honist anyone who can trigger can help me.

AND if you are going to take the time to Reply to this PLEASE write it down in as much detail as possable for example as i do have a hard time to understand some people on this forum when they type :-_-: :

Con:
Always

Action:
Create 1 Marine for Player 1


What I would like is Triggers to:

- Choose a random player from the 6 that are playing

- When the choosen player has been picked "Remove his Marine" and "Replace with a Zergling" and to display a Text message only to him and then a text message to the other players saying a player has been choosen.

- When the "Zergling" moves to a beacon with a loaction Called "Power On/Off" I want a text message to show up to all "Marines" Saying "Power turnd Off" then have the 100 Minerals (Oxygen) set from the start Slowly decrease to 0, If it reachs 0 You all die and Zergling wins. So there fore the Zerglnig turned off power.
&
If the power is turned off, If a marine stands on the "Power on/off" location. The power is turned back on with the message "Power turned on" and the Oxygen slowly goes back up to 100. (Would like this to be a Perserve Trigger)


Can anyone Help me with these please?

Post has been edited 2 time(s), last time on Sep 15 2007, 4:29 pm by Tazzy.



Long forgotten founding member of sen

Sep 15 2007, 5:18 pm Forsaken Archer Post #2



0/1
2/3
4/5

All Players
-----------
Conditions:
Always
-----------
Actions:
Modify resources for All players: Set to 100 Ore.
Randomize 'Switch 1'
Randomize 'Switch 2'
Randomize 'Switch 3'


Player 1
-------------
Conditions:
*Whatever starts forces zergling choice*
'Switch 1' is set
'Switch 2' is set
'Switch 3' is set
Actions:
Center location labeled 'kill me plz' on Terran Marine owned by Player 1 at 'Anywhere'.
Remove all Terran Marine for Player 1.
Create 1 Zerg Zergling at 'kill me plz' For Player 1.
Display for current player: You r zergling. Rawr.

Player 2
-------------
Conditions:
*Whatever starts forces zergling choice*
'Switch 1' is set
'Switch 2' is set
'Switch 3' is cleared
Actions:
Center location labeled 'kill me plz' on Terran Marine owned by Player 1 at 'Anywhere'.
Remove all Terran Marine for Player 1.
Create 1 Zerg Zergling at 'kill me plz' For Player 2.
Display for current player: You r zergling. Rawr.

Player 3
-------------
Conditions:
*Whatever starts forces zergling choice*
'Switch 1' is set
'Switch 2' is cleared
'Switch 3' is set
Actions:
Center location labeled 'kill me plz' on Terran Marine owned by Player 3 at 'Anywhere'.
Remove all Terran Marine for Player 3.
Create 1 Zerg Zergling at 'kill me plz' For Player 3.
Display for current player: You r zergling. Rawr.

Player 4
-------------
Conditions:
*Whatever starts forces zergling choice*
'Switch 1' is set
'Switch 2' is cleared
'Switch 3' is cleared
Actions:
Center location labeled 'kill me plz' on Terran Marine owned by Player 4 at 'Anywhere'.
Remove all Terran Marine for Player 4.
Create 1 Zerg Zergling at 'kill me plz' For Player 4.
Display for current player: You r zergling. Rawr.

Player 5
-------------
Conditions:
*Whatever starts forces zergling choice*
'Switch 1' is cleared
'Switch 2' is set
'Switch 3' is set
Actions:
Center location labeled 'kill me plz' on Terran Marine owned by Player 5 at 'Anywhere'.
Remove all Terran Marine for Player 5.
Create 1 Zerg Zergling at 'kill me plz' For Player 5.
Display for current player: You r zergling. Rawr.

Player 6
-------------
Conditions:
*Whatever starts forces zergling choice*
'Switch 1' is cleared
'Switch 2' is set
'Switch 3' is cleared
Actions:
Center location labeled 'kill me plz' on Terran Marine owned by Player 6 at 'Anywhere'.
Remove all Terran Marine for Player 6.
Create 1 Zerg Zergling at 'kill me plz' For Player 6.
Display for current player: You r zergling. Rawr.


All Players
-----------
Conditions:
'Switch 1' is cleared
'Switch 2' is cleared
-----------
Actions:
Randomize 'Switch 1'
Randomize 'Switch 2'
Randomize 'Switch 3'
Perserve Trigger






All Players
-----------
Conditions:
Current Player brings at least 1 Zerg Zergling to 'off'.
'Switch 4' is cleared
-----
Actions:
Display text: "Power is off!" (this probably won't text all players, i'll try and think of a solution)
Set 'Switch 4.'

Preserve trigger.


All Players
-----------
Conditions:
'Switch 4' is set.
Actions:
Wait 5000 milliseconds. (adjust)
Modify resources for All players: Subtract 1 Ore.
Preserve trigger.


All Players
-----------
Conditions:
'Switch 4' is cleared.
Current player accumulates at most 100 Ore. (is this right?)
Actions:
Wait 5000 milliseconds. (adjust)
Modify resources for All players: Add 1 Ore.
Preserve trigger.


All Players
-----------
Conditions:
'Switch 4' is set.
Current player accumulates at most 0 Ore.
Actions:
// Zergling wins.

All Players
-----------
Conditions:
'Switch 4' is set.
Current player brings at least 1 Terran Marine to 'Power'.
Set 'switch 4' to cleared

Post has been edited 1 time(s), last time on Sep 15 2007, 5:40 pm by isolatedpurity.



None.

Sep 15 2007, 5:51 pm blacklight28 Post #3



What if you wanted to choose 3 people to be it out of 7 players, that's what happening in my map and I haven't randomized it.



None.

Sep 15 2007, 6:12 pm qPirateKing Post #4



IP pretty much covered everything.

I just want to mention that there's a way of randomizing players takes no triggers at all. First, make sure you're not using any computer players. Then, place a marine for 5 players and a zergling for the 6th, check the randomized start location box in the Forces window, and you're done.



None.

Sep 15 2007, 6:29 pm Hugel Post #5



Ok, so I got a little excited about this problem, sounds like a fun map.

I made a test map for you. with comments and such.

The map uses death counts instead of an on screen timer. It also does not use switches, which saves on strings. The count is completely invisible.
I assumed a few things, players only get ONE marine, and the zergling only gets ONE, and he does not get a marine at the same time.
I also reset the entire thing so it starts over choosing another new person as the zergling.

I tested what I could single player and it worked. With these triggers, you don't even need all 6 players, it will only pick a zergling from the players existing.
So in testing I was always picked as the zergling, but his triggers worked.

If there are any questions or you want to test it with someone on Bnet, I'm free for the next hour or so.

Post has been edited 1 time(s), last time on Sep 15 2007, 6:49 pm by Hugel.



None.

Sep 15 2007, 7:22 pm JaFF Post #6



Well, Tazzy, you're making a map that has lots of similarities with my The Thing: Deadly Trust. PM me if you want to see a copy of the latest version.



None.

Sep 15 2007, 7:35 pm Tazzy Post #7

Long forgotten founding member

Quote from Hugel
Ok, so I got a little excited about this problem, sounds like a fun map.

I made a test map for you. with comments and such.

The map uses death counts instead of an on screen timer. It also does not use switches, which saves on strings. The count is completely invisible.
I assumed a few things, players only get ONE marine, and the zergling only gets ONE, and he does not get a marine at the same time.
I also reset the entire thing so it starts over choosing another new person as the zergling.

I tested what I could single player and it worked. With these triggers, you don't even need all 6 players, it will only pick a zergling from the players existing.
So in testing I was always picked as the zergling, but his triggers worked.

If there are any questions or you want to test it with someone on Bnet, I'm free for the next hour or so.

Quote from JaFF
Well, Tazzy, you're making a map that has lots of similarities with my The Thing: Deadly Trust. PM me if you want to see a copy of the latest version.

Thanx for the test map ill try it out after. As i have already used IP triggers before you lot made your replys.

And Jaff, Your map will prob own mine. Im noob at making maps Kinda..... Im just learning.... STILL!



Long forgotten founding member of sen

Sep 15 2007, 7:48 pm Forsaken Archer Post #8



Erm... my triggers don't account for players not being there. My mistake.

One thing that could fix it:
Player 5
------
Conditions:
Player controls no units
Switch 1 is Cleared
Switch 2 is Set
Switch 3 is Cleared
-------
Actions:
Randomize switch 1-3

But you'd have to do that for every player. So the triggers keep growing.
Though, if you set it up right...
You could combined these not existing triggers with a "pick a new zergling" trigger, so that if the zergling leaves, the game could continue.



Edit: And that is assuming a non-existing player can use triggers. It might have to be controlled by All players



None.

Sep 15 2007, 7:52 pm Tazzy Post #9

Long forgotten founding member

Oh so it could chose say player 6 even though theres only 5 players... :><:
Do'h

I'm not the best of mappers. So I'll ask around for a helper to help trigger it.



Long forgotten founding member of sen

Sep 16 2007, 7:53 am JaFF Post #10



Quote from isolatedpurity
Edit: And that is assuming a non-existing player can use triggers.
Players that are not in game don't have any triggers fire. In other words, you must detect if a player is in-game before the randomization. Use the following trigger for the force all the humans are in:

Cond: right before the randomization
Actions: Set Deathcounter X for current player to 1; comment.

Then, add a condition that checks the required player's deathcounter X in the selection triggers IP already gave you. It would look like this:

Players: Comp1
Conditions: Player 1 has atleast 1 deaths of X + Player 1 switch combination
Actions: blah blah blah

Players: Comp1
Conditions: Player 2 has atleast 1 deaths of X + Player 2 switch combination
Actions: blah blah blah

...and so on.

Also, constantly randomize the switches instead of only once.



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: DarkenedFantasies, jy2413804, Moose