Script that changes a Variable upon Equip

● ARCHIVED · READ-ONLY
Started by epson777341 17 posts View original ↗
  1. Hi there, 

    I was wondering if it was possible to add to a variable when you equip a weapon or armor. It's mostly going to be a multiplier for damage formulas. So, let's say I want a Spear to have a multiplier of 5 for a thrusting attack, but a rapier only has a multiplier of like, 3. Is this possible without a script that calls common events, because I have a lot of weapons, and I really don't want to make a separate event for each of them.

    Any help would be muchly appreciated. 
  2. Can't you just use the damage formula?

    Edit: In the "features section"
  3. As far as I know that will require a script and a different damage skill for each weapon. However, if you only have 8 - 9 categories of weapons it doesn't take too long to do it (and I know this as I did this for my game, took up the skill slots 26 - 39 in the end).
  4. I have like, 27 types of weapons. and not enough skills available to give each one a different formula, but, I was wondering if there was a way (script or otherwise) that would allow equipping or unequipping a weapon to change a variable.
  5. by default - no.


    There is a script that allows you to call a common event when equipping something, and then you can have that common event check what has been equipped and change the variables depending on that (no need for one CE for each weapon if you check the weapons).


    Alternatively, you can request a script that changes variables based on notetags when equipping something - such a script does not exist yet, but it should have enough other uses (not only for damage calculations) so there are probably some scripters willing to do this for you.
  6. Thank you, I shall make a request in the Scripts section, and if all else fails. I'll use the Common Event on Equip script.
  7. Hi there,

    I tried asking this earlier in the support section, but they generously pointed me here. 

    I'm looking for a way to change a variable when equipping a Weapon or piece of equipment. Preferably through the note box, I think that would probably be the easiest way to do it.

    I know there's a script that runs a common event upon equip, but, I think this could have practical uses as well. I confess, I myself, am not a scripter and would be overjoyed if somebody could help me out with this. 

    Thank you.

    EDIT: Whoops, Wrong Forum, Could someone move this to the right spot? RGSS3 Script Requests, I believe.
  8. Moving to RGSS3 Script Requests. Also, we could have just moved your initial thread - no need to post twice :) I'll merge the other.


    Did you check the Master Script List? I'm almost certain something like this already exists, though it might need to be tweaked for your purposes.
  9. Find Tsukihime's Equip Events
  10. Do you want to modify a global variable or something like an additional parameter for each actor (depending on his equipped weapon)?

    When using one of the game variables, it probably wouldn't matter which of your actors has that weapon equipped, even if that actor is not part of the current party - unless you are checking the actor or make the weapon only useable for a specific actor.
  11. When using one of the game variables, it probably wouldn't matter which of your actors has that weapon equipped,
    Not true. Why? Coz I can use Game_Variable Number 1 for actor 1's stat, then Game_Variable Number 2 for actor 2's stat... And those are all Game Variables... XD
  12. I think I wanted to modify a global variable. I know I want to be able to call it up in a damage formulas. I was going to use it for damage multipliers.
  13. Thanks. I guess I was looking for a shorter way of doing it, but, I can do it this way. 

    Thanks for the help, guys.
  14. I can a script that allows you to tag equips without using common events, but then you'd need to know how to write the formula to set a variable.
  15. That is exactly what I'm looking for. Thanks. I'll mark this as solved.