- Joined
- Dec 3, 2020
- Messages
- 21
- Reaction score
- 2
- First Language
- English
- Primarily Uses
- RMMV
I am haft way finished with GT Battle Station Xross Generations demo, but I need the game to make it more awesome by adding a super combo movie while in battle mode. I tried this code:
but that doesn't work. So how can I play the movie on the battle just like RMVX Ace?
# -------------------------------------------------
# Script Name : Play Movie before skill
# Scripter : efeberk
# Date : 29.07.2013 07:28
# Version : RPG Maker VX Ace(RGSS3)
# ------------------------------------------------
#
# How to:
#
# Just add a little text to skill notetag
#
# <movie: x>
#
# x = movie name
#
class RPG::Skill < RPG::UsableItem
def movie
@note.scan(/<(?:MOVIE|movie):\s(\w+)>/i)
return $1.to_s
end
end
class Game_Battler < Game_BattlerBase
def use_item(item)
if item.is_a?(RPG::Skill)
Graphics.play_movie('Movies/' + item.movie) unless item.movie.empty?
pay_skill_cost(item)
end
consume_item(item) if item.is_a?(RPG::Item)
item.effects.each {|effect| item_global_effect_apply(effect) }
end
end
but that doesn't work. So how can I play the movie on the battle just like RMVX Ace?