Throwing skill
June/2/1010
SummaryI would like a throwing skill which lets the user select any item in his/her inventory and throw it at the enemy for RPG Maker VX.
The damage dealt by the thrown item should be a combination of both the damage dealt by the skill it self and any damage dealt by the item, which could be set with a tag in the item's note box.
The script should also let the user designate which items can be thrown or not.
Also the throw skill should have it's own animation played even if the item being thrown has it's own battle animation.
One more thing, this script should be compatible with Modern Algebra's Grid Inventory script, so that the actor using the the throwing skill can only throw items from his/her inventory.
Features Desired
- Compatibility with Modern Algebra's Grid Inventory script
- Damage dealt by the thrown item will be determined by set number on the item in a tag in the note box
- Throwing skill battle animation should be played instead of the item animation if any.
MockupsCan't really think of anything really...
Games its been in
Did you search?Yes
Where did you search?
- RMRK forums
- HBGames forums
- RPG Revolution forums
- RMVXP Forums
What did you search for?
- Throwing skill
- Throw skill
- Throw
Bump...
So all you want is the ability to set items as being throwable and set a particular amount of added damage through the note box?
Precisely.
But I also need the actual skill to look for the throwable Item in the actor's own Inventory through ur Grid inventory script.
I had a problem with that in Yanfly's script which is why I'm asking for this...
If Yanfly has a script that does it, then could you link me to it - it'd probably be a lot easier to write a patch to make the grid inventory compatible with that then to write an entirely new script.
Okay sure, I'll try and find it!
Sorry for the double post and the delay...
It was hard trying to get this on here since it's such a big script.
Anyways I put it all in a text file and uploaded it through 4Shared, I hope that's fine. The reason why I did it this way is because the site where I got it originally has a broken link which takes you to the script...
Here's the link:
Yanfly script.txt (http://www.4shared.com/document/BYbXTxZ2/Yanfly_script.html)
Edit:
I also added it as a attachment!
Bump...
Here, try this:
#==============================================================================
# Grid Inventory & YERD Custom Skill Effects: Throw
# Compatibility Patch
# Version: 1.0
# Author: modern algebra (rmrk.net)
# Date: June 20, 2010
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Instructions:
#
# Paste this patch below YERD CSE in the Script Editor, but still above Main
#==============================================================================
#==============================================================================
# ** Window_Throw
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Summary of Changes:
# aliased method - include?
#==============================================================================
class Window_Throw
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# * Include?
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
alias modrb_csegi_ptch_incl_7uj2 include?
def include? (item, *args)
# If inventory set, exclude items not in inventory
if !@ma_inventory.nil?
@ma_item_list, @ma_item_amounts = @ma_inventory.item_list if @ma_item_list == nil
return false unless @ma_item_list.include? (item)
end
# Run Original Method
return modrb_csegi_ptch_incl_7uj2 (item, *args)
end
end
#==============================================================================
# ** Scene_Battle
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Summary of Changes:
# aliased method - create_throw_windows
#==============================================================================
class Scene_Battle
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# * Create Throw Window
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
alias malg_githrw_crtthrwin_6yy2 create_throw_windows
def create_throw_windows (*args)
# Run Original Method
malg_githrw_crtthrwin_6yy2 (*args)
@throw_window.ma_inventory = @active_battler.inventory
@throw_window.refresh
end
end
No guarantees since I didn't want to learn how to configure the YERD script just to test it out, but I think it should work.
Wow M.A. Once again you are a GOD of scripting LOL
It works just fine but there are one or two minor problems with the script still.
If the player throws an item that doesn't heal or deal damage, you will never be able to use the throwing skill again, even if you go into a different battle.
And the other is that when the player uses the Throw skill during battle the message box just says that the player is using the Item being thrown and plays the animation of the thrown item instead of it saying that the player is throwing the item (Not using it...) and play the Throw skill battle animation.
For example:
The players uses the Throw skill with Ralph and selects to throw a mushroom...
Battle Message:
- Ralph uses Mushroom.
*Play mushroom eating animation over Slime enemy*
-Slime took 60 Damage!
What I'd like it to do is play the animation that is assigned to the Throwing skill (Instead of the battle animation assigned to the item...) and give a message that the player threw the item, not that he/she used it.
OK, are those problems inherent to the Custom Skill Effects, or do they only occur when using Grid Inventory?
I believe they are inherent in the Yanfly CBS script yes.
Bump...
He can't do much if the problem is with Yan's CBS.
Well the problem with the Text and battle animation are the only ones that appear with Yanfly's CBS script.
The other one that the skill messes up when throwing an Item that doesn't deal or heal damage only happens when combining both scripts...