SphereCommunity

Full Version: Anti-Gate, recall and mark?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How i can to make a part of an area can't cast mark, recall or gate spells?

i need to redefine a new region?,if is so, how i can applied this condition to the region?

Thanks
Yes, you need to add a new region, and apply these flags to it:

region_antimagic_recall_in 00002
region_antimagic_recall_out 00004
region_antimagic_gate 00008

For example, here's one I made in sphere_map0.scp that will announce when you enter the area, block recalling and gate, and won't allow you to place buildings:

Code:
[AREADEF a_newdungeon]
EVENTS=r_default,r_default_rock,r_default_water,r_default_tree,r_default_grass
NAME=New Dungeon
GROUP=Dungeons
FLAGS=region_flag_announce|region_flag_nobuilding|region_antimagic_recall_in|reg​ion_antimagic_recall_out|region_antimagic_gate
P=2473,2107,10,0
RECT=2350,1981,2588,2198,0
Thanks man!.
Just to add to Rayvolutions expanation for you and others that might like to know.
There is loads of region commands, here.. http://wiki.sphere.torfo.org/index.php/AREADEF
You can turn them all off and off by changing the value (1/0) (region.guarded=0) is GZ off.

You can also check if a flag is on or off in game by saying
.show region.mark

Below I have added an example script that checks the region for a guarded flag.
To use it type .IsRegionGuarded in game...
PHP Code:
[FUNCTION IsRegionGuarded]
IF (<
REGION.FLAGS>&region_flag_guarded)
    
SYSMESSAGE @95 The region is guarded
ELSE
    
SYSMESSAGE @35 The region is not guarded eeek!
ENDIF 

The Defs for the Region Flags can be found in sphere_defs.scp.
Example ::
region_flag_ship 00040 // this is a ship region. ship commands
region_flag_nobuilding 00080 // no building in this area
Reference URL's