Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
  • 0
Sign in to follow this  
Mostcub

Can I make unarmed characters hit?

Question

Like the topic says, if I have a character unarmed (no weapon) what can I change to make them hit?

I have run in to some trouble because I have a scene where I remove all the party members, but when they come back, the level would reset, so I used a variable for the level, but if I give them starting weapons, they dupe.

 

If there isn't a way to make unarmed hits, can somebody help me with a weapon variable? For example, if N1 had an iron sword equipped, after he leaves and re-enters the party, he still has that equipped.

 

Thanks guys =)

Share this post


Link to post
Share on other sites

7 answers to this question

Recommended Posts

  • 0

yup, with scripting. not exactly sure how though.

but i know it's in "Game_Battler 3"

Edited by Bob423

Share this post


Link to post
Share on other sites
  • 0

Okay, try adding this script:

 

#===============================================================================
#  Barehands
#  Version: 1.3
#  Dec. 8th, 2009
#-------------------------------------------------------------------------------
#  This script allows you to add to Attack, Phys Defense, and Mag Defense
#  based on the users Strength, Dexterity, and Intellect, respectively.
#
#  Instructions:
#    Just change the modifiers in the module to set them.  1 equals the base
#    stat.
#
#===============================================================================

module Modifier
 Strength = 0.4
 Dexterity = 0.3
 Intellect = 0.3
end


#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  * Game_Actor
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
class Game_Actor < Game_Battler

 alias leon_wyzstat_gameactor_baseatk base_atk
 alias leon_wyzstat_gameactor_basepdef base_pdef
 alias leon_wyzstat_gameactor_basemdef base_mdef

 def base_atk
   n = leon_wyzstat_gameactor_baseatk
   n += $data_actors[@actor_id].parameters[2, @level] * Modifier::Strength 
   n = n.round
   return n
 end

 def base_pdef
   n = leon_wyzstat_gameactor_basepdef
   n += $data_actors[@actor_id].parameters[3, @level] * Modifier::Dexterity
   n = n.round
   return n
 end

 def base_mdef
   n = leon_wyzstat_gameactor_basemdef
   n += $data_actors[@actor_id].parameters[5, @level] * Modifier::Intellect 
   n = n.round
   return n
 end
end

Share this post


Link to post
Share on other sites
  • 0

I looked at the Battler 3 script but I cant read scripting that well so I don't want to change anything =\

 

yeah i feel the same way sometimes

Share this post


Link to post
Share on other sites
  • 0

Thanks Leon =)Works amazing.

 

In case of any issues or questions, this thread will remain open for 2 more days. Otherwise, case solved!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...