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
(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?
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
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]
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?
RM2K3 Tinting and Map Help
Hello!
So I've been trying to make the maps in my game have more of a visual flair. I've been trying to add a tint similar to sunset or dawn to specific locations. I've also wanted to add painting like backgrounds to add different camera perspectives in the game. Are there efficient ways of doing both?
So I've been trying to make the maps in my game have more of a visual flair. I've been trying to add a tint similar to sunset or dawn to specific locations. I've also wanted to add painting like backgrounds to add different camera perspectives in the game. Are there efficient ways of doing both?
How Difficult to Remake Final Fantasy 6?
I've seen alot of games using sprites from Final Fantasy 6 but never have I see someone actually recreate parts of the game with newer graphics. Final Fantasy IV for the Psp looked stunning but kept the same gameplay from the original. If done the same way, how long and difficult would it be to recreate all of Final Fantasy 6?
Pages:
1














