Alfabusa 0 Posted July 29, 2013 Greetings, I have a request for anyone who is deliciously awesome enough to help me out with it! I have searched the internets far and wide for a good script that makes me able to play videos into battles when using a certain skill. The video should be triggered when the player clicks the skill, and should play before the initial attack-animation! So it goes like: Player clicks on attack --> Video plays --> Attack happens. I have only ever encountered 2 other script for this on the internet, and the first one honestly doesn't at all work for me, and the second one being Victor Sant's animated battlers, which conflicts with the scripts I alreayd have. So, I decided to ask here! This script would be extremely useful for the project I and some others are currently making, as we are interested in making epic and intense ultimate-skills displaying a video of the main character doing something before the skill is finished! This should not only apply to the player-characters, but to enemy ones as well.The video format should preferibly be OGV or something similiar that is small in filesize (if it is possible, of course c:), and absolutley not AVI as it is a disgusting filesize-hogging monster of a fileformat that I want to strangle to death. What I can also can add is that I use the "MOG - Advanced Battle Hud (v2.2)" system, but I am not sure it matters that much since the MOG-battle system seems quite compatible with all other scripts, and only to really affect the visuals. Anyway; since I am not much into Ruby-scriptingt, I have no idea how hard it is to make this kind of script, but if it infact is something for only the most hardcore of scripters, please let me know and I can try to strike up some kind of deal. Also, if you need any more details on how it should work I am happy to write it all up! Thanks alot, have a good one! Share this post Link to post Share on other sites
efeberk 84 Posted July 29, 2013 (edited) I prepared a little script for you. It works fine on RMVX Ace's default battle system. But I think you are using a different battle system. Movie should have OGV extension. Try this: # ------------------------------------------------- # 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 If you had some errors, please post full script of battle system you are using. Edited July 29, 2013 by efeberk 3 pspjake, ShinGamix and Jellysaur reacted to this Share this post Link to post Share on other sites
Alfabusa 0 Posted July 29, 2013 HOLY EMPEROR IT ACTUALLY WORKS! Thanks so much for this Efeberk! Praised be to your glorious skill in this script-writing trade, it functions absolutley gloriously! You have no idea how many hours I have spent on trying to find a solution to this problem; but you, good sir, have finally put an end to my suffering! I will of course write your name in the credits of the game as the wonderful savior you are, but I will do whatever you may want in return for this, as it was really, REALLY nice of you! I AM SO HAPPY, GOSH. Share this post Link to post Share on other sites
pspjake 0 Posted July 29, 2013 Going to add this on my lil project Thanks efeberk Share this post Link to post Share on other sites
ShinGamix 101 Posted August 10, 2013 going to see if i can add this to my ridiculous already complex battle system Share this post Link to post Share on other sites
Galv 1,386 Posted August 10, 2013 It appears this script request is solved so I shall close it Share this post Link to post Share on other sites