Jump to content

Display Message when It is playing on the Radio


DemocraticAlliance15

Recommended Posts

What I am trying to do is when a song starts on the radio station I am creating I would like it to display a message with the song title. I remember seeing a mod in Fallout 3 when you equip an item and it would tell you that song titles are on. When the radiostation was on it displayed the song as a message. This mod was Vocaloid Radio. I need help because I am trying to re-write the code so I could use it but I have no Luck with it.

Link to comment
Share on other sites

Here are the scripts to the Vocaloid Radio Mod

 

 

VRTogglerScript

 

scn VRTitleToggleScript

 

begin onequip

 

if vocaloidRadioQuest.showtitle == 0

set vocaloidRadioQuest.showtitle to 1

player.unequipitem VrTitleToggler1 1

showMessage VRMsgTitlesOn

 

elseif vocaloidRadioQuest.showtitle == 1

set vocaloidRadioQuest.showtitle to 0

player.unequipitem VrTitleToggler1 1

showMessage VRMsgTitlesOFF

endif

end

 

---------------------------------------------------------------------------------------------

 

Radio Script

 

scn VocaloidRadioScript

 

short SongsPlayed

 

short AlreadyPlayed

short AlreadyPlayed2

short AlreadyPlayed3

short AlreadyPlayed4

short AlreadyPlayed5

short AlreadyPlayed6

 

short AlreadySaid

short AlreadySaid2

short AlreadySaid3

short AlreadySaid4

short AlreadySaid5

 

short IntroSaid

short IntroSaid2

short IntroSaid3

short IntroSaid4

short IntroSaid5

 

short ShowTitle

 

short Debug

 

short DoOnce

float StartTimer

 

 

BEGIN GameMode

 

if player.getitemcount VRTitleToggler1 == 0

player.additem VRTitleToggler1 1

endif

 

if ( DoOnce == 0 )

VocaloidRadioREF.Disable

if ( RadioEnclaveRef.GetDisabled == 0 )

set DoOnce to 1

set StartTimer to 10

elseif ( GetStage MQ09 >= 0 )

Set DoOnce to 1

Set StartTimer to 5

endif

 

elseif ( DoOnce == 1 )

if ( StartTimer <= 0 )

VocaloidRadioREF.Enable

set DoOnce to 1

ForceRadioStationUpdate

ResetPipboyManager

Set DoOnce to -1

else

set StartTimer to ( StartTimer - GetSecondsPassed )

endif

endif

 

END

----------------------------------------------------------------

Now Playing Script (result script begin)

 

if VocaloidRadioQuest.showtitle == 1

showmessage VRMsgAiKotoba (Place message in here)

endif

-------------------------------------------------------------------------------

Result Script End

 

set VocaloidRadioQuest.Debug to 2

set VocaloidRadioQuest.AlreadyPlayed6 to VocaloidRadioQuest.AlreadyPlayed5

set VocaloidRadioQuest.AlreadyPlayed5 to VocaloidRadioQuest.AlreadyPlayed4

set VocaloidRadioQuest.AlreadyPlayed4 to VocaloidRadioQuest.AlreadyPlayed3

set VocaloidRadioQuest.AlreadyPlayed3 to VocaloidRadioQuest.AlreadyPlayed2

set VocaloidRadioQuest.AlreadyPlayed2 to VocaloidRadioQuest.AlreadyPlayed

set VocaloidRadioQuest.AlreadyPlayed to 1

set VocaloidRadioQuest.SongsPlayed to ( VocaloidRadioQuest.SongsPlayed + 1 )

Edited by DemocraticAlliance15
Link to comment
Share on other sites

  • Recently Browsing   0 members

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