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

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 40
Joined
Jun 9, 2011
Messages
13,219
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