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

Yo need help with allying!!!!!

Status
Not open for further replies.
Level 10
Joined
Jul 22, 2008
Messages
363
Guys I understand I can make triggers that make it so you say: ally color, but I want people to be able to ally each other via the menu bar f11 or f10 im not sure. If you can help me out that would be great.:thumbs_up:
 
Level 7
Joined
Jun 16, 2008
Messages
327
I don't think you can create triggers that function in the menu, which is F10.
However, it is aways possible to create dialogs that pop up when a player does something, such as use an ability or type a chat message.

Simple example:
  • Events
    • Events
      • Player - Player 1 (Red) types a chat message containing -ally dialog as An exact match
      • Player - Player 2 (Blue) types a chat message containing -ally dialog as An exact match
      • Player - Player 3 (Teal) types a chat message containing -ally dialog as An exact match
      • Player - Player 4 (Purple) types a chat message containing -ally dialog as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -ally dialog as An exact match
      • Player - Player 6 (Orange) types a chat message containing -ally dialog as An exact match
      • Player - Player 7 (Green) types a chat message containing -ally dialog as An exact match
      • Player - Player 8 (Pink) types a chat message containing -ally dialog as An exact match
  • Conditions
  • Actions
    • Dialog - Show (YourDialog) for (Triggering player)
That's a very basic summary othe SHOWING trigger. You can create the dialog in another trigger.

Example:
  • Events
    • Map initialization
  • Conditions
  • Actions
    • Dialog - Create a dialog button for YourDialog labelled Ally with <EachPlayer>
    • Set AllyRedDlgBtn = (Last Created Dialog button)
    • -------- Create more dlg buttons and assign variables to each of them so that they all represent a player --------
    • Dialog - Change the title of YourDialog to Ally Dialog
    • Player Group - Pick every player in (All players) and do (Dialog - Hide YourDialog for (Picked player))
The above trigger pretty much creates the dialog.
 
Level 10
Joined
Jul 22, 2008
Messages
363
This does seem like a way to do it but ive seen games where you can ally and turn hostile against others by using f10. Your idea is an alternative but the f10 way is the one I really would like to use.
 
Status
Not open for further replies.
Top