At a loss at scripting.

Post » Tue Feb 24, 2015 2:24 am

Hi there Mastermodders!

Im at a loss. I've got no experience with coding or scripting whatsoever. But I gave it a try and managed to get a few things working but now when the script will consist and affect more items I'm not so sure anymore.

So I'm simply, in a sad lazy manner, asking someone for help compiling a script doing what I want. Hopoefully I'll be able to work out the logic of scripting by looking at a working one.

So now to the task at hand.

I have a button (Activator01) that when used activates a number of other activators. 2 to be exact (Item01 and Item02). I also want Activator01 to disable another object (Item03).

All this at the same time as playing 3 sounds simultaneously (Sound01, Sound02 and Sound03).

The animation of Item01 and Item02 differ in time so blocking the Activator01 for 5 seconds upon activation would be required.

So far so good.

But this is when it gets out of hand... For me atleast.

I want the script to do exactly this in reverse if activated. So instead it would reenable Item3 and Activate Item01 and Item02 Again while playing 3 new Sounds (Sound04, Sound05 and Sound06).

I know I could've been explaining this all a bit simpler, but now you be able to understand what I'm trying to do!

If anyone could help me work out such a script I would be so happy!

Thanks for your time

Arvtagaren

User avatar
Joe Alvarado
 
Posts: 3467
Joined: Sat Nov 24, 2007 11:13 pm

Post » Mon Feb 23, 2015 9:47 pm

I'm no scripting guru but posting what you managed to script so far could help a lot...
User avatar
Jerry Cox
 
Posts: 3409
Joined: Wed Oct 10, 2007 1:21 pm

Post » Tue Feb 24, 2015 9:09 am

Can you post your code and let us know what goes wrong when you run the second 'reverse' part? If you have the first part working, I'm fully confident you'll be able to get the second part.

(See http://www.gamesas.com/topic/1347469-how-to-ask-for-scripting-help/for how to effectively post code)

User avatar
Laura Shipley
 
Posts: 3564
Joined: Thu Oct 26, 2006 4:47 am


Return to V - Skyrim