Jump to content

Assistance with a "simple" mod


Recommended Posts

I'm sure it's going to be more complex than I'm imagining, but I would like to create a simple mod that basically follows this outline:

 

 

"Bound key is pressed

 

Menu pops up prompting for choice A, B, or C.

 

If A, play animation A and sound A

 

If B, play animation B and sound B

 

If C, play animation C and sound C and give player character an item.

 

End."

 

 

If I understand correctly, I need to create a "quest" and a script to go along with it, but I'm a little lost on how to do that. I'm somewhat familiar with scripting, but I'm new to the creation kit and bethesda modding in general, so I'd be super grateful to anyone who can point me in the right direction!

Link to comment
Share on other sites

No Quest needed just

 

1. A Button or an activator

2. A message (Check Messagebox) with three possible answers

3. A script like this that gets attached to the button

Message Property TheMenu Auto
Sound Property Sound1 Auto
Sound Property Sound2 Auto
Sound Property Sound3 Auto



Event OnActivate(ObjectReference AkActionRef)

    Int iButton = TheMenu .Show()
    If IButton == 0
    Sound1.play(Self)

Elseif IButton == 1
Sound2.play(Self)

Elseif IButton == 2
Sound3.play(Self)
Endif
EndEvent

I don't know about the dance animation commands but they should go where the Sound.play() command is of course. Please note that IButton == 0 means the first choice in your menu box. Can be confusing at first

 

Of course don't forget to fill out the properties afterwards so you can link your sounds and menu to the script

Link to comment
Share on other sites

No Quest needed just

 

1. A Button or an activator

2. A message (Check Messagebox) with three possible answers

3. A script like this that gets attached to the button

Message Property TheMenu Auto
Sound Property Sound1 Auto
Sound Property Sound2 Auto
Sound Property Sound3 Auto



Event OnActivate(ObjectReference AkActionRef)

    Int iButton = TheMenu .Show()
    If IButton == 0
    Sound1.play(Self)

Elseif IButton == 1
Sound2.play(Self)

Elseif IButton == 2
Sound3.play(Self)
Endif
EndEvent

I don't know about the dance animation commands but they should go where the Sound.play() command is of course. Please note that IButton == 0 means the first choice in your menu box. Can be confusing at first

 

Of course don't forget to fill out the properties afterwards so you can link your sounds and menu to the script

 

Thanks very much for this! I'm a little confused about how to tie the script to a button or activator though. Where is that?

Link to comment
Share on other sites

I'm sure it's going to be more complex than I'm imagining, but I would like to create a simple mod that basically follows this outline:

 

 

"Bound key is pressed

 

Menu pops up prompting for choice A, B, or C.

 

If A, play animation A and sound A

 

If B, play animation B and sound B

 

If C, play animation C and sound C and give player character an item.

 

End."

 

 

If I understand correctly, I need to create a "quest" and a script to go along with it, but I'm a little lost on how to do that. I'm somewhat familiar with scripting, but I'm new to the creation kit and bethesda modding in general, so I'd be super grateful to anyone who can point me in the right direction!

Perhaps a little more details on the specific scenario you are envisioning.would help folks get you the help you need. Just a suggestion....

Link to comment
Share on other sites

 

I'm sure it's going to be more complex than I'm imagining, but I would like to create a simple mod that basically follows this outline:

 

 

"Bound key is pressed

 

Menu pops up prompting for choice A, B, or C.

 

If A, play animation A and sound A

 

If B, play animation B and sound B

 

If C, play animation C and sound C and give player character an item.

 

End."

 

 

If I understand correctly, I need to create a "quest" and a script to go along with it, but I'm a little lost on how to do that. I'm somewhat familiar with scripting, but I'm new to the creation kit and bethesda modding in general, so I'd be super grateful to anyone who can point me in the right direction!

Perhaps a little more details on the specific scenario you are envisioning.would help folks get you the help you need. Just a suggestion....

 

 

It's not much more complex than I listed out, really. I would like to ability to play a voice line coupled with an animation on demand, so long as the player character isn't in combat. I don't need the voice line to be lip synced or anything.

 

There was a "taunt" mod that I found here a couple years ago that was really close to what I wanted to do, but the mod is gone now. Basically when you hit your bound key, the player character yelled out a wav file and did a dance animation or something.

 

That's essentially what I want to do, but with 2-3 options for which set of sound/animation to do. And ideally maybe the 3rd option would insert a buffout in my inventory to pop before I run berserking into combat.

Link to comment
Share on other sites

You might want to consider a script like armaston22 suggested but attached to a consumable via a magic effect. The advantage here is you can put that consumable in a 'favourites' slot so activate it via a single press of the appropriate numeric key. Such a method does not require any special mods (or F4SE), but is a little bit messier to get right.

Edited by PJMail
Link to comment
Share on other sites

  • Recently Browsing   0 members

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