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

[General] Need a little help with choices in the editor

Status
Not open for further replies.
Level 1
Joined
Oct 10, 2013
Messages
4
Hello everyone!!!

I would like to know if it is possible to make a choice possible in the map editor.
I know that doesn't sound clear but I will explain it better. Lets say that I want to create a new race and the worker of that race have the option to build 2 buildings. I would like to make it possible if you choose to build one of the buildings the other is automatically unavailable after that.

IF this is possible could the same be applied to units, heroes and most importantly abilities?

I want this option in order to give a little more diversity in my maps :)
 
Level 15
Joined
Oct 29, 2012
Messages
1,474
Use dialog or do like this
  • l
  • Events
    • Unit - A Unit finished contruction
  • Conditions
  • Actions
    • If All/And conditions are true then do Multiple actions
      • Loop
        • (Unit-type of (Constructed Unit)) Equal to 'Your Building 1'
      • Then
        • Player - Make 'Your building 2' UnAvailable for (Owner of (Constructed Unit))
Complete like this
 
Level 1
Joined
Oct 10, 2013
Messages
4
Use dialog or do like this
  • l
  • Events
    • Unit - A Unit finished contruction
  • Conditions
  • Actions
    • If All/And conditions are true then do Multiple actions
      • Loop
        • (Unit-type of (Constructed Unit)) Equal to 'Your Building 1'
      • Then
        • Player - Make 'Your building 2' UnAvailable for (Owner of (Constructed Unit))
Complete like this

Thank you! However I still do not understand where to set those variables Building 1 and building 2 :(
 
Level 1
Joined
Oct 10, 2013
Messages
4
There is a slightly better way.

Make the first and second building dependency equivalents of eachother, then at map initalization limit one of them to 1.


Is there a possibility that at the other building is unavailable to build at the moment of the given order?

For example I do not want both buildings to be present in the game only one of them.
 
Status
Not open for further replies.
Top