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

[Solved] Help with prison-like spell {ice blocks as pathing blockers}

Status
Not open for further replies.
Level 12
Joined
Aug 12, 2008
Messages
350
I currently creating an ability for my map which the name is Imprisonment.
The ability creates ice block surrounds the target area, causing enemies cannot move in and out from the target area. Lasts for 4 seconds. Each level increases the duration and area of effect by 1 and 50 respectively.
I want to make it in trigger instead of JASS as I know nothing about JASS yet.
Problems:
- I don't know whats good to be the blockers
- I don't know how to create the ice blocks to surrounds the target area

Helps are deeply appreciated. :grin:
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
How about destructibles called "pathing blockeres"? Seems logical, no? :p

The rest isn't that hard either.

Let's look at a circle (because you want a circle around the target area to form, right?)
The circumference (length of the circle) is 2 * PI * radius. Usually (not always), the radius represents the AoE (so the ACTUAL area will be double what the description says).

For example: you've got an AoE of 500.00. This means that our circumference will be 2 * pi * 500 = 3142.59.
Now, the size of a pathing blockers is 64x64. So if we divide 3142.59 by 64, we get... about 49.
Conclusion: we need 49 pathing blockers to complete our circle (and make it unpassable).

I've attached a demo-map where you can look at the practical results, you can change the AoE to see how the system changes with it.
Everything that might be confusing, or is just really important, has been commented. If there's something you still don't understand, ask away.
Good luck!
 

Attachments

  • Prison Demo.w3x
    17.8 KB · Views: 41
Last edited:
Status
Not open for further replies.
Top