10-13-2024, 10:47 PM
(This post was last modified: 10-13-2024, 10:52 PM by DerVVulfman.)
The 'update_equip_set' method is indeed called within 'setup', 'level_change' and 'equip'. That I grant you.
But the content within the 'update_equip_set' method that executes the 'apply_set_efect' is thus:
The triggers for valid armor and weapon sets must both be true for any given equipment set.
The code looks a bit whacked, but it iterates each set. If a set has a weapon, it will only flag the weapons_set value true if equipped, or false if not. But if the set has no weapon, it is set to true so it would pass. And the same goes for armor.
And if no set is equipped, this method is not reached,
EDIT: You added a fix WHILE I was typing
THAT would do it. Yep. That he set up values to be added to other conditions in the script, but not even initialized or set (and thus nil and error causing) unless another script in place was a big oof.
But the content within the 'update_equip_set' method that executes the 'apply_set_efect' is thus:
Code:
...
apply_set_efect(set[0]) if armors_set and weapons_set
...
The code looks a bit whacked, but it iterates each set. If a set has a weapon, it will only flag the weapons_set value true if equipped, or false if not. But if the set has no weapon, it is set to true so it would pass. And the same goes for armor.
And if no set is equipped, this method is not reached,
EDIT: You added a fix WHILE I was typing
THAT would do it. Yep. That he set up values to be added to other conditions in the script, but not even initialized or set (and thus nil and error causing) unless another script in place was a big oof.