Traps

Post » Fri May 27, 2011 4:57 pm

I am wondering if anyone can tell me how a trap is made and then how would I script it?
Is there a good tutorial on how to make traps? I tried one in TES: Construction Set Wiki, but it didn't work.

Thanks,
~Signed
TraderEddy
User avatar
naomi
 
Posts: 3400
Joined: Tue Jul 11, 2006 2:58 pm

Post » Fri May 27, 2011 5:12 pm

I am wondering if anyone can tell me how a trap is made and then how would I script it?
Is there a good tutorial on how to make traps? I tried one in TES: Construction Set Wiki, but it didn't work.

Thanks,
~Signed
TraderEddy

More information, please. Are you trying to set up existing traps or are you trying to make a custom one?
User avatar
Elisabete Gaspar
 
Posts: 3558
Joined: Thu Aug 31, 2006 1:15 pm

Post » Sat May 28, 2011 2:32 am

Have you read the Traps section on this page? http://cs.elderscrolls.com/constwiki/index.php/Furniture%2C_Traps%2C_and_Lighting

- Place the trap in the world, adjust the 'red ball' to be where the trap will swing/target.

- Make it a Persistent Reference

- Get a tripwire/switch/pressure plate and place it in the world.

- Make it a Persistent Reference

- Double click on the tripwire/switch/pressure plate.

-From Wiki:
Select the "Enable Parent" tab, and press the button labeled "Select Reference in Render Window". Notice the crosshair cursor that now appears in the Render Window? Move it over the traps and click.


- Thats all there is to it.
User avatar
x a million...
 
Posts: 3464
Joined: Tue Jun 13, 2006 2:59 pm

Post » Fri May 27, 2011 9:37 pm

Thanks. That worked for simple traps. It didn't work before because I did it backwards.
Now the thing is how would I script or make a trap activate like this:

MWallPlankBreakAway01 activates CTrapSwingMaceShort01

and how could I change how much damage it does?
User avatar
Devin Sluis
 
Posts: 3389
Joined: Wed Oct 24, 2007 4:22 am

Post » Sat May 28, 2011 12:02 am

You could look at an existing trap script, and looking at how it is set out in the game and such, that helped me when I made a trap
User avatar
Damien Mulvenna
 
Posts: 3498
Joined: Wed Jun 27, 2007 3:33 pm

Post » Fri May 27, 2011 1:39 pm

You can use the planks like a tripwire, and the mace like a, well, mace. Activating (i.e. breaking) the planks is the same as walking over (i.e. activating) a tripwire. So the principle is pretty much generic for all traps like this.

Offhand I couldn't tell you how to modify the damage done by a trap.
User avatar
Claire Mclaughlin
 
Posts: 3361
Joined: Mon Jul 31, 2006 6:55 am

Post » Fri May 27, 2011 10:47 pm

I tried using it like an activator but it doesn't work. Any other suggestions?
User avatar
Heather Stewart
 
Posts: 3525
Joined: Thu Aug 10, 2006 11:04 pm

Post » Sat May 28, 2011 1:40 am

Hmm, you could try placing a script on the planks.

Something along the lines of:
scriptname xxxshort triggeredref targetref mySelfBegin OnActivate	if triggered == 0		set target to getParentRef		set mySelf to getSelf		target.activate mySelf 1		set triggered to 1	endifEnd


That should make it act as an activator.
User avatar
glot
 
Posts: 3297
Joined: Mon Jul 17, 2006 1:41 pm


Return to IV - Oblivion