- Joined
- Jun 27, 2008
- Messages
- 2,557
Hey.
So I imported a spell from a Spell section. It has this code among all of the code:
When saving the map JNGP gives me errors saying Undeclared function IsTerrainWalkable, also another error points to endif saying Cannot convert null to boolean.
I don't have a lot of knowledge on Jass, almost none. I tried to google it up, I found that this function is based on vJass. In the base map from which I copied this, it works, when I copied to another map - not. How to solve this so that map runs properly without errors?
Thanks.
So I imported a spell from a Spell section. It has this code among all of the code:
JASS:
if IsTerrainWalkable(x1, y1) then //If the terrain is passable the you'll dash, if not then trigger ends.
call SetUnitX(caster, x1)
call SetUnitY(caster, y1)
set cur_dist = cur_dist + Offset //This counts how many times you've moved.
call SaveReal(udg_Rush_Hash, id, 2, cur_dist)
else
call PauseTimer(t)
call DestroyTimer(t)
call DestroyGroup(g)
call SetUnitAnimation(caster, "stand") //Resets the animation.
call FlushChildHashtable(udg_Rush_Hash, id)
endif
I don't have a lot of knowledge on Jass, almost none. I tried to google it up, I found that this function is based on vJass. In the base map from which I copied this, it works, when I copied to another map - not. How to solve this so that map runs properly without errors?
Thanks.
Last edited by a moderator: