Specific error while using item

CptFaclon

Villager
Member
Joined
Mar 24, 2016
Messages
8
Reaction score
0
First Language
english
Primarily Uses
I just created an item to be used in game, not the first one ive done, and now when i use the item  its effects kick in as expected,,,,but when i try to use it a second time which wouldn't do anything anyways, i get this error.....


Capture.PNG


What exactly is going wrong??
 
Last edited by a moderator:

Another Fen

Veteran
Veteran
Joined
Jan 23, 2013
Messages
564
Reaction score
275
First Language
German
Primarily Uses
Hi,


That looks like an oversight in the script. Usually you can't use items when all of your partymembers are immovable. However, if you incapacitate your party by using an item you can still try to use the item again.


You could try this script to fix that if it is a problem for your game:


class Scene_ItemBase


  #--------------------------------------------------------------------------
  # * Determine if Item is Usable
  #--------------------------------------------------------------------------
  def item_usable?
    user && user.usable?(item) && item_effects_valid?
  end



end
 
Last edited by a moderator:

CptFaclon

Villager
Member
Joined
Mar 24, 2016
Messages
8
Reaction score
0
First Language
english
Primarily Uses
Alright cool thanks...now i get a resounding buzzer sound when trying to double use the item which is what i wanted cause your not supposed to be able to use this particular item again until the status ailment has subsided.Thanks for the response saved me some headache....... (And it hasn't been a problem up until i tried using this particular custom item,i couldn't tell ya why this error occurred in the first place.)
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,863
Messages
1,017,053
Members
137,571
Latest member
grr
Top