• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Base Reinforcement

Status
Not open for further replies.
Level 10
Joined
Oct 16, 2012
Messages
555
Hello,
i want to ask someone for help with a trigger for upgrade/spell. The idea is to create a barricade destructibles around a unit which used upgrade/spell in specific distance from him. If posible it would be cool to make 2 holes in this destructible circle for enterance/exit.

Example: A building called Orcish Camp finishes an upgrade called "Reinforcement", a circle of barricades will appear around Orcish Camp, but not too close to it.

Thanks guys!
 

Chaosy

Tutorial Reviewer
Level 41
Joined
Jun 9, 2011
Messages
13,248
something like this.
  • Do stuffs
    • Events
      • Unit - A unit Finishes research
    • Conditions
      • (Researched tech-type) Equal to Storm Hammers
    • Actions
      • Set some_location = (Center of Orc base region <gen>)
      • For each (Integer A) from 1 to 36, do (Actions)
        • Loop - Actions
          • Destructible - Create a Summer Tree Wall at (some_location offset by 1000.00 towards ((Real((Integer A))) x 10.00) degrees) facing (Random angle) with scale 1.00 and variation 0
 
  • Do stuffs
  • Events
  • Unit - A unit Finishes research
  • Conditions
  • (Researched tech-type) Equal to Storm Hammers
  • Actions
  • Set some_location = (Center of Orc base region <gen>)
  • Set Temp_Integer_1 = random number between 1 and 36
  • For each (Integer A) from 1 to 36, do (Actions)
  • Loop - Actions
  • If-
  • Integer A Equal to Temp_Integer
  • Then-
  • Else-
  • Destructible - Create a Summer Tree Wall at (some_location offset by 1000.00 towards ((Real((Integer A))) x 10.00) degrees) facing (Random angle) with scale 1.00 and variation 0
 
Status
Not open for further replies.
Top