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.

#1
Posted 11 July 2013 - 10:04 PM

#2
Posted 11 July 2013 - 10:07 PM

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, 11 July 2013 - 10:08 PM.
#3
Posted 12 July 2013 - 09:42 PM

Don't worry now I have figured out how to do it and it is working properly.
Also tagged with one or more of these keywords: radio, message
