Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Regular attacks using strength and magic

I was wondering if anyone knew how to script in a way for some people to attack with strength and other people attack with magic. I can't figure out how to do this unless I change it to just one or the other. Please help me.
 
Simple: Create "Magic" weapons (Fire Wand, Ice Wand). Set the Element Alignment for each weapon so it does more/less damage based on the target's efficiencies. Assign a magic Attacker Animation. (Still executes "Basic Attack", but looks like a spell/skill)

Not simple, but Cool: Allow Magic users to equip a spell instead of a weapon to be used as the default Attack action.
Brainstorming:
Use "Class" or maybe "Position" to determine if @user is a magic user.
Modify Scene_Equip to allow equipping of spells for magic users
Modify Scene_Battle to make the basic action a skill action for magic users with a skill equipped

Assumptions: XP, Default battle system

Seems like this would be well suited to an ABS. (...wonders if any of the ABS systems do this?)
 
I was really wondering if there was a way to script mages using magic or intelligence while just having a weapon equipped and also have fighters use strength to determine their damage amount. Really what I am attempting to do is create a fire emblem type game, though I have not had much success yet. I want it so that if someone has a sword, spear, axe, bow, etc. will use strength to determine damage and someone with books, staffs, or whatever else I come up with will use magic to determine their damage.
But thanks for your help anyway, brewmeister. I do appreciate you trying at least, and hopefully that will help others to know exactly what I want help with. Any help is worth something.
 
Nevermind to all those looking for a way to do this for me. I figured it out. Thanks to all who were trying to help. Hopefully I didn't waste too much of your time.
 
Best way I'd suggest to identify 'Magic' weapons would be to reserve an element tag in the Database/System tab, and name it something like 'Magic Weapon', or make an array for Actor ID's whom use 'Intelligence' ('Magic' for VX) instead of 'Strength' to determine their attack effeciency.

I'd be interested in checking your solution out too :wink:
 
I like the weapon idea. Each magic weapon could hold a specific spell, and the magic user could increase effectiveness by acquiring magic weapons with stronger spells. But, you'd have the limitation of being stuck with that weapon once battle starts. Unless you also implement changing weapons in battle.
 
What I did is Identified the people using magic for weapons by who had more magic than strength. So I put in if int > str then it uses magic to do the damage and then an else that made it use strength instead.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top