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

Spell Help

Status
Not open for further replies.
Level 2
Joined
Mar 22, 2006
Messages
16
ok i am hopeless with spells so would someone be able 2 make me a spell that stops a unit casting in to a certin area

thanks
 
Level 3
Joined
Apr 16, 2006
Messages
41
Oh right, make a region called "No spells 1" for instance then use some trtiggers to create a dummy unit to cast a permanent Silence on the unuts that enter then use another trigger to remove all negative buffs when it leaves the region.
 
Level 21
Joined
Aug 21, 2005
Messages
3,699
Won't work, cause the point of his spell is: nobody should be able to cast spells INSIDE the region.
E.g. When the bloodmage is not in the region, he still can cast flamestrike in that region. The point of the spell is: wether inside the region or not, spells should not have an effect inside that region. Like a magic immunity for a region instead of a unit.
(that's what I think Wolf Prince wants)


My solution would be:

Trigger 1
Event: Unit enters region (Nospells)
Action: Unit - Add Magic Immunity to Entering Unit

Trigger 2
Event: Unit leaves region (Nospells)
Action: Unit - Remove Magic Immunity to Triggering Unit

Trigger 3
Event: A Unit finishes casting a spell
Condition: Ability being cast equal to (thespell)
Action: Region - Move Region (Nospells) to Target point of ability being cast

Trigger 4
The region should be resetted to a location (with pathingblockers) when the spell ends.

If more units have this ability, there should be more regions. I don't know how, but I think you should be able to create a region with size = the spellregion... Or you should pre-make alot of regions, and set a certain region to a certain unit (so that whenever that unit casts that spell, only that 1 region assigned for that specific unit will move)


One thing should be checked out: if you move a region, will units that suddenly appear to be in the region (without entering it) be considered as entering units? Same for leaving units... They probably will, but you never know...
 
Level 2
Joined
Mar 22, 2006
Messages
16
ok me and my brother use a portal to get to each others bases but i dont want the portal in the base it can be out side and wont listen so yea thats y i want it
 
Status
Not open for further replies.
Top