Staredit Newtork
Community
StarCraft
Games
Site
Favourites
Map centreing trigger problems

Creator: loozerman16
Time: Mar 7 2008, 9:06 pm

Post #1     loozerman16 Mar 7 2008, 9:06 pm

[Avatar]
 offline contact
Hi there, I'm new.... :unsure:

In my map are triggers that are "supposed" to centre the map whenever someone beats a level, but when somebody does, it only centres the map for one player, not the entire group....How do I make the trigger centre the map for everybody? The same problem also comes with not displaying the "Level Complete!" message...
Top

Post #2     NudeRaider Mar 7 2008, 9:22 pm

[Avatar]
Write your own destiny, or else someone will write it for you!
 offline contact
Probably you have an action in your trigger that makes the condition false after the first player runs this trigger. (Like switch 1 is set -> display text, clear switch 1)
To make sure every player runs those "current player actions" like center view or display text set a death counter (dc) for the force and clear the dc for current player after running the action.

In addition to the tutorial: In this case you set the dc to 1 for force 1. Then every player "has suffered 1 death" of the unit. Not physically, but now you can check for deaths of that unit. If current player has at least 1 death of that unit display the text and set the deaths back to 0 for current player. Then the next player still has 1 of HIS death count and also runs this trigger.
(signature image)
http://sonsofwar.pyrom.net/index.html___0% (user posted image) 100%
Top

Post #3     loozerman16 Mar 7 2008, 9:41 pm

[Avatar]
 offline contact
