Jump to content

Scripting Help


Spaztrooper

Recommended Posts

I am not sure of the exact command or maybe I am not fully understanding it.

 

What I want to do is beable to click on a flag and a message pop up.

 

How would I go about doing such a thing?

 

Showmessage? Or do I have to create a button of some sort?

 

Thanks,

 

Spaz

Edited by Spaztrooper
Link to comment
Share on other sites

Create the trigger by clicking on Create cubic activator, a window pops up rename the id, change the trigger item to your flag, check New next to ID, click ok. Create message item, create script and attach to the flag trigger.

 

I think this will work I'm new to scripting myself but have setup several trigger events in my mod WIP.

 

scn FlagTriggerScript (or w/e you want to name it)

 

Begin onActivate player

 

showmessage messageID

 

end

 

If you just want it to work once then

 

scn FlagTriggerScript (or w/e you want to name it)

 

short doOnce

 

Begin onActivate player

 

if doOnce == 0

showmessage messageID

set doOnce to 1

endif

end

 

Hope it works,

Geoff

Link to comment
Share on other sites

Create the trigger by clicking on Create cubic activator, a window pops up rename the id, change the trigger item to your flag, check New next to ID, click ok. Create message item, create script and attach to the flag trigger.

I don't think that would work, since cubic activators cannot be interacted with per-se - they are only "triggered" once an actor steps into them.

What you need to do is create a new Activator form (in World Objects > Activator) and set it to use the model (NIF file) of the flag. You can then use Geoff's script.

Link to comment
Share on other sites

 

Create the trigger by clicking on Create cubic activator, a window pops up rename the id, change the trigger item to your flag, check New next to ID, click ok. Create message item, create script and attach to the flag trigger.

I don't think that would work, since cubic activators cannot be interacted with per-se - they are only "triggered" once an actor steps into them.

What you need to do is create a new Activator form (in World Objects > Activator) and set it to use the model (NIF file) of the flag. You can then use Geoff's script.

 

 

Oh I thought it did that since every time I drew a trigger box the menu popped up and the default trigger is a water spicket(w/e lol) I've only used the box triggers so not 100% sure.

Edited by DaemonGrin
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...