• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] MUI - need help.

Status
Not open for further replies.
Level 2
Joined
Feb 24, 2009
Messages
14
Hi, I found out I had to create MUI on my spell in order to get it approved. :p
I have 3 variables, and I've fixed them so that when player 1 writes "-angle 70" then he gets his "angle" variable to 70. And if player 2 writes "-angle 30" afterwards, he gets 30 and player 1 keeps his at 70..
What I need now is an action that says, "turn off trigger for player x".
Players aren't supposed to be able to change "angle, rotation or power" before their canonball has landed. But I can't just have the action "Turn off trigger angle, rotation, power". Because then noone can change the values while ONE person has a canonball in the air, that would be silly.
A second option would be to make everyone shoot every 30th second. But that wouldn't be as good.
If I can't solve this I have to create 8 seperate triggers for each variable and the two other triggers. A total of 40 triggers :sad:.
+rep to anyone who can solve this :grin:.
 
Level 7
Joined
Sep 5, 2006
Messages
333
try make a true/false boolean variable called "trigger on" (with 12 array for each players), and set the variable ti false when you want to turn the trigger for X person off. And make that trigger (the one you want to turn off) have a condition checking if that variable ( trigger on) is true/false.
 
Last edited:
Level 2
Joined
Feb 24, 2009
Messages
14
As I said, post the triggers... Just go to your Trigger Editor and right click on your trigger (in teh field to the right) and press "Copy as text". The use "[.trigger][./trigger]"(Just without the dots :p).

Ty didn't know how to do this:p
  • Start Multiplayer
    • Events
      • Player - Player 1 (Red) types a chat message containing Fire as An exact match
      • Player - Player 2 (Blue) types a chat message containing Fire as An exact match
      • Player - Player 3 (Teal) types a chat message containing Fire as An exact match
      • Player - Player 4 (Purple) types a chat message containing Fire as An exact match
      • Player - Player 5 (Yellow) types a chat message containing Fire as An exact match
      • Player - Player 6 (Orange) types a chat message containing Fire as An exact match
      • Player - Player 7 (Green) types a chat message containing Fire as An exact match
      • Player - Player 8 (Pink) types a chat message containing Fire as An exact match
    • Conditions
    • Actions
      • Unit - Create 1 Gryphon Rider for (Triggering player) at (Position of Tank[(Player number of (Triggering player))]) facing 0.00 degrees
      • Set Sheep[(Player number of (Triggering player))] = (Last created unit)
      • Set V0y = (((1.00 x (Real(Power[(Player number of (Triggering player))]))) x (Sin((Real(Angle[(Player number of (Triggering player))]))))) + 0.00)
      • Set V0x = ((1.00 x (Real(Power[(Player number of (Triggering player))]))) x (Cos((Real(Angle[(Player number of (Triggering player))])))))
      • Set t = (V0y / 10.00)
      • Set Ymax = ((V0y x t) + (((Real(a)) / 2.00) x (t x t)))
      • Trigger - Turn on Trigger
      • Animation - Play Tank[(Player number of (Triggering player))]'s attack animation
      • Trigger - Turn off Angle multiplayer <gen>
      • Trigger - Turn off Power multiplayer <gen>
      • Trigger - Turn off Rotation multiplayer <gen>
      • Trigger - Turn off (This trigger)
Look at the "Turn off Angle multiplayer <gen>" and down.

  • Angle multiplayer
    • Events
      • Player - Player 1 (Red) types a chat message containing -angle as A substring
      • Player - Player 2 (Blue) types a chat message containing -angle as A substring
      • Player - Player 3 (Teal) types a chat message containing -angle as A substring
      • Player - Player 4 (Purple) types a chat message containing -angle as A substring
      • Player - Player 5 (Yellow) types a chat message containing -angle as A substring
      • Player - Player 6 (Orange) types a chat message containing -angle as A substring
      • Player - Player 7 (Green) types a chat message containing -angle as A substring
      • Player - Player 8 (Pink) types a chat message containing -angle as A substring
    • Conditions
      • (Integer((Substring((Entered chat string), 8, (Length of (Entered chat string)))))) Less than or equal to 90
      • (Integer((Substring((Entered chat string), 8, (Length of (Entered chat string)))))) Greater than or equal to 1
    • Actions
      • Set Angle[(Player number of (Triggering player))] = (Integer((Real((Substring((Entered chat string), 8, (Length of (Entered chat string))))))))
Now help plox:p I want to turn off this Angle Multiplayer trigger ONLY for the person that is shooting. (Triggering the "Start Multiplayer" trigger.)
 
Last edited:
Level 2
Joined
Feb 24, 2009
Messages
14
try make a true/false boolean variable called "trigger on" (with 12 array for each players), and set the variable to false when you want to turn the trigger for X person off. And make that trigger (the one you want to turn off) have a condition checking if that variable ( trigger on) is true/false.

I can try this when I come home from school. Around 17:30.
Never used that true/false boolean thing, but I guess it will be good to learn it sooner or later =D. Thanks + rep
Will ask you for help later if I'm not able to pull it off. :p
 
Status
Not open for further replies.
Top