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

How can I go about doing this?

Status
Not open for further replies.
Level 6
Joined
Mar 17, 2012
Messages
105
When a structure (RandomBuilding) is built, it is supposed to be replaced immediately in the same position with a new random structure (structures A, B, C, D, or E). The probability for each structure being picked is equal.

How can I go about making a trigger that allows for this? I feel like this requires variables, but I have no skill with that. So. If anyone could help me, it'd be greatly appreciated.
 
Level 2
Joined
Mar 30, 2012
Messages
28
[TRIGGER="RANDOM BUILD'z"]
Events
A unit build blah blah
Conditions
Actions
Set B = Last build'z
Set BP = Build'z Point'z (UNIT POINT'z)
Unit - Replace B with Blah blah..[/TRIGGER]
 
Level 6
Joined
Mar 17, 2012
Messages
105
When a structure - lets called it StructureA - is built, it is supposed to be immediately replaced by one of three structures. The choice of which structure is random. These are the structures:

StructureX
StructureY
StructureZ

How can I make a trigger that does this?
 
Status
Not open for further replies.
Top