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 - Ben - 07-18-2013 11:24 AM

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

Yes, atleast that's what I understand from the code since it was never documented.

Rattlehead Wrote: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.


Areadef don't inherit the properties of parent areadef... in fact there is no parent area. Each areadef is it's own area even if they overlap. The last one loaded will have control over the overlapped part.
This is where rooms can come in handy because they are simply a "region within a region" but since it can't have events, they seem almost useless.


RE: Areas giving events - Rattlehead - 07-18-2013 12:55 PM

yeah, which is another reason it would be awesome if rooms could have events see Wink.


Re: RE: Areas giving events - Extreme - 07-19-2013 11:53 AM

(07-18-2013 12:55 PM)Rattlehead Wrote:  yeah, which is another reason it would be awesome if rooms could have events see Wink.

thumbs up for you..

Sent from my i3000 using Tapatalk 2


RE: Areas giving events - Mordaunt - 07-19-2013 12:16 PM

Clearly this topic is going to run and run....
Ben has said previously I believe on here and certainly when I have questioned this issue that while regions are based on rooms in the source, adding events to rooms would be too difficult.

I don't know, I'm not a dev, I just bug them Devil, but I wouldn't hold my breath for rooms with events.


RE: Areas giving events - Extreme - 07-19-2013 12:33 PM

(07-19-2013 12:16 PM)Mordaunt Wrote:  Clearly this topic is going to run and run....
Ben has said previously I believe on here and certainly when I have questioned this issue that while regions are based on rooms in the source, adding events to rooms would be too difficult.

I don't know, I'm not a dev, I just bug them Devil, but I wouldn't hold my breath for rooms with events.

Atleast 2 triggers then, @Enter and @Exit.
But they should be fired properly..


RE: Areas giving events - Rattlehead - 07-19-2013 02:23 PM

currently the function i made in order for everyone in the parent area to receive messages is rather ridiculous and seems to defy all logic lol

serv.area.a_myarea.allclients sysmessage @,,1 wtf?

x7 areas including the parent :|

and i didnt even know rooms didnt have triggers, that would had made them useless for me anyways if thats the case Tongue

*edit*

wow just noticed but my sig is fuct oO

TO HAVE YOUR OWN IMAGES DELETED FOR NO APPARENT REASON AT ALL
TRY IMAGESHACK



RE: Areas giving events - darksun84 - 07-19-2013 05:32 PM

imgguru is better than imgshack Tongue


RE: Areas giving events - Ben - 07-20-2013 05:39 AM

Ok, I surrender!!!

SVN LOG Wrote:-Moved: Events from CRegionWorld to CRegionBase
-Added: Triggers @Enter, @Exit, and @Step to ROOMDEFs
-Changed: Version to 56c for future nightly builds

Just to be clear, triggering @enter in a room will not trigger @exit of the current region.


RE: Areas giving events - Rattlehead - 07-20-2013 05:43 AM

nice Wink thx Ben lol, btw i like that entering a room within the given region will not trigger exit of the region, thats boss

a question, how can we reference the room?

src.room.name?


RE: Areas giving events - Ben - 07-20-2013 06:11 AM

You got it!