I'm trying to make a grenade throw skill and i need help

I haven't any clue in how to do the granade throw animation
Well, first of all you have to decide if you want to throw them as skills or as items.If we assume you want to do that by skill (as in the thread title), you have to decide if you want it to be just a skill or if it should consume a grenade from the inventory. If you don't want it to consume items then it is pretty easy, it's just the same as any other skill, the problem is when you wanna use an item.

There are few ways you can do that but you can do it with events:

  1. Check the inventory and look for a grenade
  2. if there is a grenade then the skill starts
  3. reduce the grenade ammount by 1
Obviously this way the player could use the skill without any grenade in his inventory and waste a turn. Is up to you how to manage this. In my opinion you could remove the skill when the player has no grenades left in the inventory but then you have to add the skill every time the player obtains new grenades. This can be done updating every shop and chest with grenades to add the skill or just using a common event. Your choice.

I hope this helps.
I guess i should be more specific, sorry, i have a problem with two things

1.the most important things, i dont know how to do the granade animation

2.yes i want to make it use the item in the inventory
Well, if you want it to consume the grenade then you should do as written in my previous post. About the animation there are 2 explosion animations you could use for your grenade skills. Default ids are 107 and 109. Animation 107 is for single target skills, animation 109 is a huge explosion. Pick the one you like the most and use it.
thank you, however i now have another problem, i cant use the weapon sprite, i imported a weapons4.png file to use modern weapons however i cant select it
That's because you have to import your weapon sprite in the weapon3 file. Once you made it you can press F9, go to System and select a SV weapon image. Weapon3 images are under User-defined from 1 to 6. Note that you actually HAVE TO name your file weapon3.

If you need more info you could find more in this thread. There are useful informations about image borders and so on.
So i cant have more than weapons 3?
Well, actually you can have almost everything you want if you add scripts. Anyway you can have up to 24 different weapon animations to use during a battle. I don't think you need more than 24 different kind of weapons. Let's assume you want to do a weapon animtion for each weapon type and a weapon animation for each final weapon for each weapon type. You can do up to 12 different kind of weapons.

The question is: do you really need more than 24 different kind of weapons?

Assuming you are doing a game using modern weapons. You probably want:

  1. Pistol
  2. Greande
  3. Sniper Rifle
  4. Shotgun
  5. Machine Gun
  6. SMG
  7. Knife
  8. Blade (Vibroblde maybe?)
  9. Spell (if you want them)
  10. Unarmed Combat
  11. Blaster (if Sci-Fi)
  12. Laser Rifle (if Sci-Fi)
  13. Laser SMG (if Sci-Fi)
With 13 weapon types you already have few optional ones and you can still create the animation for each final weapon (except grenades and unarmed combat which probably don't have a final version). That said you should also consider that during a fight the animation duration is pretty short. Having a special animation for each final weapon could be a waste of spots and so you could create eleven (11) new weapon types.

Now you should ask yourself: "Do I really ned more than 24 weapon types?"

If yes then you should add a plugin to manage more than 3 weapon animation files. If not (which is probably the answer you get) then you have everything you need.

If you read Andar's tutorial "A starting point for new users" (if you didn't then you should really do it. The link provided is to the tutorial page), this is what he says about scripts:

 15) To script or not to script
Basically you can say that you should use as few scripts as possible but as much scripts as necessary.
Scripts are there to add functions that are missing in the default engine of the RPG Makers. But that exactly is a key that a lot of users do not understand: They ADD – but the RPGMaker does NOT NEED scripts to make a game.
The sentence I underlined is self-explainatory but you always have to keep that in mind for the reason that follows it. Adding something you don't need is not only useless but also dangerous and a waste of time. Adding a script is not as easy as it looks.

You need time to find the script you need and once you have it and add it to your project you have to test it to find bugs and then solve them. It is a lot of time and work. So if you add something the engine already has you need a lot of work for something you could achieve using the engine in the right way.

And with this I am not saying you cannot need more than 24 weapon types, I am just trying to help you to not waste a lot of time for something you don't really need.
Yes, you have a point, i dont need more weapons, what i need is more animations instead, i mean I only use 4 kinds of weapons, rifles, pistols, knifes and granades but im trying to do a game where the player can buy different kinds of rifles, g36, m4, ak47, sniper rifle etc..

Also i have another question, how i can make a weapon that occupies the weapon and shield slots?
Well, weapon animations count as weapon types. You have to add a new weapon type for each animation you need but this is not a real problem expecially if you have only 4 weapon types (which means 6 different animations for each kind of weapon or even more if you have less than 6 for one or more category).

Anyway, if you need a weapon that occupies weapon AND shield slot you should add the seal equip option to the weapon features (the box in the top right of the weapon tab). Double click a free row, go under the Equip tab and select Seal Equip then seal the shield slot.

If you need a weapon that occupies the shield slot you can set it to be a Dual Wield weapon (it is located below the seal equip option in the same tab).
Thank you heirukichi

Original thread: https://forums.rpgmakerweb.com/threads/im-trying-to-make-a-grenade-throw-skill-and-i-need-help.50081/