SphereCommunity
Areas giving events - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Areas giving events (/Thread-Areas-giving-events)

Pages: 1 2 3 4 5 6 7


RE: Areas giving events - darksun84 - 07-17-2013 09:05 AM

region.region.name works only inside multi according to the revision


RE: Areas giving events - Rattlehead - 07-17-2013 09:49 AM

i also noticed if i have areadefs nested, it tells me the wrong thing entering and leaving

example, area 1 is a smaller are inside area a

if i leave area 1, it tells me i have entered area 1, when i enter area 1 it tells me i have left area 1 oO


RE: Areas giving events - Mordaunt - 07-17-2013 09:52 AM

Ahh.. I only ever used region.region.name in my house system, I wasn't aware it didn't work in other places. Blush


RE: Areas giving events - Alaric - 07-17-2013 10:01 AM

(07-17-2013 09:49 AM)Rattlehead Wrote:  i also noticed if i have areadefs nested, it tells me the wrong thing entering and leaving

example, area 1 is a smaller are inside area a

if i leave area 1, it tells me i have entered area 1, when i enter area 1 it tells me i have left area 1 oO

Is the smaller area loaded before or after the bigger? Because I didn't have problem with this...

example:
Code:
[AREADEF a_world]
EVENTS=r_default,r_default_rock,r_default_water,r_default_tree,r_default_grass
NAME=Felucca
GROUP=ALLMAP
P=1323,1624,55,0
RECT=0,0,7168,4096,0

[AREADEF a_dungeon]
NAME=Wilderground
GROUP=DUNGEON
P=588,1640,0,0
RECT=584,1637,590,1642,0
EVENTS +r_dungeon_entrance


[regiontype r_dungeon_entrance]
on=@enter      
      src.sysmessage You are in <region.region.name>.



RE: Areas giving events - Rattlehead - 07-17-2013 10:03 AM

actually i was wrong, it was showing i left the 'red' region, as it turns out my bigger region has a tag, tag.red, and for some reason its showing the name of the tag as the name of the region when i enter it, is that supposed to happen?

it only does it when i name the tag tag.red btw, i can make a tag any other name and it wont do this, but if u want to test make a big area, place a small area inside, apply a tag '.set region.tag.red 111111' while inside the big area (outside the smaller one) then walk between the 2 oO


RE: Areas giving events - Ben - 07-17-2013 08:40 PM

I can't find it in the source right now, but I have in the past stumbled on some code that uses tag.red for something special (not sure, but I think tag.blue might also be in there)
I think it might have something to do with quests...


RE: Areas giving events - Rattlehead - 07-17-2013 09:11 PM

tag.blue seemed to work ok, but i think i will stay away from tag names like that in the future just in case, kinda freaked me out lol


RE: Areas giving events - Ben - 07-18-2013 02:34 AM

Found it!

// red zone is opposite to blue - murders are considered normal here
// while people with 0 kills and good karma are considered bad here

This is what TAG.RED on a region is for... not sure if it was ever documented


RE: Areas giving events - RanXerox - 07-18-2013 03:30 AM

So you set TAG.RED=1 on an AREADEF to enable that?


RE: Areas giving events - Rattlehead - 07-18-2013 03:34 AM

from my experience, it really doesnt matter what u set tag.red to, altho i had it set to a guild.uid

and even tho i posted this in another post, ill post it here too

i have a big area, with smaller areas inside of it, when i send a message to allclients in the bigger area, no one in the smaller area's gets the message, even tho the smallers area's are inside of the bigger areas.