Okay...I don't care too much that the messages are not being shown (they were meant to be debug messages, although I guess they failed) Um, this is my first mod, and I'm really trying to do whatever works. I tried doing it as a perk, like cannibal, but I couldn't figure out how to reference the target. Yeah, when I get it working, I'm planning on doing something like the hasbeeneaten for cannibal, and making it so that you can't mine people who have been disintegrated of completely blown apart I know it's weird, but as I've said before, I based most of it off of existing traps (there is a legacy script for the unwilling suicide bomber from FO3, whether he is alive or dead). Even after rearming a trap, some still use getdistance player, or it is not apparent how enemies would blow up. Look up the script TrapMailboxSCRIPT, for where I got most of my code. Of course, it's not working, so what should I do? If I knew how mines worked, I'd do something like that. This bit is from the TrapCorpseSCRIPT. if (button > -1)
set interactAttempt to 0
if (button == 0)
;player wants to rearm as a proximity trap
ShowMessage TrapRearmProximityMsg
set trapTriggered to 2 ;trap is rearmed so start buffer timer
set trapDisarmed to 0
set bufferTimer to 10
if (trapDisarmed == 0)
if (trapTriggered == 0)
if (getdistance Player <= 400)
mySelf.playSound OBJMegatonBombTamperArm
set trapTriggered to 1
set timer to 1
endif
endif
if (trapTriggered == 1)
if (timer >0)
set timer to (timer - GetSecondsPassed)
elseif (timer<0)
mySelf.playSound WPNRifleLaserReloadInOut
set trapTriggered to 4
set timer to 4
endif
endif
if (trapTriggered == 2) ;trap has been rearmed as proximity so start buffer timer
if (bufferTimer > 0)
set bufferTimer to (bufferTimer - GetSecondsPassed)
elseif (bufferTimer < 0)
set trapTriggered to 0 ;buffer time is up, trap is now rearmed
endif
endif
if (trapTriggered == 4)
if (timer > 0)
set timer to (timer - GetSecondsPassed)
elseif (timer < 0)
mySelf.placeatme GrenadeFragExplosion 1
; kill me bloodily
kill mySelf 1
kill mySelf 3
kill mySelf 5
kill mySelf 7
kill mySelf 10
set trapDisarmed to 2 ;trap has exploded
endif
endif
endif
End