RegisterForEvents reminder

Archive of the older Feature Request Forum Posts

Moderator: POL Developer

Locked
Xadhoom
Neophyte Poster
Posts: 30
Joined: Fri May 26, 2006 12:53 am

RegisterForEvents reminder

Post by Xadhoom »

I posted this in the yahoo group lot of time ago and never had and answer, i try again :roll:

Change the function RegisterForSpeechEvents( at_object, range, flags := 0 ) to RegisterForEvents( event, at_object, range, flags := 0 )
It would be very useful for events like EnteredArea that can be
received only by npcs, or at least add RegisterForEnteredAreaEvents
and RegisterForLeftAreaEvents
I need it to create the windchimes ringing when you approach :D
User avatar
CWO
POL Expert
Posts: 1159
Joined: Sat Feb 04, 2006 5:49 pm
Location: Chicago, IL USA

Post by CWO »

uo::EnableEvents() doesnt work?
Xadhoom
Neophyte Poster
Posts: 30
Joined: Fri May 26, 2006 12:53 am

Post by Xadhoom »

Tried inside a ControlScript this script

Code: Select all

EnableEvents( SYSEVENT_ENTEREDAREA, 3);
var event:= wait_for_event(600);
print(event);
and didn't work
User avatar
CWO
POL Expert
Posts: 1159
Joined: Sat Feb 04, 2006 5:49 pm
Location: Chicago, IL USA

Post by CWO »

Thinking about it, try RegisterForSpeechEvents then EnableEvents and only do enteredarea since looking at EnableEvents...
This function is useful only to NPCs and Items that have called RegisterForSpeechEvents.
I'm trying to keep a close eye on this one too since I want to create quest spawners that will spawn only for certain people who actually have the quest as soon as they enter that spot.
User avatar
Austin
Former Developer
Posts: 621
Joined: Wed Jan 25, 2006 2:30 am

Post by Austin »

Theres nothing in the core yet that allows items to be registered for events in the way it works for NPCs. Yes its on the 'wish list' ... :angel:

When items get that RegisterForSpeechEvents() deal, it just stores them in an array inside the core and when people speak, it goes through that list. Not pretty, we know.

Someday...
Xadhoom
Neophyte Poster
Posts: 30
Joined: Fri May 26, 2006 12:53 am

Post by Xadhoom »

roger, no windchimes for now :sad: At least until i don't give an AI to windchimes :lol:
Locked