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

can be casted only in water

Status
Not open for further replies.
Level 5
Joined
Apr 16, 2005
Messages
135
"can be casted only in the water" is it possible..

just like the skill of cenarius.. the treant dudes..
i was thinking of water dudes.. but it needs water for the skill...
 
Level 10
Joined
Aug 8, 2004
Messages
562
make reigions wherever there is water and this trigger-

Event-
Unit Starts The Effects Of Ability
Condition-
Ability being cast = Water Spell
Actions-
if all conditions are true then the the else do else...
If-
Triggering Unit is in Reigion 000
Triggering unit is in Reigion 001
*(so on and so on)*
then-
*(Ability Actions)*
Else-
issue triggering unit to stop
Game- Display meesage to owner of triggering unit: Must Be In Water.



there ya go.
 
Level 13
Joined
Dec 29, 2004
Messages
597
iplaystarcraft said:
make reigions wherever there is water and this trigger-

Event-
Unit Starts The Effects Of Ability
Condition-
Ability being cast = Water Spell
Actions-
if all conditions are true then the the else do else...
If-
Triggering Unit is in Reigion 000
Triggering unit is in Reigion 001
*(so on and so on)*
then-
*(Ability Actions)*
Else-
issue triggering unit to stop
Game- Display meesage to owner of triggering unit: Must Be In Water.

Umm, that's need too much region. I think there are checking for pathing walkability or pathing amphibious. Not remember exactly, but try to search it.
 
Level 11
Joined
Jul 15, 2004
Messages
333
JASS:
local location loc = GetSpellTargetLoc()

if IsTerrainPathableBJ(loc,PATHING_TYPE_FLOATABILITY)==false and IsTerrainPathableBJ(loc,PATHING_TYPE_WALKABILITY)==true then
  //ur stuff
else
  //say something like it can be casted only on water
endif

call RemoveLocation(loc)
set loc = null
 
Status
Not open for further replies.
Top