Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
  • 0
Sign in to follow this  
LaDestitute

Need help modifying the Enu SBS Tanketai XP script

Question

I'm trying to modify the Enelvon Bomb Add-On mini-script so that items marked with the bomb ID and given the proper animation will be thrown at the enemy and then show the animation and the whole shebang, but it's not working at as I expected. I use the item, and no errors occur but nothing happens. YES, I know offense items must have an odd damage value to work. Modified script via pastbin in the post. Basically, what I'm trying to do: When item Bomb is thrown, it makes an animation of the bomb icon being thrown at the enemy; bouncing abit as it gets close to the enemy and then explodes when it lands.

 

http://www.hbgames.tk/paste/426

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

bump

 

#==============================================================================
# â–  Bomb Weapons 1.0 for RPG Tankentai Sideview Battle System
# 8.23.2008
#------------------------------------------------------------------------------
# Written by Enelvon Siolach
#==============================================================================
# This script makes all weapons with the Bomb element (default Element ID #23)
# have an animation where they throw a bomb at the foe.
#==============================================================================
# â–  Release Notes
#------------------------------------------------------------------------------
# 1.0
# â— Original Release.
#==============================================================================
# â–  Installation Notes
#------------------------------------------------------------------------------
# Plug and play. Set the BOMB_ELEMENT to the Element ID of Sworddash. Add
# BOMB to your Bomb weapons and give them an explosion animation from the
# Database, and you're done!
#==============================================================================

module N01
 # Element used to define a skill as a Bomb skill
 BOMB_ELEMENT = 28

 # Action Sequence
 BOMB_ATTACK_ACTION = {
 "BOMB_THROW" => ["BEFORE_MOVE","WPN_SWING_OVER","absorb1","WAIT(FIXED)",
 "START_WEAPON_THROW","12","OBJ_ANIM_WEIGHT","Can Collapse",
 "COORD_RESET"],}
 ACTION.merge!(BOMB_ATTACK_ACTION)
end

class RPG::Skill
 alias enelvon_bomb_base_action base_action
 def base_action
# If the Bomb Element is checked on the skills tab in the database,
# the Bomb attack action sequence is used.
if $data_skills[@id].element_set.include?(N01::BOMB_ELEMENT)
  return "BOMB_THROW"
end
enelvon_bomb_base_action
 end
end

class RPG::Weapon
 alias enelvon_bomb_weapon_base_action base_action
 def base_action
# If the Bomb Element is checked on the skills tab in the database,
# the Bomb attack action sequence is used.
if $data_weapons[@id].element_set.include?(N01::BOMB_ELEMENT)
  return "BOMB_THROW"
end
enelvon_bomb_weapon_base_action
 end
end

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...