First of all, hi everyone. Long time no see.
Second, the game I'm currently working on is going to have the ability for a single weapon to use multiple types of ammo. (eg: normal, explosive, armor piercing)
Is there any way to accomplish this? The only option I can find is to make multiple attacks, each one consuming a different type of ammo. Weapons, however, only seem to be able to have one attack.
Making a weapon that can use multiple types of ammo?
Moderators: marionline, SDHawk
- Taco Bot
- Meat, Cheese, and Silicon
- Posts: 484
- Joined: Fri Jul 18, 2014 12:15 am
- Location: Santa Cruz
- Contact:
Making a weapon that can use multiple types of ammo?
Sent from my iPhone
Either way you'll need 3 attacks. Foxley mentioned one option, equip the ammo in a special equip slot, and here are two more. Firstly, you could have three separate attack options, "Shoot (explosive)", etc. Secondly you could have a single 'shoot', but give the player some menu options to switch to a different ammo type. Each of those would set/unset the appropriate tags, and the main attack would use 'else' chains to select the right variant, as Foxley said.
In either of my two suggestions you would need multiple options in the battle menu, not something you can do automatically when equiping a weapon. There's a big need for the ability to add tag conditions to battle menu options, so you could wait until James or I add that. Unfortunately there aren't any script commands to manipulate the battle menus yet. The other option is to put the attacks in a submenu (spelllist), since you can manipulate those with the "teach spell" or "write spell" commands.
In either of my two suggestions you would need multiple options in the battle menu, not something you can do automatically when equiping a weapon. There's a big need for the ability to add tag conditions to battle menu options, so you could wait until James or I add that. Unfortunately there aren't any script commands to manipulate the battle menus yet. The other option is to put the attacks in a submenu (spelllist), since you can manipulate those with the "teach spell" or "write spell" commands.
- Taco Bot
- Meat, Cheese, and Silicon
- Posts: 484
- Joined: Fri Jul 18, 2014 12:15 am
- Location: Santa Cruz
- Contact:
Thanks to both of you for the ideas. I went with TMC's last suggestion: to put the attacks in a spell menu. That seemed like the simplest and least hacky way to solve it.
Now I've got another question: Is there any (easy) way to duplicate an entire tileset? I made the mistake of using the same tileset for two different zones, and I'm running out of room... :/
Now I've got another question: Is there any (easy) way to duplicate an entire tileset? I made the mistake of using the same tileset for two different zones, and I'm running out of room... :/
Sent from my iPhone
The tile cutter works by moving the position of the mouse cursor, and there's currently a rounding error in gfx_directx (caused by the graphics scaling) which can place the cursor one pixel off from where's intended. You might have encountered that.
I just made some UI improvements to the cutter that should help you avoid alignment problems. You can use the cutter to copy a whole tileset by starting at the top-left and holding down Enter.
I just made some UI improvements to the cutter that should help you avoid alignment problems. You can use the cutter to copy a whole tileset by starting at the top-left and holding down Enter.
Last edited by TMC on Mon Jun 08, 2015 6:14 pm, edited 2 times in total.