A"SAFE" haven

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
gudson
Junior Member
Posts: 34
Joined: July 31st, 2007, 4:06 am
Title: Smile

A"SAFE" haven

Post by gudson »

im using a spell that involves triggers called haven, it creates a protective barrier for allied units to keep enemies out but ranged units can still attack units inside the haven, i want to prevent this but am not sure how, i dont want units inside the haven attacking either. Ive got some ideas on how to fix this, making units invisible or invulnerable, but im not sure how to make it happen. any help is greatly appreciated.

This is the spell
http://www.hiveworkshop.com/resources_new/spells/1017/
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: A"SAFE" haven

Post by Arabidnun »

Ask and yee shall previde...
[blinking]Haven[/blinking]
Spoiler:
Based on your natural offset of your "rotating orbs" at a offset of 400 range, I based my triggers off that assumption that you neither want or want units attacked/attacking from in that aquired area. Thus, these triggers arose...

Prevent Attacking
Events
Unit - A unit Is attacked
Conditions
Or - Any (Conditions) are true
Conditions
((Attacking unit) is in (Units within 400.00 of havenpos)) Equal to True
((Attacked unit) is in (Units within 400.00 of havenpos)) Equal to True

Actions
Unit - Order (Attacking unit) to Stop


Prevent Ability
Events
Unit - A unit Begins casting an ability
Conditions
Or - Any (Conditions) are true
Conditions
((Casting unit) is in (Units within 400.00 of havenpos)) Equal to True
((Target unit of ability being cast) is in (Units within 400.00 of havenpos)) Equal
to True
Actions
Unit - Order (Casting unit) to Stop

The map is tested and fully functional, Gl hf. Credits always a bonus.
Haven.w3x
You do not have the required permissions to view the files attached to this post.
User avatar
gudson
Junior Member
Posts: 34
Joined: July 31st, 2007, 4:06 am
Title: Smile

Re: A"SAFE" haven

Post by gudson »

thax much for the code, is there some easy way i can make them invisible while inside? with out jass and it would need to work for all units.