Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Map centreing trigger problems
Map centreing trigger problems
Mar 7 2008, 9:06 pm
By: loozerman16  

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



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...



None.

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

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

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.




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



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.



    None.

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



    Simply change the "Current Player" in both trigger conditions to "Force 1" for the 1st trigger and "All Players" for the 2nd trigger.



    None.

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

    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

    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 loozerman16
    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"
  • 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 loozerman16
    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)
    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.




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

    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

    DARN.... Double post... I hate getting confused with the quote button...

    PLS someone create a clearly different button for edit and quote...

    Post has been edited 1 time(s), last time on Mar 7 2008, 10:12 pm by NudeRaider.




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

    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 Oyen
    Simply 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.




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



    It seems to have worked! Thank you!



    None.

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



    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...



    None.

    Options
      Back to forum
    Please log in to reply to this topic or to report it.
    Members in this topic: None.
    [11:45 pm]
    ClansAreForGays -- Anyone wanna played Skewed StarCraft?
    [2026-4-14. : 12:07 am]
    Vrael -- NudeRaider
    NudeRaider shouted: Vrael ranting still is though
    you're a gentleman and a scholar, thank you
    [2026-4-13. : 10:07 pm]
    NudeRaider -- ya why phone people when you can just write letters
    [2026-4-13. : 9:37 pm]
    IskatuMesk -- I have never and will never own a phone
    [2026-4-13. : 9:15 pm]
    NudeRaider -- Vrael ranting still is though
    [2026-4-13. : 9:14 pm]
    ClansAreForGays -- anticapitalism isnt edgy anymore
    [2026-4-13. : 3:31 pm]
    Vrael -- it only costs 50% of my post-tax salary for life and in return I get to also become a drone whose sole purpose is CAPITALISM
    [2026-4-13. : 3:30 pm]
    Vrael -- pssht, you're still using a phone? I just record 100% of my life using my ElonBrainChip
    [2026-4-13. : 2:13 pm]
    NudeRaider -- bro I don't go anywhere without my phone to record anything significant
    [2026-4-13. : 1:28 pm]
    Vrael -- Zoan
    Zoan shouted: not if u wer there
    id say even if you were there its tricky, human memory can be very faulty
    Please log in to shout.


    Members Online: Zincoshine