Jump to content

Need help with a script.


Recommended Posts

Hey i am fairly new to the creation kit and have no knowledge of scripting. I created a multi track music holotape and as wondering if anyone had any ideas on how to implement a MCM menu for adding a functional skip, pause, loop one or more songs, randomize and even switch tapes hotkeys. Essentially an Ipod. I would appreciate any advice/suggestions.

Link to comment
Share on other sites

What do you have thus far? Are you trying to use the pipboy to play the holotapes? It seems like theres already some mods like this out there.

No I am trying to make something that doesn't need the pipboy but still executes the script used for playing Music Holotapes. While also giving you more options like I mentioned in my first post. Play, pause and unpause at the same position you paused it earlier, skip forward and backward, shuffle, repeat, and switching between saved music holotapes. Also independent volume control. All these actions can be hotkeyed so you don't need to constantly bring up your pipboy to hit play again or physically change holotapes since having a multi track holotapes don't have an automatic move to next track and each time you physically activate the holotape it can play the same track multiple times after the other(trying to get rid of that bug with a workaround). Also it can work with any music holotape someone makes for others or themselves. I am sorry if my way of wording is confusing because I am not sure how to properly write it in a way that makes everything clear. I also have nothing to work off of and that is why i am looking for ideas.

Link to comment
Share on other sites

Unfortunately what you are trying to do cannot be done via Papyrus scripting. You can't pause/unpause a Sound Descriptor / holotape at a given time index and you can't skip forward or backward through a Sound Descriptor / holotape either. Shuffle / repeat between different holotapes is definitely possible, however.

Link to comment
Share on other sites

Unfortunately what you are trying to do cannot be done via Papyrus scripting. You can't pause/unpause a Sound Descriptor / holotape at a given time index and you can't skip forward or backward through a Sound Descriptor / holotape either. Shuffle / repeat between different holotapes is definitely possible, however.

Okay that helps narrow everything down to something manageable.

Link to comment
Share on other sites

 

Unfortunately what you are trying to do cannot be done via Papyrus scripting. You can't pause/unpause a Sound Descriptor / holotape at a given time index and you can't skip forward or backward through a Sound Descriptor / holotape either. Shuffle / repeat between different holotapes is definitely possible, however.

Okay that helps narrow everything down to something manageable.

Since it is possible to Shuffle between different holotapes is there a way to limit how many times a song that has already been played until all have been played. Not sure if i worded that right.

Link to comment
Share on other sites

Probably, it just depends on how the mod is arranged ect.

 

As far as my question about the pipboy. How exactly are you planning to execute what the holotape is supposed to do without the mechanism that plays the holotape? It's like trying to play a cassette with no tape player...

 

Like I said depending on how the mod is setup it could be as simple as setting up a int count variable for each song and just a conditional statement to determine if its played too many times and what to do if it has... this isn't exactly the greatest method bc eventually every song will exceed the count. Also if you plan to release this mod it has to be possible for a potential user to be able to change the settings. I.e why I mentioned pipboy bc it would probably be wise to include some kinda menu attached to all this. Even if the primary idea is hotkey driven. It will make testing much easier to.

 

Edit: as far as a count goes you probably would be better off thinking about doing like a ratio as a comparison than the actual count. That way the script could dynamically play songs based off of what's getting played ect.

Edited by markyrocks
Link to comment
Share on other sites

I'm not an expert at modding by any means but papyrus scripting is event driven. So I don't even know if its possible to setup a hotkey to play a holotape. Or more specifically call the function that would play the tape. As far as I can tell you need like a specific event to happen to set the whole chain of events in motion. Like registering for a holotape event. Then when that event happens other things then happen based on the script moving forward. Now it maybe possible to setup a hotkey that runs a console command that loads a specific holotape. The only issue I could see is the console may need to be open for it to actually work. I'm just shooting the breeze here I'm not trying to discourage you, I'm just trying to help you find a path to success. I'm actually interested in this that's the only reason I'm even commenting.

 

Edit: it looks like there is a mod setup to use hotkeys in the way you describe. So pretty sweet.

Edited by markyrocks
Link to comment
Share on other sites

I'm not an expert at modding by any means but papyrus scripting is event driven. So I don't even know if its possible to setup a hotkey to play a holotape. Or more specifically call the function that would play the tape. As far as I can tell you need like a specific event to happen to set the whole chain of events in motion. Like registering for a holotape event. Then when that event happens other things then happen based on the script moving forward. Now it maybe possible to setup a hotkey that runs a console command that loads a specific holotape. The only issue I could see is the console may need to be open for it to actually work. I'm just shooting the breeze here I'm not trying to discourage you, I'm just trying to help you find a path to success. I'm actually interested in this that's the only reason I'm even commenting.

 

Edit: it looks like there is a mod setup to use hotkeys in the way you describe. So pretty sweet.

Hey I understand and I asked for any kind of advice, opinion etc... It is helpful knowing that there are limitations and possibilities.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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