How to do basic activations

Post » Mon Jun 18, 2012 6:18 pm

Hey I've made a similar script like the hello world tutorial (just the very first part, getting a message pop-up)

Are there limitiations on how you can use it? I've tried to put it on some architecture (a static) and on some sort of triggerbox (a duplicate from a traptrigger with the old script removed, I hoped it would work like the activation boxes infront of plaques and racks) which I then put infront of the objects that needed it.

But.. it doesn't work. Where am I going wrong?
User avatar
Shannon Lockwood
 
Posts: 3373
Joined: Wed Aug 08, 2007 12:38 pm

Post » Mon Jun 18, 2012 8:53 pm

You cant put activation scripts on static items... only triggers and activator objects.

Also, post you code so we can see what you are doing.
User avatar
{Richies Mommy}
 
Posts: 3398
Joined: Wed Jun 21, 2006 2:40 pm

Post » Mon Jun 18, 2012 7:10 am

Scriptname MachinaAeronauticascript2 extends ObjectReference
{Machina Aeronautica Message}
ObjectReference Property MachinaAeronauticaActivator Auto
Event OnActivate(ObjectReference akActionRef)
if akActionRef == Game.GetPlayer()
Debug.Messagebox("This ancient Dwemer machinery is what makes this fort float. To bad it's broken so you can't fly it around like in ancient days.")
Endif
EndEvent

This script is what I want to play.. I'm pretty sure this could work if used properly since it's mostly from the tutorial.
However I don't seem to have found the WAY to activate it.
Could you give me an ID of an object (an invisible box would be best) which I could duplicate and rename and where I should put this script on so if I click in front of the static (which is the static).
User avatar
SiLa
 
Posts: 3447
Joined: Tue Jun 13, 2006 7:52 am


Return to V - Skyrim