Author Topic: Sir Elric's random respawning traps - questions  (Read 412 times)

Legacy_SuperFly_2000

  • Hero Member
  • *****
  • Posts: 1292
  • Karma: +0/-0
Sir Elric's random respawning traps - questions
« on: September 27, 2011, 03:13:45 pm »


               It seems it spawns traps on ALL objects in the area....instead I'd like it to only spawn on items (chests) I select...
               
               

               
            

Legacy_SuperFly_2000

  • Hero Member
  • *****
  • Posts: 1292
  • Karma: +0/-0
Sir Elric's random respawning traps - questions
« Reply #1 on: September 27, 2011, 03:19:25 pm »


               Also I scanned through the scripts and not being able to make it out exactly I see the spells "Knock" and "Find Traps" being mentioned in there. I wonder....does the ERF file change anything of that?
               
               

               
            

Legacy_Alphamojo

  • Newbie
  • *
  • Posts: 37
  • Karma: +0/-0
Sir Elric's random respawning traps - questions
« Reply #2 on: September 27, 2011, 09:37:37 pm »


               I believe if you put the INT variable "TRAP_NEVER" set to 1 on a placeable will keep those objects free of traps.
               
               

               
            

Legacy_SuperFly_2000

  • Hero Member
  • *****
  • Posts: 1292
  • Karma: +0/-0
Sir Elric's random respawning traps - questions
« Reply #3 on: September 28, 2011, 08:15:52 am »


               Yeah...but there might be many placeblas that I don't want traps on...I mean...I hope it doesn't trap static ones even :-o
               
               

               
            

Legacy_KMdS

  • Newbie
  • *
  • Posts: 49
  • Karma: +0/-0
Sir Elric's random respawning traps - questions
« Reply #4 on: October 03, 2011, 11:56:11 pm »


               Hmmm, Sir Elric, I wonder if he is still around, he's is a good guy.  I will take a look into his work on this and get back to you here with any info you may need.
               
               

               
            

Legacy_KMdS

  • Newbie
  • *
  • Posts: 49
  • Karma: +0/-0
Sir Elric's random respawning traps - questions
« Reply #5 on: October 04, 2011, 12:29:58 am »


               You can set the system to always place a trap on a specific door or placeable by setting a local on the object "TRAP_ALWAYS = 1",  most of the info for the system can be located in se_respawn_trap.nss.  Alphamojo is also correct that setting "TRAP_NEVER = 1" will never alow the system to place a trap on the door or placeable.  Additionally, an invis object with the tag INVIS_TRAP_SPAWNER_RANDOM must be placed in the area.  Set a local variable int TRAP_PERCENTILE equal to the percent chance ou want traps to be set.  A value of 25 = 25% chance of an object having a trap set upon it.
               
               

               
            

Legacy_Sir Elric

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
Sir Elric's random respawning traps - questions
« Reply #6 on: November 17, 2011, 12:37:36 am »


               Still around. Been awhile since I looked at this system but if you only want specific placeables/doors trapped;

1) Open the area propeties and in the OnEnter event add the script: se_oea_rsp_traps

2) To ensure a placeable or door is always trapped set this local int on it: TRAP_ALWAYS int = 1