- Joined
- Jan 6, 2013
- Messages
- 1,726
- Reaction score
- 275
- First Language
- English
- Primarily Uses
- RMMV
This might be in the wrong section, i'm not sure.
Let's say one of my scripts has a class/module where default variables amounts are held. (you know, where a user would customize the values in an editable region of the script) Is there any known way or method to have equipments alter a scripted variable (from a class or a module) as long as it is worn?
For example I have $game_timer.start(time) being used, time being a variable valued at 600 (10 seconds) at the start of my game. If I were to equip a special accessory, time would equal 900 instead (15 seconds) until that equip is taken off. (Changing it back to 600)
Then I would also like to do the same but for a custom script that uses a module as described in the first part.
Edit 1: I stumbled upon this thread, gonna try it and see what I can manage. If anyone has other solutions in the meantime, don't hesitate to post.
http://www.rpgmakervxace.net/topic/2531-armor-kind-assigned-to-variable/
Let's say one of my scripts has a class/module where default variables amounts are held. (you know, where a user would customize the values in an editable region of the script) Is there any known way or method to have equipments alter a scripted variable (from a class or a module) as long as it is worn?
For example I have $game_timer.start(time) being used, time being a variable valued at 600 (10 seconds) at the start of my game. If I were to equip a special accessory, time would equal 900 instead (15 seconds) until that equip is taken off. (Changing it back to 600)
Then I would also like to do the same but for a custom script that uses a module as described in the first part.
Edit 1: I stumbled upon this thread, gonna try it and see what I can manage. If anyone has other solutions in the meantime, don't hesitate to post.
http://www.rpgmakervxace.net/topic/2531-armor-kind-assigned-to-variable/
Last edited by a moderator:
