• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Randomizing Houses (Farms)?

Status
Not open for further replies.
Level 39
Joined
Feb 27, 2007
Messages
4,992
You need 3 different farm buildings and one dummy farm. The workers should only be able to build the dummy farm building. Then Detect when the farm finishes getting built, remove the built farm, and replace with one of the 3 possibilities chosen randomly. If they're supposed to have different build animations you could possibly do it before they're completed but I'm not sure what event you'd be looking for.
 

Dr Super Good

Spell Reviewer
Level 63
Joined
Jan 18, 2005
Messages
27,190
You might not even need a dummy farm. You could use 1 of the 3 possible farms as the dummy. It is important that you treat all 3 types of farm the same, especially when it comes to interacting with them using triggers.

In StarCraft II there are dozens of ways to achieve this using actors.
 
Status
Not open for further replies.
Top