I'm making a reloading skill that triggers a common event which should - 1, check id of the weapon that's being equipped by the actor who used the skill (in battle); 2, reload the gun according to what kind of gun that's being equipped.
I'm stuck on the first part (the 2nd part is fine, i think).
I used chatgpt for a script and it gave me this:
I only vaguely understand what's happening in this code. I adjusted it a bit and made it into this.
I'm using the following plugins: Vistustella Core, Visustella SkillStates and DM_limitedinventory. I don't think any of them have an effect though.
What should I change?? I don't know what the error is.
I'm stuck on the first part (the 2nd part is fine, i think).
I used chatgpt for a script and it gave me this:
I only vaguely understand what's happening in this code. I adjusted it a bit and made it into this.
Neither of these work. There are three guns in the game (weapons 10-12). For play testing, I added a text right after, returning the id of the weapon, and there is also a conditional branch that checks if the id returned matches that of the guns and it returns "no guns equipped" which it does if other melee weapons are equipped. The conditional branch checks if the 4th variable has a value of 10, 11, or 12 before returning that message.
I'm using the following plugins: Vistustella Core, Visustella SkillStates and DM_limitedinventory. I don't think any of them have an effect though.
What should I change?? I don't know what the error is.