I'm not sure if anyone else has posted this but what the heck...
This is a simple script I made that disables the use of a 'Tent' item when save is disabled, like in Final Fantasy games.
All you have to do is copy and paste above main and put the ID of the Tent item next to @TENT.
eg:
@TENT = 13
So far I've only been able to get it so you can only have one item id disabled. I'm trying to work out how to use the [1,2,3] etc list thingy.
This is a simple script I made that disables the use of a 'Tent' item when save is disabled, like in Final Fantasy games.
All you have to do is copy and paste above main and put the ID of the Tent item next to @TENT.
eg:
@TENT = 13
Code:
# FINAL FANTASY STYLED TENT USE
# ----------------------------
# A simple script that makes Tents only useable when save is enabled
# ----------------------------
# How to use:
# Copy and Paste above Main
# Put the ID of item you want to be tent next to @TENT
# ---------------------------
# Now whenever Save is disabled, these items will be too!
#-------------------------
class Game_Party < Game_Unit
def item_can_use?(item)
return false unless item.is_a?(RPG::Item)
return false if item_number(item) == 0
#=======================
@TENT = #ID Number of the Item you want to be a tent!
#========================
if $game_temp.in_battle
return item.battle_ok?
else
return item.menu_ok? unless $game_system.save_disabled == true && item == $data_items[@TENT]
end
end
end
So far I've only been able to get it so you can only have one item id disabled. I'm trying to work out how to use the [1,2,3] etc list thingy.