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

Alliance System

Status
Not open for further replies.
Level 7
Joined
Jul 11, 2007
Messages
512
How can i make an alliance system? I can do this by now but i don't know what steps are to be taken! (Player - Player 1 (Red) types a chat message containing -ally as A substring)(Player - Make Player 1 (Red) treat Player 2 (Blue) as an Ally with shared vision)
Ignore the "(" ")"
Best if you could send me a link...
 
Level 4
Joined
Jul 24, 2008
Messages
108
The simplest way (longest and most triggers) is doing something like this

Events
Player red types -ally blue
Player green types -ally blue
Player yellow types -ally blue
Player orange types -ally blue
Player teal types -ally blue

Actions
set triggering player as ally of blue


Super Simple, only need 2 triggers per player, one for ally and unally. Just a lot of events to proc the trigger. Its possible to do that substring stuff, but it can get a little complicated imo and its easier to do it this way, not shorter tho.
 
Status
Not open for further replies.
Top