THEGREATDIRECTOR'S PROFILE
What's up! I'm a fan of final fantasy and decided to show my own creativity. I'm a part of FXN so check it out and chat with me if I'm around!
Search
Filter
(Script Request) Radio System
Hello,
I am in need of a script that can create a functioning radio in my game.
Similar to the radio in Grand Theft Auto: San Andreas or GTAV, the script would allow the player to go through several radio stations where songs for that specific station would play in random order. In between songs a random BGM from a list of recorded advertisements would play before the next song is selected, similar to the advertisements heard in Grand Theft Auto games over the radio stations. The system would be accessed via a option from the menu where stations can be chosen. Stations would be numbered and certain stations could be blocked depending on the specific map. Additionally, buttons can be assigned to toggle the radio on or off while on the map and to change to the next station.
I am in need of a script that can create a functioning radio in my game.
Similar to the radio in Grand Theft Auto: San Andreas or GTAV, the script would allow the player to go through several radio stations where songs for that specific station would play in random order. In between songs a random BGM from a list of recorded advertisements would play before the next song is selected, similar to the advertisements heard in Grand Theft Auto games over the radio stations. The system would be accessed via a option from the menu where stations can be chosen. Stations would be numbered and certain stations could be blocked depending on the specific map. Additionally, buttons can be assigned to toggle the radio on or off while on the map and to change to the next station.
[VX ACE] BGM Play Scripting Help?
Thank you so much for this! I just have one question. Is there a way to edit this script so that when the song stops playing another song plays directly after rather than looping the same song again? Thank you!
[VX ACE] BGM Play Scripting Help?
So I'm trying to get started in Ruby scripting and I thought to start with something simple. I wanted to make a script were if a button was pressed a specific BGM would play. I am able to run the game with the script except the BGM isn't playing after I press the button.
class RPG::AudioFile
def initialize(name = '', volume = 100, pitch = 100)
@name = name
@volume = volume
@pitch = pitch
end
attr_accessor :name
attr_accessor :volume
attr_accessor :pitch
end
class RPG::BGM < RPG::AudioFile
@@last = RPG::BGM.new
def play(pos = 0)
if @name.empty?
Audio.bgm_stop
@@last = RPG::BGM.new
else
Audio.bgm_play('Audio/BGM/' + @name, @volume, @pitch, pos)
@@last = self.clone
end
end
def replay
play(@pos)
end
def self.stop
Audio.bgm_stop
@@last = RPG::BGM.new
end
def self.fade(time)
Audio.bgm_fade(time)
@@last = RPG::BGM.new
end
def self.last
@@last.pos = Audio.bgm_pos
@@last
end
attr_accessor :pos
end
module Radio
Radio_1 = :Shift
end
module CarRadio
if Input.trigger?(Radio::Radio_1)
Audio.bgm_play('Town1'[100[100]])
else
end
end
Thoughts?
class RPG::AudioFile
def initialize(name = '', volume = 100, pitch = 100)
@name = name
@volume = volume
@pitch = pitch
end
attr_accessor :name
attr_accessor :volume
attr_accessor :pitch
end
class RPG::BGM < RPG::AudioFile
@@last = RPG::BGM.new
def play(pos = 0)
if @name.empty?
Audio.bgm_stop
@@last = RPG::BGM.new
else
Audio.bgm_play('Audio/BGM/' + @name, @volume, @pitch, pos)
@@last = self.clone
end
end
def replay
play(@pos)
end
def self.stop
Audio.bgm_stop
@@last = RPG::BGM.new
end
def self.fade(time)
Audio.bgm_fade(time)
@@last = RPG::BGM.new
end
def self.last
@@last.pos = Audio.bgm_pos
@@last
end
attr_accessor :pos
end
module Radio
Radio_1 = :Shift
end
module CarRadio
if Input.trigger?(Radio::Radio_1)
Audio.bgm_play('Town1'[100[100]])
else
end
end
Thoughts?
VX ACE - Adding Menu Options
Thanks for the suggestion. I've used some of his scripts before some I'm trying to get adjusted to this one.
Right now I've added in this line to the Common Event Commands:
:event_3 => { "Ship", 0, 0, 3],
However I keep getting the error-
Unexpected ',', expecting tASSOC
:event_3 => { "Ship", 0, 0, 3],
Right now I've added in this line to the Common Event Commands:
:event_3 => { "Ship", 0, 0, 3],
However I keep getting the error-
Unexpected ',', expecting tASSOC
:event_3 => { "Ship", 0, 0, 3],
VX ACE - Adding Menu Options
Thanks for the suggestion. I've used some of his scripts before some I'm trying to get adjusted to this one.
Right now I've added in this line to the Common Event Commands:
:event_3 => { "Ship", 0, 0, 3],
However I keep getting the error-
Unexpected ',', expecting tASSOC
:event_3 => { "Ship", 0, 0, 3],
Right now I've added in this line to the Common Event Commands:
:event_3 => { "Ship", 0, 0, 3],
However I keep getting the error-
Unexpected ',', expecting tASSOC
:event_3 => { "Ship", 0, 0, 3],
VX ACE - Adding Menu Options
I am trying to add a travel option for my main menu in the game. Right now my code looks a bit like this:
Under Scene_Menu
#--------------------------------------------------------------------------
# * Create Command Window
#--------------------------------------------------------------------------
def create_command_window
@command_window = Window_MenuCommand.new
@command_window.set_handler(:item, method(:command_item))
@command_window.set_handler(:skill, method(:command_personal))
@command_window.set_handler(:equip, method(:command_personal))
@command_window.set_handler(:status, method(:command_personal))
@command_window.set_handler(:formation, method(:command_formation))
@command_window.set_handler(:save, method(:command_save))
@command_window.set_handler(:game_end, method(:command_game_end))
@command_window.set_handler(:travel, method(:command_original))
@command_window.set_handler(:cancel, method(:return_scene))
end
And Under Window_MenuCommand
#--------------------------------------------------------------------------
# * For Adding Original Commands
#--------------------------------------------------------------------------
def add_original_commands
add_command(Vocab::travel, :original, original_enabled)
end
Basically I want the option to allow the player to warp to a set location whenever they press this option in the menu. Any ideas?
Under Scene_Menu
#--------------------------------------------------------------------------
# * Create Command Window
#--------------------------------------------------------------------------
def create_command_window
@command_window = Window_MenuCommand.new
@command_window.set_handler(:item, method(:command_item))
@command_window.set_handler(:skill, method(:command_personal))
@command_window.set_handler(:equip, method(:command_personal))
@command_window.set_handler(:status, method(:command_personal))
@command_window.set_handler(:formation, method(:command_formation))
@command_window.set_handler(:save, method(:command_save))
@command_window.set_handler(:game_end, method(:command_game_end))
@command_window.set_handler(:travel, method(:command_original))
@command_window.set_handler(:cancel, method(:return_scene))
end
And Under Window_MenuCommand
#--------------------------------------------------------------------------
# * For Adding Original Commands
#--------------------------------------------------------------------------
def add_original_commands
add_command(Vocab::travel, :original, original_enabled)
end
Basically I want the option to allow the player to warp to a set location whenever they press this option in the menu. Any ideas?
Spaceship Event [RM2k3]
I get the changing the sprite part but I don't fully understand setting up the teleport event for each world.
Spaceship Event [RM2k3]
Hey I needed some help on an event I was doing in a sci-fi/space game.
I wanted an event where the player navigated a world map solely on a spaceship and landed on planets by flying over them. The player couldn't get out of the spaceship on the world map and once they entered it on the ground they would immediately be taken to the world map. Does anyone know how to do this?
I wanted an event where the player navigated a world map solely on a spaceship and landed on planets by flying over them. The player couldn't get out of the spaceship on the world map and once they entered it on the ground they would immediately be taken to the world map. Does anyone know how to do this?
Is expansive too expansive?
I want to make a space rpg, one where you can roam several planets and asteroids with each having their own towns and dungeons. However I've come to wonder just how large I should make the universe this game takes place in. Is too large just unnecessary or is it needed for a genre of this type?














