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 :P

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 :P

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 :P

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.
[07:46 am]
RIVE -- :wob:
[2024-4-22. : 6:48 pm]
Ultraviolet -- :wob:
[2024-4-21. : 1:32 pm]
Oh_Man -- I will
[2024-4-20. : 11:29 pm]
Zoan -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
You should do my Delirus map too; it's a little cocky to say but I still think it's actually just a good game lol
[2024-4-20. : 8:20 pm]
Ultraviolet -- Goons were functioning like stalkers, I think a valk was made into a banshee, all sorts of cool shit
[2024-4-20. : 8:20 pm]
Ultraviolet -- Oh wait, no I saw something else. It was more melee style, and guys were doing warpgate shit and morphing lings into banelings (Infested terran graphics)
[2024-4-20. : 8:18 pm]
Ultraviolet -- Oh_Man
Oh_Man shouted: lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
oh ya I saw that when Armo posted it on Discord, pretty crazy
[2024-4-20. : 8:09 pm]
Vrael -- thats less than half of what I thought I'd need, better figure out how to open SCMDraft on windows 11
[2024-4-20. : 8:09 pm]
Vrael -- woo baby talk about a time crunch
[2024-4-20. : 8:08 pm]
Vrael -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
so that gives me approximately 27 more years to finish tenebrous before you get to it?
Please log in to shout.


Members Online: Roy, RIVE, IlyaSnopchenko