Jeff the Green
Member
There are two things that I've been trying to do, and that ought to be done quite simply, but I can't figure them out. First, I need to disable the "Attack" command when a character has no weapon equipped. I modified the Game_Battler script so that one character would get ATK instead of PDEF from shields (an archer that equips arrows in the weapon slot and bows in the shield slot). Unfortunately, that makes it so that you don't have to equip arrows to attack and do damage. Another solution I thought of is to prevent you from equipping nothing in the weapon slot, but again, I don't know how to do that. Which do you think would be easier, and how would I do it?
The other one is somewhat simpler, but I still can't solve it. I'm working on a primarily event-based steal system (none of the script based ones I found do what I want), but I need to figure out how to set a variable to the ID of the target of the steal skill. I tried inserting $game_variables[1] = self into Game_Battler, but nothing happened (no bugs, either). What do I do?
The other one is somewhat simpler, but I still can't solve it. I'm working on a primarily event-based steal system (none of the script based ones I found do what I want), but I need to figure out how to set a variable to the ID of the target of the steal skill. I tried inserting $game_variables[1] = self into Game_Battler, but nothing happened (no bugs, either). What do I do?