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.
[01:53 am]
Ultraviolet -- :lol:
[06:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
[06:50 pm]
NudeRaider -- Vrael
Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
sounds like moisture control is often a pressing concern in your city
[06:50 pm]
Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
[06:49 pm]
Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
[06:48 pm]
Vrael -- On this Topic, I could definitely use some Introductions.
[06:48 pm]
Vrael -- Perhaps that utilizes cutting-edge technology and eco-friendly cleaning products?
[06:47 pm]
Vrael -- Do you know anyone with a deep understanding of the unique characteristics of your carpets, ensuring they receive the specialized care they deserve?
[06:45 pm]
NudeRaider -- Vrael
Vrael shouted: I've also recently becoming interested in Carpet Cleaning, but I'd like to find someone with a reputation for unparalleled quality and attention to detail.
beats me, but I'd make sure to pick the epitome of excellence and nothing less.
[06:41 pm]
Vrael -- It seems like I may need Introductions to multiple companies for the Topics that I care deeply about, even as early as Today, 6:03 am.
Please log in to shout.


Members Online: Roy, pinajsubi95