Kylocks Gun Addon [VX]

This was either left out or someone removed from the forums? But I found Kylocks Script for Gun Side View Script (Yes I tried number of searches on this site and found nothing, and if its already on I am sorry)

I also made a copy and modified it and make a "Throwing Knife" Script.

All Credit to Kylock

Images:
Content Hidden Spoiler
Gun:
Image

Image

Knife:
Image

Image


Script(s):
Content Hidden Spoiler
Gun Addon:
  1. #==============================================================================
  2. #  –  Guns Action Sequence Addon 1.1 for RPG Tankentai Sideview Battle System
  3. # 5.12.2008
  4. #------------------------------------------------------------------------------
  5. # Script by: Kylock
  6. #==============================================================================
  7. # Requested by gend0 (rpgrevolution.com)
  8. # This is a script that adds new functionality to the Sideview battle System
  9. # in the way of an additional animation for gun weapons.
  10. # To use this script, simply add it below the Sideview Battle System scripts
  11. # and make sure your gun have element 6(Whip) checked in the game database on
  12. # the weapons tab. This can be changed below if you like your whip element.
  13. #==============================================================================
  14. #  –  Release Notes
  15. #------------------------------------------------------------------------------
  16. # 1.0
  17. #  — Original Release.
  18. # 1.1
  19. #  — Fixed a "Stack Level" error when used with the Bow script.
  20. #==============================================================================
  21. #  –  Installation Notes
  22. #------------------------------------------------------------------------------
  23. # Since you cannot add NEW elements to the game, you have to choose something
  24. # to replace. By default, this script uses element 6: Whip since it's most
  25. # unlikley that any game will have many whips, or monsters vulnerable to whips.
  26. # You can however change it to something else if whips are important to you.
  27. # Also, any whips you have must lose their "gun" attribute, or they will be
  28. # whips that shoot.
  29. # When you make your gun weapons, you can obtain a nice effect by making the
  30. # Animaiton 79, or any single target elemental aniation. For normal guns, you
  31. # may want to consider making a custom hit animation in the game database.
  32. # Sicne the script uses the weapon icon to draw the weapon, I also suggest you
  33. # find a good RTP-styled "gun" icon. By RTP-styled, I mean the
  34. # "diagonal-looking" style.
  35. #==============================================================================
  36.  
  37. module N01
  38. # Element used to define a weapon as a gun
  39. GUN_ELEMENT = 6 # Guns weapon ElementID number
  40.  
  41. RANGED_ANIME = {
  42. "GUNSHOT" => ["sound", "se", 100, 100, "close1"],}
  43. ANIME.merge!(RANGED_ANIME)
  44. # Action Sequence
  45. RANGED_ATTACK_ACTION = {
  46. "GUN_ATTACK" => ["JUMP_AWAY","WPN_SWING_V","30","GUNSHOT","WPN_SWING_V",
  47. "OBJ_ANIM_WEIGHT","12","WPN_SWING_VL","OBJ_ANIM_L","One Wpn Only",
  48. "16","Can Collapse","JUMP_TO","COORD_RESET"],}
  49. ACTION.merge!(RANGED_ATTACK_ACTION)
  50. end
  51.  
  52. module RPG
  53. class Weapon
  54. alias kylock_guns_base_action base_action
  55. def base_action
  56. # If "Gun" Element is checked on the weapons tab in the database,
  57. # the new ranged attack action sequence is used.
  58. if $data_weapons[@id].element_set.include?(N01::GUN_ELEMENT)
  59. return "GUN_ATTACK"
  60. end
  61. kylock_guns_base_action
  62. end
  63. end
  64. end
Expand to see the code.

You put it under all the Sideview scripts.

Throwing Knife Addon:
I made some adjustments to this script and made a Throwing Knife one.
  1. module N01
  2. # Element used to define a weapon as a Throwing Knife
  3. THROWING_KNIFE_ELEMENT = 5 # Guns weapon ElementID number
  4.  
  5. RANGED_ANIME = {
  6. "KNIFE_THROW" => ["sound", "se", 100, 100, "bow1"],}
  7. ANIME.merge!(RANGED_ANIME)
  8. # Action Sequence
  9. RANGED_ATTACK_ACTION = {
  10. "KNIFE_ATTACK" => ["JUMP_AWAY","WPN_SWING_V","KNIFE_THROW","WPN_SWING_V",
  11. "OBJ_ANIM_WEIGHT","12","WPN_SWING_VL","OBJ_ANIM_L","One Wpn Only",
  12. "16","Can Collapse","JUMP_TO","COORD_RESET"],}
  13. ACTION.merge!(RANGED_ATTACK_ACTION)
  14. end
  15.  
  16. module RPG
  17. class Weapon
  18. alias knife_base_action base_action
  19. def base_action
  20. # If "Throwing" Element is checked on the weapons tab in the database,
  21. # the new ranged attack action sequence is used.
  22. if $data_weapons[@id].element_set.include?(N01::THROWING_KNIFE_ELEMENT)
  23. return "KNIFE_ATTACK"
  24. end
  25. knife_base_action
  26. end
  27. end
  28. end
Expand to see the code.

I put this under the Gun Addon


