Author Topic: Setting a custom trap  (Read 327 times)

Legacy_Terrorble

  • Sr. Member
  • ****
  • Posts: 370
  • Karma: +0/-0
Setting a custom trap
« on: April 22, 2013, 02:24:28 am »


               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?
               
               

               
            

Legacy_WhiZard

  • Hero Member
  • *****
  • Posts: 2149
  • Karma: +0/-0
Setting a custom trap
« Reply #1 on: April 22, 2013, 02:40:00 am »


               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 .
                     
                  


            

Legacy_Terrorble

  • Sr. Member
  • ****
  • Posts: 370
  • Karma: +0/-0
Setting a custom trap
« Reply #2 on: April 22, 2013, 04:37:06 am »


               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.