So your question is, how can you remember all the party members at a particular time and then restore them after the battle.
Well Ruby has a lot of sugar in it (beware diabetics)
As Tsukihime mentioned, you can index an Array backwards.
array = [1, 2, 3]array[-1] # => 3# same as using Enumerable#lastarray.last #=> 3It is encouraged to use array.last instead of array[-1] for reading clarity.Array's may also be...
>_< FINE HAZ IT YOUR WAY *storms off, leaving a bit of code behind*
module Vocab class << self def const_missing(sym) if respond_to?(sym) send(sym) else super(sym) end end def MyConst "Hello World" end endendp Vocab::MyConst
module Vocab MyConst...
Just overwrite everything (its what I do, and I'm more productive that way)
Sometimes you gotta break stuff to make it better, like a few bones and few noses when things won't go your way.
Its even better ifs its just your project as well (you can get away by breaking as much compatability...
Could be done by adding a third option for patch-ing (aka chaining)
Right, just make it the second arg.
patch :method_name, :chain do |result_from_original_method| do_stuffendUpdate:I feel I've hijacked this thread... :x
Nice idea, I like,
However a few problems:
1. Don't use global variables to store context sensitive functions.
2. there is a chance (1 out 9998) that you will alias an already aliased functions (resulting in that rather scary SystemStackError) if you end up calling it
3. You can shorten this...
Herp Derp, I know its lazy, but it gets the job done right?
## IEK/lib/simple_item_window.rb# dc 16/11/2013# dm 16/11/2013# by IceDragon# As requested by Quigon, a simple Item Menu.# jump to the '### EDITING STARTS HERE' to change the window's position, and# sizeclass Scene_Item <...
<-- Meet Seith. He begins the story as an apprentice druid, learning to survive in the wilderness by communing with nature and honing his herbalism. Seith has a deep desire to understand the world around him. When wells of chaotic energy begin erupting from the land,corrupting plant, animal and man alike, Seith finds himself on a journey to discover just what this means for the fate of his home, the land of Myarr.