I don't Know Why I dont think before give the Last thread like Filled, but I'm very idiot or stupid, you choose.
Well, K.Seph Make me a little piece of code, and I Wonder in my mind, if it possible to change the Self switch by a Variable.
Let me explain, well, This script make when a X time is pass a Self switch is activated, now, I want when X time pass a Variable Operation occurs/happen. for example adition, substraction, (it's the principal, I dont want things like Multiplication, Percent or something like that, but if you can i dont will angry for that eh. :).
this is the piece of code or script, I think is a script:
Resume: I want transform this script, instead activate a Self Switch, change the variable value (with set, sums and substractions opt: Multiplication, division, and percents). withouth altering the structure of the script eh.
___
I wait, this request can be understanding.
__
Well, K.Seph Make me a little piece of code, and I Wonder in my mind, if it possible to change the Self switch by a Variable.
Let me explain, well, This script make when a X time is pass a Self switch is activated, now, I want when X time pass a Variable Operation occurs/happen. for example adition, substraction, (it's the principal, I dont want things like Multiplication, Percent or something like that, but if you can i dont will angry for that eh. :).
this is the piece of code or script, I think is a script:
Code:
class Game_System
attr_accessor :self_switch_timers
alias_method :seph_selfswitchtimers_gmsys_init, :initialize
def initialize
@self_switch_timers = {}
seph_selfswitchtimers_gmsys_init
end
end
class << Graphics
alias_method :seph_selfswitchtimers_graphics_update, :update
def update
seph_selfswitchtimers_graphics_update
return if $game_system.nil?
$game_system.self_switch_timers.each do |key, timestate|
timestate[0] -= 1
if timestate[0] < 0
$game_self_switches[key] = timestate[1]
$game_map.need_refresh = true
$game_system.self_switch_timers.delete(key)
end
end
end
end
Resume: I want transform this script, instead activate a Self Switch, change the variable value (with set, sums and substractions opt: Multiplication, division, and percents). withouth altering the structure of the script eh.
___
I wait, this request can be understanding.
__