Well if one <unit> of any player (Not the CPU's) dies the game is set to end scenario (I told it to do that). The game is called "Who Dies First?"

Example of one of the faulty triggers (Level 5's exit)
Trigger
Players:
¤ Force 1

Conditions:
¤ Current Player brings at least 1 "Unlucky Player" to 'Level 5 Exit'.

Actions:
¤ Display: "Level 5 Completed!"
¤ Preserve Trigger
¤ COMMENT: LVL 5 Exit
¤ Remove all "Unlucky Player" for Force 1, "Anywhere"
¤ Create 1 "Motorbike" for Force 1 AT "Level 6 Spawn"
¤ Center View for Current Player AT "Level 6 Spawn"


There's another trigger that only centres the map (my friend did these) whenever a civ (set to "All Players/Current Player") gets to an exit.

Trigger
Players:
¤ All Players

Conditions:
¤ Current Player brings Exactly 1 "Unlucky Player" to "Level 1 Exit"

Actions:
¤ Centre View for current player at "Level 2 Spawn"



And I don't understand how "Switches" work, so there are none used on the map, everything is done by trigger. Is there some major problem with my triggers (I assume its the ordering)

Triggers for each person (1-7) involve killing their Air unit if they go past a area they shouldn't be.
Top

Post #4     Obama.Oyen Mar 7 2008, 9:44 pm

[Avatar]
 offline contact
Simply change the "Current Player" in both trigger conditions to "Force 1" for the 1st trigger and "All Players" for the 2nd trigger.
(signature image)
No Hablo Espanol!
Top

Post #5     NudeRaider Mar 7 2008, 10:01 pm

[Avatar]
Write your own destiny, or else someone will write it for you!
 offline contact
As I said you make your condition false in the actions (using switches for that was just an example). You remove all units of Force 1 as soon as ONE player gets there. THIS player sees the message but the NEXT player must again check the conditions but THAT player doesn't have unit on the beacon, so the actions won't fire for him.
I'll edit your trigger to show you how to fix it:

Quote from loozerman16
Trigger
Players:
¤ Force 1

Conditions:
¤ Current Player brings at least 1 "Unlucky Player" to 'Level 5 Exit'.

Actions:
¤ Preserve Trigger
¤ COMMENT: LVL 5 Exit
¤ Set death counts of Cantina for Force 1 to 1
¤ Remove all "Unlucky Player" for Force 1, "Anywhere"
¤ Create 1 "Motorbike" for Force 1 AT "Level 6 Spawn"



Then you need this trigger to do the actual move screen / display text:
Trigger
Players:
¤ Force 1

Conditions:
¤ Current Player has suffered at least 1 death of Cantina

Actions:
¤ Preserve Trigger
¤ COMMENT: LVL 5 Exit Display
¤ Set death counts of Cantina for Current Player to 0
¤ Display: "Level 5 Completed!"
¤ Center View for Current Player AT "Level 6 Spawn"



Quote from loozerman16There's another trigger that only centres the map (my friend did these) whenever a civ (set to "All Players/Current Player") gets to an exit.

Trigger
Players:
¤ All Players

Conditions:
¤ Current Player brings Exactly 1 "Unlucky Player" to "Level 1 Exit"

Actions:
¤ Centre View for current player at "Level 2 Spawn"

That trigger will do the center view only for Current Player (the one bringing the civ to the beacon). If you want ALL players to get their view centered when ANY player brings a civ to the beacon change the condition to:
All Players brings at least 1 "Unlucky Player" to "Level 1 Exit"
The yellow part is just a suggestions to avoid the trigger from not working when multiple players bring civs to the beacon the same time.

Quote from loozerman16And I don't understand how "Switches" work, so there are none used on the map, everything is done by trigger. Is there some major problem with my triggers (I assume its the ordering)

Switches are simple binary variables. You can rename them and they may have 2 values: cleared or set (0 or 1) and they can be checked in conditions.
(signature image)
http://sonsofwar.pyrom.net/index.html___0% (user posted image) 100%
Top

Post #6     NudeRaider Mar 7 2008, 10:05 pm

[Avatar]
Write your own destiny, or else someone will write it for you!
 offline contact
DARN.... Double post... I hate getting confused with the quote button...

PLS someone create a clearly different button for edit and quote...
This post was edited 1 time, last edit by NudeRaider: Mar 7 2008, 10:12 pm.
(signature image)
http://sonsofwar.pyrom.net/index.html___0% (user posted image) 100%
Top

Post #7     NudeRaider Mar 7 2008, 10:10 pm

[Avatar]
Write your own destiny, or else someone will write it for you!
 offline contact
Quote from OyenSimply change the "Current Player" in both trigger conditions to "Force 1" for the 1st trigger and "All Players" for the 2nd trigger.

Pls don't give faulty advice. Admittedly that would fix the center view bug, but only because there are no global actions in that trigger.
Also it wouldn't work at all in the 1st trigger because ALL units of Force1 are being removed when the 1st player fires the trigger, so the others STILL won't get their message.
The cleanest solution for current player actions like display text or play wav depending on a global event is to set a death counter for the players involved.
(signature image)
http://sonsofwar.pyrom.net/index.html___0% (user posted image) 100%
Top

Post #8     loozerman16 Mar 7 2008, 11:38 pm

[Avatar]
 offline contact
It seems to have worked! Thank you!
Top

Post #9     Shook1(ConFed) Mar 8 2008, 12:53 am

[Avatar]
 offline contact
If you are fairly new like you are saying and you need help with stuff like that, I suggest messing around with a few maps before actually starting on one yourself...
Top
0 members in this topic: None
+ 1 guest(s)


[03:37 am]
FlyingHat -- BEARS
[03:26 am]
[Dark_Marine]:] -- Meowth thats right!
[03:15 am]
NerdyTerdy -- IT
[03:15 am]
NerdyTerdy -- I OWNED.
[02:48 am]
[Echo]:] -- i was gonna ask dark marine to pop in :(
[02:45 am]
Obama.l)ark_ssj9kevin -- wtf fail you cant have the same person for that
[02:45 am]
Obama.l)ark_ssj9kevin -- thats right meowth? wtf?
You must log in to shout.

©2003-2008 Staredit Network.
Starcraft & Starcraft II are trademarks of Blizzard Entertainment.
Site Index   |   Terms of Service   |   Privacy Policy   |   Contributions