View previous topic :: View next topic |
Author |
Message |
Extreme
Joined: 28 Nov 2007 Posts: 135
|
Posted: Sat Oct 11, 2008 3:35 Post subject: Just a question |
|
|
http://www.nwnx.org/phpBB2/viewtopic.php?t=1082&start=30
Looking at the thead above and the Get/SetEventHandler, does this set scripts to the script events in areas? I have never actually known what this does. Sorry if this is obvious to some
I started a new thread so as to not clutter the wishlists |
|
Back to top |
|
|
acaos
Joined: 08 May 2007 Posts: 153
|
Posted: Sat Oct 11, 2008 8:25 Post subject: |
|
|
Get/SetCreatureEventHandler sets creature event scripts (e.g. On Damaged, On Attacked, and so on).
It would certainly be possible to have SetPlaceableEventHandler and SetAreaEventHandler and so on as well.
There's also SetEventHandler which is part of the nwnx_events plugin and sets those event handlers, which are different from the in-game ones.
Acaos |
|
Back to top |
|
|
Extreme
Joined: 28 Nov 2007 Posts: 135
|
Posted: Thu Nov 06, 2008 7:02 Post subject: |
|
|
i am revisiting this after coming in contact with a potential issue.
I wanted to make an area and store creatures in it for use with my random encounter script. I place them and when the time comes they are pulled for use and spawned in thru CopyObject. I was asking about this on BW and it was expressed that this would not be a good thing for it could create lag with all those Heartbeats firing. My goal is to keep resources low and not to hit that limit that exists, so i have the thought to use the Functions are mentioned in this thread in order to set the heartbeat script on the creature when they are spawned (copied) into the area
More info is in this BW thread
would this be a good use for this? |
|
Back to top |
|
|
Extreme
Joined: 28 Nov 2007 Posts: 135
|
Posted: Fri Nov 07, 2008 1:47 Post subject: |
|
|
I will just continue to use this thread as it all spawned from this concept.
Can i get some more information about putting creatures in limbo that was mentioned here
Quote: | Posted 11/06/08 22:35 (GMT) by virusman
If you need to keep the creatures in game, you can move them to Limbo (with NWNX Functions) and set the AI level to the lowest value. |
Would this be better then going about just placing the event script in them thru the function we are discussing in this thread?
I found the function that is already in my module, but seeing it as an int kinda throws me off a little. And Is there a GetCreatureInLimbo type function? I am not sure how i would isolate a creature that is in limbo |
|
Back to top |
|
|
|