Hello, I was wondering if there is a xp script out there (I tried the search function with no results) for equipping permanent items. I'm making a game where I want to give the players options of getting character implants. Also, I would like a cap on how many permanent items one can have. I hope I explained myself well enough.
I will do something in return, if it is in my power. I'm getting ok at making map tiles and icons and I think I'm an ok mapper.
I don't really know what I'm doing, but I would begin here:
#--------------------------------------------------------------------------
# * Determine Fixed Equipment
# equip_type : type of equipment
#--------------------------------------------------------------------------
def equip_fix?(equip_type)
case equip_type
when 0 # Weapon
return $data_actors[@actor_id].weapon_fix
when 1 # Shield
return $data_actors[@actor_id].armor1_fix
when 2 # Head
return $data_actors[@actor_id].armor2_fix
when 3 # Body
return $data_actors[@actor_id].armor3_fix
when 4 # Accessory
return $data_actors[@actor_id].armor4_fix
end
return false
end
in game actor and here
# If C button was pressed
if Input.trigger?(Input::C)
# If equipment is fixed
if @actor.equip_fix?(@right_window.index)
# Play buzzer SE
$game_system.se_play($data_system.buzzer_se)
return
end
in Scene Equip. If you can figure out how to toggle "fixed" on and off for equipment of specific actors during play, such as through events like an NPC Ripperdoc (fictional doctor specialized in illegal cybernetic implants), you may be able to simulate the effects of equipment locked in place.
I'm not 100% sure what I'm looking at. Would you mind explaining a little?