Multi-Trigger?

FMAlchemist

New Member
Reaction score
4
well, i got a trigger, that if a player pressed the LEFT arrow key, it plays a cinimatic, of just text, and a black screen. ( i did black screen by zooming really close into the ground. because fade seems to ally to all players)

and in 1 player it works like a charm, but when testing it with other players, it seems to screw up.

like. if player 1 press left, and is watching the cinimatic. and 10sec later, player 2 press`s left, the cinimatic seems to kind of glitch up.

both players r running it of the same tirgger. (i think this is the problem) is there a way to like, split the trigger, into 2 for both players, but only using 1 trigger?

~~

edit: they are ment to watch the cinimatic at seperaite times.
 

Choppa

www.warcraft-gamers.po.gs
Reaction score
59
Hmm...

Variable arrays?

I don't know what the trigger looks like?

Post code please?
 

FMAlchemist

New Member
Reaction score
4
Code:
Team Select Pl1
    Events
        Player - Player 1 (Red) Releases the Right Arrow key
        Player - Player 2 (Blue) Releases the Right Arrow key
        Player - Player 3 (Teal) Releases the Right Arrow key
        Player - Player 4 (Purple) Releases the Right Arrow key
        Player - Player 5 (Yellow) Releases the Right Arrow key
        Player - Player 6 (Orange) Releases the Right Arrow key
    Conditions
        Main_Menu_Cam_Help[(Player number of (Triggering player))] Equal to 2
    Actions
        Set Main_Menu_Cam_Help[(Player number of (Triggering player))] = 0
        Camera - Set (Triggering player)'s camera Distance to target to -20.00 over 0.00 seconds
        Camera - Set (Triggering player)'s camera Angle of attack to 90.00 over 0.00 seconds
        Camera - Set (Triggering player)'s camera Angle of attack to -90.00 over 0.00 seconds
        Cinematic - Disable user control for (Player group((Triggering player)))
        Cinematic - Turn cinematic mode On for (Player group((Triggering player)))
        Cinematic - Send transmission to (Player group((Triggering player))) from a Player 12 (Brown) No unit-type named   at (Center of (Playable map area)): Play No sound and display so cold.....  Modify duration: Set to 3.00 seconds and Wait
        Cinematic - Send transmission to (Player group((Triggering player))) from a Player 12 (Brown) No unit-type named   at (Center of (Playable map area)): Play No sound and display the world outside i....  Modify duration: Set to 3.00 seconds and Wait
        Cinematic - Send transmission to (Player group((Triggering player))) from a Player 12 (Brown) No unit-type named   at (Center of (Playable map area)): Play No sound and display i can see it throug....  Modify duration: Set to 3.00 seconds and Wait
        Cinematic - Send transmission to (Player group((Triggering player))) from a Player 12 (Brown) No unit-type named   at (Center of (Playable map area)): Play No sound and display loud bangs... what ....  Modify duration: Set to 3.00 seconds and Wait
        Cinematic - Send transmission to (Player group((Triggering player))) from a Player 12 (Brown) No unit-type named   at (Center of (Playable map area)): Play No sound and display I hear foot steps c....  Modify duration: Set to 3.00 seconds and Wait
        Cinematic - Send transmission to (Player group((Triggering player))) from a Player 12 (Brown) No unit-type named   at (Center of (Playable map area)): Play No sound and display Its to soon for lun....  Modify duration: Set to 3.00 seconds and Wait
        Cinematic - Send transmission to (Player group((Triggering player))) from a Player 12 (Brown) Archmage named Admiral of the flee... at (Center of (Playable map area)): Play No sound and display Well, well, well, h....  Modify duration: Set to 3.00 seconds and Wait
        Cinematic - Send transmission to (Player group((Triggering player))) from a Player 12 (Brown) Archmage named Admiral of the flee... at (Center of (Playable map area)): Play No sound and display Herm?.  Modify duration: Set to 2.00 seconds and Wait
        Cinematic - Send transmission to (Player group((Triggering player))) from a Player 12 (Brown) Archmage named Admiral of the flee... at (Center of (Playable map area)): Play No sound and display Don't you want to f....  Modify duration: Set to 3.00 seconds and Wait
        Cinematic - Send transmission to (Player group((Triggering player))) from a Player 12 (Brown) Archmage named Admiral of the flee... at (Center of (Playable map area)): Play No sound and display Herm?.  Modify duration: Set to 2.00 seconds and Wait
        Cinematic - Send transmission to (Player group((Triggering player))) from a Player 12 (Brown) Archmage named Admiral of the flee... at (Center of (Playable map area)): Play No sound and display Have you lerned you....  Modify duration: Set to 2.00 seconds and Wait
        Cinematic - Send transmission to (Player group((Triggering player))) from a Player 12 (Brown) Militia named Seaman at (Center of (Playable map area)): Play No sound and display Admiral! Admiral!.  Modify duration: Set to 2.00 seconds and Wait
        Cinematic - Send transmission to (Player group((Triggering player))) from a Player 12 (Brown) Archmage named Admiral of the flee... at (Center of (Playable map area)): Play No sound and display ....  Modify duration: Set to 2.00 seconds and Wait
        Cinematic - Send transmission to (Player group((Triggering player))) from a Player 12 (Brown) Militia named Seaman at (Center of (Playable map area)): Play No sound and display ....  Modify duration: Set to 2.00 seconds and Wait
        Cinematic - Send transmission to (Player group((Triggering player))) from a Player 12 (Brown) Archmage named Admiral of the flee... at (Center of (Playable map area)): Play No sound and display Well? what the bloo....  Modify duration: Set to 3.00 seconds and Wait
        Cinematic - Send transmission to (Player group((Triggering player))) from a Player 12 (Brown) Militia named Seaman at (Center of (Playable map area)): Play No sound and display Oh! your ship is re....  Modify duration: Set to 2.00 seconds and Wait
        Cinematic - Send transmission to (Player group((Triggering player))) from a Player 12 (Brown) Archmage named Admiral of the flee... at (Center of (Playable map area)): Play No sound and display Good..  Modify duration: Set to 1.50 seconds and Wait
        Cinematic - Send transmission to (Player group((Triggering player))) from a Player 12 (Brown) Militia named Seaman at (Center of (Playable map area)): Play No sound and display What do we do with ....  Modify duration: Set to 2.50 seconds and Wait
        Cinematic - Send transmission to (Player group((Triggering player))) from a Player 12 (Brown) Archmage named Admiral of the flee... at (Center of (Playable map area)): Play No sound and display Send him to Kiza....  Modify duration: Set to 2.00 seconds and Wait
        Cinematic - Send transmission to (Player group((Triggering player))) from a Player 12 (Brown) Archmage named Admiral of the flee... at (Center of (Playable map area)): Play No sound and display We need as many men....  Modify duration: Set to 3.00 seconds and Wait
        Cinematic - Send transmission to (Player group((Triggering player))) from a Player 12 (Brown) No unit-type named   at (Center of (Playable map area)): Play No sound and display foot steps leading ....  Modify duration: Set to 3.00 seconds and Wait
        Cinematic - Send transmission to (Player group((Triggering player))) from a Player 12 (Brown) No unit-type named   at (Center of (Playable map area)): Play No sound and display Kiza? ... War? .. 1....  Modify duration: Set to 3.00 seconds and Wait
        Cinematic - Send transmission to (Player group((Triggering player))) from a Player 12 (Brown) No unit-type named   at (Center of (Playable map area)): Play No sound and display 16 years since I've....  Modify duration: Set to 3.00 seconds and Wait
        Cinematic - Send transmission to (Player group((Triggering player))) from a Player 12 (Brown) No unit-type named   at (Center of (Playable map area)): Play No sound and display 16 years since that....  Modify duration: Set to 3.00 seconds and Wait
        Cinematic - Send transmission to (Player group((Triggering player))) from a Player 12 (Brown) No unit-type named   at (Center of (Playable map area)): Play No sound and display ... I hope the skys....  Modify duration: Set to 3.00 seconds and Wait
        Cinematic - Enable user control for (Player group((Triggering player)))
        Unit - Create 1 Navy Commander for (Triggering player) at (Center of Kinza enter exit <gen>) facing Default building facing degrees
        Set Player_lockon_unit[(Player number of (Owner of (Triggering unit)))] = (Last created unit)
        Set Main_Menu_Cam_Help[(Player number of (Triggering player))] = 4
        Cinematic - Turn cinematic mode Off for (Player group((Triggering player)))

~
 

Choppa

www.warcraft-gamers.po.gs
Reaction score
59
Yeah it's because of the waits in there that it F's up,

What it's doing is while it's in the transmission it's showing that for the triggering player, but if a new player becomes the triggering player then warcraft is like "WTF!?".

So make a variable let's say, called "teamSelectPlayer" with an array size of how ever many players are able to play. e.g teamSelectPlayer[10]

And when the trigger, triggers...

Code:
Set teamSelectPlayer[Player Number of (Triggering Player)] = Triggering Player
Or how ever it is, then just refer to that player.
 

ManyTimes

I'm so lonesome I could cry...
Reaction score
293
If what Choppa said, did not work, or you did not manage to get it right, or whatever... try something like this. I would have used this ? :p
Code:
Untitled Trigger 003
    Events
        Player - Player 1 (Red) Releases the Left Arrow key
    Conditions
    Actions
        Unit - Create 1 Flying Machine for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
        Unit - Kill (Last created unit)
Code:
Untitled Trigger 004
    Events
        Unit - A unit Dies
    Conditions
        (Unit-type of (Triggering unit)) Equal to Flying Machine
    Actions
        Cinematic - Turn cinematic mode On for (Player group((Owner of (Triggering unit))))
Then just replace "Triggering Player" with "Triggering Unit", and while I am at it;
Code:
Set Player_lockon_unit[(Player number of (Owner of (Triggering unit)))] = (Last created unit)
There is no "Triggering unit" in your trigger, so that line, is a bit...feel me?
 

FMAlchemist

New Member
Reaction score
4
so i kind of dont get. how WC wont get confused by this trigger, as much as it did from my original trigger :S.

because then the "triggering unit" will change as each player does the triggers the trigger.

~
 

FMAlchemist

New Member
Reaction score
4
bump-ba-dump ~

can i have some more opinion on this please? because its kinda ahrd to test it with myself.

~~
 

Larcenist

REP: Respect, Envy, Prosperity?
Reaction score
211
Whenever you use a wait in your triggers, everything such as "Triggering Unit", "Target unit of ability being cast" etc is lost. So just store the "Triggering player" into a variable as Choppa said and that should do it.
 

FMAlchemist

New Member
Reaction score
4
Code:
Set teamSelectPlayer[Player Number of (Triggering Player)] = Triggering Player

i still dont get how i would reffer to that player, without using "triggering player"

~~
 

FMAlchemist

New Member
Reaction score
4
bump~

wouldn`t
Code:
teamSelectPlayer[Player Number of (Triggering Player)]

be the same as

Code:
Playergroup(triggeringplayer)
 

Choppa

www.warcraft-gamers.po.gs
Reaction score
59
I'm not 100% sure, I wouldn't think so because with the first one you're getting the number of players, the other one you're putting the players in a group.
My WE isn't opening so I can't test anything.
 

FMAlchemist

New Member
Reaction score
4
herms, well i dont get like when you have "playergroup(triggering player)"

and it didnt work because the "triggering player" variable has been lost due to someone else interfeering and becoming the new "triggering player".

right?

so "teamSelectPlayer[Player Number of (Triggering Player)]"

wouldn't warcraft lose the "triggering player" part of this variable?

like the tirggering player will change half way through.. ?

~~
 

Choppa

www.warcraft-gamers.po.gs
Reaction score
59
No it won't, var[0] isn't the same as var[1], they can hold different values.

Umm... I can't remember how to set it to the triggering player but just try look for it,

Set blah[Player Number] = *PLAYER WHO PRESSED THE KEY*

Oh man idk, I don't even have WE.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top