Save-Point
Inserting MOG Chain Commands in a particular Skill ID - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Games Development (https://www.save-point.org/forum-4.html)
+--- Forum: Code Support (https://www.save-point.org/forum-20.html)
+--- Thread: Inserting MOG Chain Commands in a particular Skill ID (/thread-5571.html)



Inserting MOG Chain Commands in a particular Skill ID - iceflux - 08-25-2015

Greetings to all RM PRO and GURUS here Very cheery I hope you will help me in this problem. So far I want to implement key combo while in scene battle. Here's the idea, when I choose a special skill a Combo keys will pop up on the screen, if you fail to finish or choose a wrong key then the actor will skip his/her turn but if he finish it then the skill will be execute.


Im stuck here in this lines

in Scene_Battle 4
Code:
 #--------------------------------------------------------------------------
 # * Make Skill Action Results
 #--------------------------------------------------------------------------
 def make_skill_action_result
   # Get skill
   @skill = $data_skills[@active_battler.current_action.skill_id]
 ###########################################################    

 
   if @active_battler.current_action.skill_id == 88
      $scene = Chain_Commands.new(27)
   end
 
 
 
###########################################################  

   # If not a forcing action
   unless @active_battler.current_action.forcing
     # If unable to use due to SP running out
     unless @active_battler.skill_can_use?(@skill.id)
       # Clear battler being forced into action
       $game_temp.forcing_battler = nil
       # Shift to step 1
       @phase4_step = 1
       return
     end
   end
   # Use up SP
   @active_battler.sp -= @skill.sp_cost
   # Refresh status window
   @status_window.refresh
   # Show skill name on help window
   @help_window.set_text(@skill.name, 1)
   # Set animation ID
   @animation1_id = @skill.animation1_id
   @animation2_id = @skill.animation2_id
   # Set command event ID
   @common_event_id = @skill.common_event_id
   # Set target battlers
   set_target_battlers(@skill.scope)
   # Apply skill effect
   for target in @target_battlers
     target.skill_effect(@active_battler, @skill)
   end
 end
 #--------------------------------------------------------------------------

in the ############## i put the call in MOG Combo script
$scene = Chain_Commands.new(27) then it runs but after the combo scene it came back to battle map. I also check for the $scene in Scene_battle 1 and remove the scene != self but no luck.

this is the Chain Command that I am using http://www.atelier-rgss.com/RGSS/System/XP_SYS11.html



I think of when the graphic.freeze then the Chain Command will execute then after the chain command it will go back in the battle_scene 4  . I hope you will help me Cry and thanks in advance


RE: Inserting MOG Chain Commands in a particular Skill ID - DerVVulfman - 08-26-2015

Interesting. Mog made a Blitz/Timed Key script for generic events? I wonder why he never made one for battle skills.

I don't have THAT much time right now, but you may be interested in trying out another script that handles timed events like this... for your battlesystem: ( > Zephren's Timed Hit Add On < )


RE: Inserting MOG Chain Commands in a particular Skill ID - iceflux - 08-26-2015

(08-26-2015, 03:12 AM)DerVVulfman Wrote: Interesting.  Mog made a Blitz/Timed Key script for generic events?  I wonder why he never made one for battle skills.

I don't have THAT much time right now, but you may be interested in trying out another script that handles timed events like this... for your battlesystem:  ( > Zephren's Timed Hit Add On < )

I dont know but I saw combo skill keys on his game SEFIA
screenshot:
[Image: SEFIA_SC02.jpg]


 I tried the script that you gave but I want to implement the MOG Chain Commands. I will wait if you're busy, still hoping on this battle scene chain combo Cry


here's the file of Project: http://www.mediafire.com/download/ajxsx8o8k6xatbh/mogchaintobattlescene.rar


RE: Inserting MOG Chain Commands in a particular Skill ID - DerVVulfman - 08-26-2015

Oh, I snagged the rar demo


RE: Inserting MOG Chain Commands in a particular Skill ID - iceflux - 08-26-2015

(08-26-2015, 05:16 AM)DerVVulfman Wrote: Oh, I snagged the rar demo

what do you mean by snag? is there a problem in the download link?


RE: Inserting MOG Chain Commands in a particular Skill ID - DerVVulfman - 08-27-2015

No. Snagged... as in I grabbed it from the original Mog website.

Methinks it MAY be something he coded for his ABS though, an event based map system. If that is correct, he coded it to work specifically with event systems.

Oh, don't get me wrong. IF that is the case, it may be rewritten in SOME way to work with a general battlesystem.


RE: Inserting MOG Chain Commands in a particular Skill ID - iceflux - 08-27-2015

yeah, I am working on it but still getting error. I searched already on google but I cant find any of this topic related through implementing on skills, except that script that you gave. Cry