Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> Simple Script Fix, Need the help of a scripter for a unique script
Mustaklaki
post Aug 15 2012, 07:04 PM
Post #1


Level 3
Group Icon

Group: Member
Posts: 35
Type: Developer
RM Skill: Skilled




(Pretty sure this is in the right spot)
I was having a custom script being done for my game, but the person scripting it hasn't improved upon this script and hasn't even started and it's been around a month.

The script was made to allow the damage of a skill happen DURING the skill's animation. This allows battles to go a lot faster, and gives the game a more realistic perspective.

The problems with this script are two things:
1. Using "Attack" makes the Attack hit twice, or 4 times for "Dual attack" attacks.
2. Same thing using items that heal/damage ETC.

I normally wouldn't post it, I'm not sure if he wants others using it, but it doesn't work in it's current state due to these 2 problems.

Hungrysnake's Show Damage
CODE
# ============================================================================ #
# Quick snippet by HungrySnake                                                 #
#                                                                              #
# This snippet simply shows the dealt damage directly after using a skill.     #
# It's plug and play                                                           #
# ============================================================================ #

class Scene_Battle < Scene_Base  
  
  def execute_action_skill
    @skill_lol = @active_battler.action.skill
    skill = @skill_lol
    text = @active_battler.name + skill.message1
    @message_window.add_instant_text(text)
    unless skill.message2.empty?
      wait(10)
      @message_window.add_instant_text(skill.message2)
    end
    targets = @active_battler.action.make_targets
    display_animation(targets, skill.animation_id)
    @active_battler.mp -= @active_battler.calc_mp_cost(skill)
    $game_temp.common_event_id = skill.common_event_id
  end
  
  def display_normal_animation(targets, animation_id, mirror = false)
    animation = $data_animations[animation_id]
    if animation != nil
      to_screen = (animation.position == 3)       # Is the positon "screen"?
      for target in targets.uniq
        target.animation_id = animation_id
        target.animation_mirror = mirror
        for target1 in targets
          target1.skill_effect(@active_battler, @skill_lol)
          display_action_effects(target1, @skill_lol)
        end
        wait(20, true) unless to_screen           # If for one, wait
      end
      wait(20, true) if to_screen                 # If for all, wait
    end
  end
end


__________________________

My epic game. Put this in your siggy if you support it! Demo was just updated, check it out!
CODE
[url="http://www.rpgrevolution.com/forums/index.php?showtopic=56261"][img]http://i197.photobucket.com/albums/aa100/moepippy/ISupport.png[/img][/url]

Siggy Image
Go to the top of the page
 
+Quote Post
   

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 25th May 2013 - 12:18 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker