Summon in front of me instead of summon in my tile
Summon in front of me instead of summon in my tile
I'd like to have a summon spell which summons the npc in first tile in front of the character. Of course this requires some checks, which summoning in the caster tile doesn't require. I'd like to have suggestions about which checks are necessary to be sure the tile is ok for summoning. I think I have to assure the tile is walkable, has los with the caster and... probably it's enough, isn't it?
Yep. LOS ought to be good enough and if you want to restrict the distance from player that they can target that's easy too. Could do a lot with that. Maybe base the distance upon eval int or intelligence or meditation such that the higher the skill or stat the farther away they can target. Lots of fun stuff to do with that one.
http://svn.sourceforge.net/viewvc/pol-d ... iew=markup
var temp := GetPointsByFacing(caster.x, caster.y, caster.facing, 2);
temp := temp[2];
MoveObjectToLocation(victim, temp.x, temp.y, caster.z);
var temp := GetPointsByFacing(caster.x, caster.y, caster.facing, 2);
temp := temp[2];
MoveObjectToLocation(victim, temp.x, temp.y, caster.z);