• 🏆 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!

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,183
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