I posted this in the yahoo group lot of time ago and never had and answer, i try again
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
RegisterForEvents reminder
Moderator: POL Developer
Tried inside a ControlScript this script
and didn't work
Code: Select all
EnableEvents( SYSEVENT_ENTEREDAREA, 3);
var event:= wait_for_event(600);
print(event);
Thinking about it, try RegisterForSpeechEvents then EnableEvents and only do enteredarea since looking at EnableEvents...
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.This function is useful only to NPCs and Items that have called RegisterForSpeechEvents.
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' ...
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...
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...