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.

Needs Offhand? Multi-slot script confusion

To make a weapon require an offhand instead of any weapon

This is the description for NEEDS_OFFHAND in Guillaume777's Multi-slot script...


Anyone able to explain to me what this means? From what I can tell it does not make it so a weapon is only usable in offhand which is what I would have thought.

Thank you in advance!

[Edit]

Additionally, I'm lost on this part of the implementation of the script...

** Window_Status
#----------------------------------------------------------------------------
# This window displays full status specs on the status screen.
#============================================================================
class Window_Status < Window_Base
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
# Begin Multi-slot equipment script Edit
self.contents.font.name = G7_MS_MOD::FONT_NAME
# End Multi-slot equipment script Edit
self.contents.clear
draw_actor_graphic(@actor, 40, 112)
draw_actor_name(@actor, 4, 0)
draw_actor_class(@actor, 4 + 144, 0)
draw_actor_level(@actor, 96, 32)
draw_actor_state(@actor, 96, 64)
draw_actor_hp(@actor, 96, 112, 172)
draw_actor_sp(@actor, 96, 144, 172)
draw_actor_parameter(@actor, 96, 192, 0)
draw_actor_parameter(@actor, 96, 224, 1)
draw_actor_parameter(@actor, 96, 256, 2)
draw_actor_parameter(@actor, 96, 304, 3)
draw_actor_parameter(@actor, 96, 336, 4)
draw_actor_parameter(@actor, 96, 368, 5)
draw_actor_parameter(@actor, 96, 400, 6)
# Begin Multi-slot equipment script Edit
if G7_MS_MOD::EVADE
# Activate if you have a draw_actor_paramter method that draws evade
draw_actor_parameter(@actor, 96, 432, 7)

I want it to show Evade, but I do not understand how to activate this line. When I tried adding it to the bottom of the list above that comment, it gave me a type error on line 302 in Window_Base

Any thoughts or conclusions?

Thanks again!
 
Think about this... you assign weapons that need or permit smaller off-hand weapons. These 'need-offhand' weapons are along the lines of 'Short Swords', 'Katanas', 'Main Gauche', or other single-handed weapons that aren't so heavy that the user is off balance.

The off-handed weapons are even smaller... daggers or other weapons that are not flagged as 'need-offhand', or 'two-handed' (or requires more hands).

This way, you can have a swordsman who equips a long rapier (needs offhand) and carries a thin stiletto (off-hand).

EDIT:
Oh, and I forgot.
That snippet of code works correctly if the EVADE value in the config section is set to 'True'. BUT... it was added only for those scripters who designed their systems to add one MORE parameter into their game. Evade... is not a parameter you can edit or show in the default system, so you gotta create the parameter yourself. IE, leave the switch off and you got no problems.
 

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