cancel item creation - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: cancel item creation (/Thread-cancel-item-creation) |
cancel item creation - Art - 03-12-2015 08:38 PM Hello. I would like to avoid creating of walls of spell Wall of Stone in specified conditions. For that i tried to check trigger at i_wall_stone_7 item which created after spell Wall of Stone, and used ON=@Create return 1 and ON=@Create remove but it not helped, item still appeared. I know another way to delete it, by timerf 1, remove, but it's too long, i want instant block of appearing walls. RE: cancel item creation - darksun84 - 03-12-2015 09:32 PM You can add a return 1 ( inside the check where the conditions are meet) in the @success trigger of the Stone wall spells. RE: cancel item creation - azmanomer - 03-12-2015 09:57 PM http://wiki.sphere.torfo.org/index.php/@SpellSuccess RE: cancel item creation - Art - 03-14-2015 07:37 PM Yes, but i need to not cancel whole spell. I want to delete just few specified tiles of field. Not sure that local.fieldwidth will help to me, because it gives just width from middle as i think. For better understand, imagine, if i would like to check for static walls on each tile where field appears, and if that point is not in line of sight from caster, then don't put field on that point. |