Aller au contenu

Photo

Setting a custom trap


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
Terrorble

Terrorble
  • Members
  • 194 messages
Seemed like this question needed its own thread...

I want to set a custom detect DC, disarm DC, and experience script OnDisarm for a default NWN trap kit.  Possible? How?

#2
WhiZard

WhiZard
  • Members
  • 1 204 messages
SetTrapDetectDC()
SetTrapDisarmDC()

The disarm script is the second to last argument for both CreateTrap functions


EDIT: Oops, I was veiwing your post in light of the other thread where traps were set by faction.  For doing this from a player setting a trap (see the wiki for default behavior) you would need to look for the new trap just after the trap kit is lost to make changes.  The disarm script for a trap produced this way cannot be changed AFAIK.

Modifié par WhiZard, 22 avril 2013 - 01:54 .


#3
Terrorble

Terrorble
  • Members
  • 194 messages
Thanks WhiZard.
I didn't think to search for the lost kit. I may be able to live with this too since I may not allow PCs to get XP for disarming other PC traps anyway. And, this will save me some major time over what I was just about to attempt.