Here is what my Elements list, but you can put the Throwing and Gun Elements where ever you want.
Image
V-Chaos wrote:
This was either left out or someone removed from the forums? But I found Kylocks Script for Gun Side View Script (Yes I tried number of searches on this site and found nothing, and if its already on I am sorry)

I also made a copy and modified it and make a "Throwing Knife" Script.

All Credit to Kylock

Images:
Content Hidden Spoiler
Gun:
Image

Image

Knife:
Image

Image


Script(s):
Content Hidden Spoiler
Gun Addon:
  1. #==============================================================================
  2. #  –  Guns Action Sequence Addon 1.1 for RPG Tankentai Sideview Battle System
  3. # 5.12.2008
  4. #------------------------------------------------------------------------------
  5. # Script by: Kylock
  6. #==============================================================================
  7. # Requested by gend0 (rpgrevolution.com)
  8. # This is a script that adds new functionality to the Sideview battle System
  9. # in the way of an additional animation for gun weapons.
  10. # To use this script, simply add it below the Sideview Battle System scripts
  11. # and make sure your gun have element 6(Whip) checked in the game database on
  12. # the weapons tab. This can be changed below if you like your whip element.
  13. #==============================================================================
  14. #  –  Release Notes
  15. #------------------------------------------------------------------------------
  16. # 1.0
  17. #  — Original Release.
  18. # 1.1
  19. #  — Fixed a "Stack Level" error when used with the Bow script.
  20. #==============================================================================
  21. #  –  Installation Notes
  22. #------------------------------------------------------------------------------
  23. # Since you cannot add NEW elements to the game, you have to choose something
  24. # to replace. By default, this script uses element 6: Whip since it's most
  25. # unlikley that any game will have many whips, or monsters vulnerable to whips.
  26. # You can however change it to something else if whips are important to you.
  27. # Also, any whips you have must lose their "gun" attribute, or they will be
  28. # whips that shoot.
  29. # When you make your gun weapons, you can obtain a nice effect by making the
  30. # Animaiton 79, or any single target elemental aniation. For normal guns, you
  31. # may want to consider making a custom hit animation in the game database.
  32. # Sicne the script uses the weapon icon to draw the weapon, I also suggest you
  33. # find a good RTP-styled "gun" icon. By RTP-styled, I mean the
  34. # "diagonal-looking" style.
  35. #==============================================================================
  36.   
  37. module N01
  38. # Element used to define a weapon as a gun
  39. GUN_ELEMENT = 6 # Guns weapon ElementID number
  40.   
  41. RANGED_ANIME = {
  42. "GUNSHOT" => ["sound", "se", 100, 100, "close1"],}
  43. ANIME.merge!(RANGED_ANIME)
  44. # Action Sequence
  45. RANGED_ATTACK_ACTION = {
  46. "GUN_ATTACK" => ["JUMP_AWAY","WPN_SWING_V","30","GUNSHOT","WPN_SWING_V",
  47. "OBJ_ANIM_WEIGHT","12","WPN_SWING_VL","OBJ_ANIM_L","One Wpn Only",
  48. "16","Can Collapse","JUMP_TO","COORD_RESET"],}
  49. ACTION.merge!(RANGED_ATTACK_ACTION)
  50. end
  51.   
  52. module RPG
  53. class Weapon
  54. alias kylock_guns_base_action base_action
  55. def base_action
  56. # If "Gun" Element is checked on the weapons tab in the database,
  57. # the new ranged attack action sequence is used.
  58. if $data_weapons[@id].element_set.include?(N01::GUN_ELEMENT)
  59. return "GUN_ATTACK"
  60. end
  61. kylock_guns_base_action
  62. end
  63. end
  64. end
Expand to see the code.

You put it under all the Sideview scripts.

Throwing Knife Addon:
I made some adjustments to this script and made a Throwing Knife one.
  1. module N01
  2. # Element used to define a weapon as a Throwing Knife
  3. THROWING_KNIFE_ELEMENT = 5 # Guns weapon ElementID number
  4.   
  5. RANGED_ANIME = {
  6. "KNIFE_THROW" => ["sound", "se", 100, 100, "bow1"],}
  7. ANIME.merge!(RANGED_ANIME)
  8. # Action Sequence
  9. RANGED_ATTACK_ACTION = {
  10. "KNIFE_ATTACK" => ["JUMP_AWAY","WPN_SWING_V","KNIFE_THROW","WPN_SWING_V",
  11. "OBJ_ANIM_WEIGHT","12","WPN_SWING_VL","OBJ_ANIM_L","One Wpn Only",
  12. "16","Can Collapse","JUMP_TO","COORD_RESET"],}
  13. ACTION.merge!(RANGED_ATTACK_ACTION)
  14. end
  15.   
  16. module RPG
  17. class Weapon
  18. alias knife_base_action base_action
  19. def base_action
  20. # If "Throwing" Element is checked on the weapons tab in the database,
  21. # the new ranged attack action sequence is used.
  22. if $data_weapons[@id].element_set.include?(N01::THROWING_KNIFE_ELEMENT)
  23. return "KNIFE_ATTACK"
  24. end
  25. knife_base_action
  26. end
  27. end
  28. end
Expand to see the code.

I put this under the Gun Addon


Here is what my Elements list, but you can put the Throwing and Gun Elements where ever you want.
Image


Hope I can read your throwing knives script. I know it's a nice article.

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=64338