Jump to content

Radio station mod help -- song limiter not working?


Recommended Posts

Hi y'all. First of all, I'm working on the Geck and playing the game through Porting Kit since I only have my mac with me. I dunno how that affects my scripts or not but it might be relevant.

 

I'm building a radio station as my first mod (A New Canaanite Radio Station, if you're curious). I want the radio station to go from "RadioHello" to "Hello" to "Story" to "Outro" to "Music," play three songs, and then back to "Hello." It works like a charm the first time around, but then the songs just keep playing and playing, and never skip back around to "Hello" like I want them to. I think I have the script set up properly from the tutorials I've watched and the scripts I copied from RadioNewVegas

 

Here's the script in full:

 

 

 

ScriptName RadioMormon_Script
int nStory;
int nStory2;
int nStory3;
int nLastTrackPlayed1;
int nLastTrackPlayed2;
int nLastTrackPlayed3;
int nLastTrackPlayed4;
int nLastGreeting;
int nLastGreeting2;
int nTracksPlayed;
int nLastOutro;
int nLastOutro2;
Here's the result script I wrote down for each song (changing the final number, of course):
set RadioMormon.nTracksPlayed to RadioMormon.nTracksPlayed + 1;
set RadioMormon.nLastTrackPlayed4 to RadioMormon.nLastTrackPlayed3
set RadioMormon.nLastTrackPlayed3 to RadioMormon.nLastTrackPlayed2
set RadioMormon.nLastTrackPlayed2 to RadioMormon.nLastTrackPlayed1
set RadioMormon.nLastTrackPlayed1 to 1;

 

 

 

And here's what I have for conditions:

 

 

 

GetQuestVariable Quest: 'RadioMormonQuest', nTracksPlayed < 3 AND

GetQuestVariable Quest: 'RadioMormonQuest', nLastTrackPlayed1 != 1 AND

GetQuestVariable Quest: 'RadioMormonQuest', nLastTrackPlayed2 != 1 AND

GetQuestVariable Quest: 'RadioMormonQuest', nLastTrackPlayed3 != 1 AND

GetQuestVariable Quest: 'RadioMormonQuest', nLastTrackPlayed4 != 1 AND

Link to comment
Share on other sites

  • Recently Browsing   0 members

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