Need unusual script for ongoing project

Post » Sun Jun 19, 2016 6:37 pm

This is not a script I need for a public mod, but for a personal utility I am working on for a video project. Basically I need a script which I am going to put on an amulet, which when worn will do a certain command every 30 seconds. I already know the command that will be carried out, so I am just requesting help with the timer frame around it.

User avatar
T. tacks Rims
 
Posts: 3447
Joined: Wed Oct 10, 2007 10:35 am

Post » Sun Jun 19, 2016 10:24 pm


begin timer30s

float timer

set timer to ( timer + GetSecondsPassed )
if ( timer < 30 )
return
endif
set timer to 0

; insert command here

end
User avatar
Juan Suarez
 
Posts: 3395
Joined: Sun Nov 25, 2007 4:09 am

Post » Sun Jun 19, 2016 12:10 pm

It's mostly working, however I am going to have two such items in inventory with contradictory scripts, and my test just showed they are both activating. Is there a way to add a check to make sure it is equipped before running the timer?

User avatar
Sammie LM
 
Posts: 3424
Joined: Thu Nov 30, 2006 1:59 pm

Post » Sun Jun 19, 2016 11:59 pm

Never mind, both amulets working correctly as intended now!

User avatar
Rude_Bitch_420
 
Posts: 3429
Joined: Wed Aug 08, 2007 2:26 pm


Return to III - Morrowind