Need help with some scripts

Post » Tue May 08, 2012 1:17 am

As you might know, I'm currently working on some x-mas mod, which has a deadline about tomorrow afternoon. So time is pressing me much. The scenery is done sofar, but I'd like to have some scripted stuff to spice the mod up a bit. Most likely I will have to ask for a gazillion scripts today, so I made this thread to put all my questions in. Any help is much appreciated! :wink:


1. This should be easy: I want to play a sound from an activator, but I don't want it to loop every 3 seconds. So I need a sound script, that triggers the sound let's say only every 2 min.


more to come...
User avatar
Mariana
 
Posts: 3426
Joined: Mon Jun 12, 2006 9:39 pm

Post » Tue May 08, 2012 12:12 am

This probably belongs to the http://www.gamesas.com/forum/11-construction-set-morrowind/forum.
User avatar
Anna Beattie
 
Posts: 3512
Joined: Sat Nov 11, 2006 4:59 am

Post » Tue May 08, 2012 1:02 am

This probably belongs to the http://www.gamesas.com/forum/11-construction-set-morrowind/forum.


Yeah, you're right but I needed help today, not some day next week, that's why! ;)
User avatar
DAVId MArtInez
 
Posts: 3410
Joined: Fri Aug 10, 2007 1:16 am

Post » Mon May 07, 2012 11:49 pm

1. it is not correct, I have nothing against you and appreciate you are making a mod for Xmas, but unluckily you are not the first one trying to cut corners, I answered here sometimes in the past but I think this should be avoided if possible before it starts getting (bad) common practice.
2. many people in this forum are probably not interested on scripting.
3. most people able/willing to help will frequent the proper forum anyway (at least I would have helped already for what is worth)
User avatar
Jaki Birch
 
Posts: 3379
Joined: Fri Jan 26, 2007 3:16 am

Post » Mon May 07, 2012 12:38 pm

You will want to use a timer variable. Something like this:

begin ExampleScript

float timer ; declare variable

set timer to (timer + GetSecondsPassed) ; there is no GetMinutesPassed

if ( timer>=60 ) ; wait for a minute
set timer to 0 ; reset - the next frame it will "accumulate" time again before executing this block
; your code here
endif

end

But I have to agree - this seems to be the wrong place to ask this kind of questions
User avatar
Chloe :)
 
Posts: 3386
Joined: Tue Jun 13, 2006 10:00 am

Post » Mon May 07, 2012 10:31 pm

I know where this thread belongs, but I got a deadline til tomorrow afternoon, if mod's not ready, admin of my forum won't include it in xmas calendar. It's that simple. CS section is a dead section, it takes ages til someone comes by to help and I ain't got the time to wait.
User avatar
Kayla Bee
 
Posts: 3349
Joined: Fri Aug 24, 2007 5:34 pm

Post » Mon May 07, 2012 1:51 pm

WHat's Abot mean it's him respond often in the CS section ;)
So just put your thread in it and tell it to Abot it will help you.
Or just ask him by PM to help you :D

It's a great scripter.
User avatar
Dawn Porter
 
Posts: 3449
Joined: Sun Jun 18, 2006 11:17 am


Return to III - Morrowind