Hey nice scripts thanks for these. I am using SumRndmDde Dynamic Actors and Ihave
weapons that show up when equipped. My problem is when dual wielding I can't get
weps to show in left or right hand depending on where it is equipped but shows in
both left and right hand at same time no matter which hand it is equipped in.
-------------------------------------------------------------------------------
<Custom On Equip Eval>
$game_actors[actor id].weapons.include?($data_weapons[weapon id])
right_hand = $game_actors[actor_id].equips[0]
left_hand = $game_actors[actor_id].equips[1]
if !right_hand.nil? && right_hand.name.eql?(""Dagger"")
<Force Weapon Piece: Weapon (1)>
elseif !left_hand.nil? && left_hand.name.eql?(""Dagger"")
<Force Weapon2 Piece: Weapon (1)>
end
</Custom On Equip Eval>
--------------------------------------------------------------------
How could I get weapon to show only in hand it is equipped in.
I do not want to make main and off hand versions of all weapons.
Thanks for any help.
Added WAY_YEP_ItemDiscard
Addon to Yanfly's Item Discard Plugin.
Item, Weapon and Armor Notetag:
<Custom On Discard Eval>
code
</Custom On Discard Eval>
It lets you run code, when an item gets discarded.
Example:
<Custom On Discard Eval>
var rate = Math.random();
var value = Math.floor(rate * item.price);
$gameParty.gainGold(value);
</Custom On Discard Eval>
This would give you a random amount of gold based on the item prices upon discarding.
If there are any bugs, please let me know!
I updated all dead links.
I think I found a...well...not a bug exactly, but more like an oversight in Custom On Equip Eval, that has to do with the way it's doing order of operations;
If you have a piece of equipment that increases Max HP, and adds +X current hit points when equipped, then removes those extra current hit points when unequipped, so long as the character unequipping it is injured at least X below Maximum HP, it works fine, but if the character is at full HP, they end up at full HP -X after the item is removed, because the change to Max HP is getting processed before the Custom On Removal code. Sorry, I know that's clunky.
Examples;
Character with 10/20 HP equips armor that adds +4 MaxHP. Custom on Equip heals +4 HP, so his new hit points are 14/24.
When he removes the armor, Custom on Remove subtracts back those 4 HP, so his hit points go back to 10/20.
Character with 20/20 HP equips armor that adds +4 MaxHP. Custom on Equip heals +4 HP, so his new hit points are 24/24. This part works fine.
However, when he removes the armor, his maximum hit points are first reduced to 20, which sets his current hit points to 20 (because it was over the maximum), then removes an extra 4 HP, putting him at 16/20.
I have a littel question i am using your WAY_CustomFaceImageEval.js.
but somehow it looks like i am doing something wrong, so i am asking here for help if possible.
<Custom Face Image Eval>
if ($gameVariables.value(5) >= 1000){
faceName = 'Actor01';
faceIndex = 4;
}
if ($gameSwitches.value(22) == true){
faceName = 'Actor01';
faceIndex = 3;
}
if (user.hp <= 0.25) {
faceName = 'Actor01';
faceIndex = 2
} else if (user.hp >= 0.5) {
faceName = 'Actor1';
faceIndex = 1;
}
</Custom Face Image Eval>
somehow i only get faceindex 1 and 2 even if switch is on or variable is over 1000
Hey Wayne, thanks for the plugins!
The "CustomOnEquipEval" was just what I was looking for and it works great, however I'm not sure if I found a little bug or if I set something up in a wrong way... When the plugin is turned on, my characters start without any equipment, even though they should actually start with the stuff I assigned them in the database. If the plugin is turned off, they do start with the euqipment they were assigned. Nothing major, but I just noticed it and thought you should know and maybe help me out there.
Thanks in advance. 🙂
Update: WAY_EvalText v2.0.0
* Rewrote the whole code to clean it up
* Added support for Scene_Shop and WAY_StorageSystem
* Fixed issues with Scene_Equip not working correctly
EDIT:
Update: WAY_EvalText v2.0.1
Set the "a" variable to party leader when on map
Update: WAY_EvalText v2.0.2
Fix actor not set correctly in battle, when YEP_X_InBattleStatus is imported
You can find the updated version on the first page of this thread.