Announcement
Announcement
| 2nd Quarter Contest Announcement posted! See the Community Announcements section. |
![]() ![]() |
Jul 31 2012, 10:01 AM
Post
#1
|
|
![]() ![]() Type: Designer Alignment: Lawful Good |
I have a place where you will have to get on and off the vehicle. But, I can't have the sound and BGM constantly changing. So I need a script that completely removes the effect of vehicles changing the BGM automatically. Either that, or I need to know what to change in the actual scripts to get the same effect.
-------------------- |
|
|
|
Jul 31 2012, 10:29 AM
Post
#2
|
|
![]() Swinging a chain in a town near you. ![]() Type: Writer Alignment: Lawful Neutral |
CODE #///////////////////////////////////////
module DP3_Vehicle_Sound_Options #////// #/////////////////////////////////////// # The ID of the switch which turns off changing the BGM on all vehicles Event_Switch_ID = 10 #////////////////////////////////////// end # .. // // // .. .. /// #////////////////////////////////////// class Game_Vehicle < Game_Character alias dp3_nobgm_during_travel get_on def get_on if $game_switches[DP3_Vehicle_Sound_Options::Event_Switch_ID] == true @driving = true @walk_anime = true @step_anime = true if @type == 2 # If airship @priority_type = 2 # Change priority to "Above Characters" end else dp3_nobgm_during_travel end end end -------------------- ![]() ![]() ![]() ![]() ![]() ![]() Spoiler: |
|
|
|
Jul 31 2012, 05:32 PM
Post
#3
|
|
![]() ![]() Type: Designer Alignment: Lawful Good |
CODE #/////////////////////////////////////// module DP3_Vehicle_Sound_Options #////// #/////////////////////////////////////// # The ID of the switch which turns off changing the BGM on all vehicles Event_Switch_ID = 10 #////////////////////////////////////// end # .. // // // .. .. /// #////////////////////////////////////// class Game_Vehicle < Game_Character alias dp3_nobgm_during_travel get_on def get_on if $game_switches[DP3_Vehicle_Sound_Options::Event_Switch_ID] == true @driving = true @walk_anime = true @step_anime = true if @type == 2 # If airship @priority_type = 2 # Change priority to "Above Characters" end else dp3_nobgm_during_travel end end end Wow, so quick too. Thanks. This is amazing. -------------------- |
|
|
|
![]() ![]() |
| Lo-Fi Version | Time is now: 18th May 2013 - 09:02 PM |
|
|