Recent changes Random page
GAMING
Gaming
 
WoWWiki
Halopedia
FFXIclopedia
Age of Conan
Warhammer Online
Grand Theft Wiki
See more...

Talk:Torch feature

From NWNWiki

Jump to: navigation, search

Contents

[edit] Current Version Discussion

  • Still need the code that refuels lanterns. Klingon Mage 13:49, 26 Oct 2005 (PDT)

[edit] Future Version Discussion

  • I'd like to see a way to do this without the need to burden the OnHeartbeat script with an iteration through each PC in the module every round. I can forsee this being an issue when you start talking about 10-20 people in a PW. Klingon Mage 13:49, 26 Oct 2005 (PDT)
  • There is no way to do extinguish torches without some sort of hook to a heartbeat. One thing that I could do is round it off so that we only consider every minute (every ten rounds), not every round. I use that technique in my Wandering Monster script (coming later :) ) and it works well. I'll look at the script and modify it inside of a few days. I have used heartbeat scripts like this before and found no performance problems (up to 12 players online at once). The code exits as soon as an invalid condition applies. Heartbeats are not evil, they just need more attention to performance. --Brick Thrower 00:22, 27 Oct 2005 (PDT)
  • I know. I just tend to think ahead. How many other things are going to want to jump on the OnHeartbeat bandwagon? That sort of thing. I agree with you, performance is definitely an issue. You've got me thinking tho. Maybe there is a way to do it without OnHeartbeat. Something tugging at the back of my mind and I can't quite crystallize it yet. Klingon Mage 20:05, 27 Oct 2005 (PDT)
  • Heartbeats are not bad, they just need extra special attention. There IS another way to kick of this script. OnModuleLoad, you call the wik_pnp_lighting() script. At the bottom of that script, before it exits, you add
     DelayCommand( 60.0f, wik_pnp_lightning()); 
    This will make the script call itself every 60 seconds. I suspect though that if somewhere else in your module, this script fragment is called
     AssignCommand(GetModule(), ClearAllActions());
    then the torch feature stops. Because a lot of modules use other people's code, I do not recommend this approach and I myself rely on the heartbeat. It has not given me any performance issues except when there is inefficient coding in there. //Brick Thrower 14:26, 4 Dec 2005 (PST)
  • Nah, I agree. That looks awfully kludgy to me. Klingon Mage 22:35, 4 Dec 2005 (PST)

[edit] Feature Requests

[edit] General

Currently, this page has a dead link to [[craft]]. Is that supposed to refer to one of the crafting skills? If so, which one? --The Krit 01:40, 25 January 2008 (UTC)