Aller au contenu

Photo

Sir Elric's random respawning traps - questions


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

#1
SuperFly_2000

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

#2
SuperFly_2000

SuperFly_2000
  • Members
  • 1 004 messages
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?

#3
Alphamojo

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

#4
SuperFly_2000

SuperFly_2000
  • Members
  • 1 004 messages
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

#5
KMdS

KMdS
  • Members
  • 26 messages
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.

#6
KMdS

KMdS
  • Members
  • 26 messages
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.

#7
Sir Elric

Sir Elric
  • Members
  • 2 messages
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