On the default save menu for ace, is there a simple script command I can insert that can make the character(s) step animation instead of just stand there in the window?
class Testing def method_one p "this is method one" end def method_two p "this is method two" endendclass Testing # overwrites the entire method one def method_one p "goodbye" end # adds a new line of code to be executed in method two alias sar_method_two method_two def method_two sar_method_two p "this is an added line to method two" end #method 3 def method_three p "this is method 3" endendt = Testing.newt.method_onet.method_twot.method_three
# Remove all `5` elements.a = [1, 3, 5, 9, 11, 5]a.delete(5) # => [1, 3, 9, 11]# Remove only the first `5` element.a = [1, 3, 5, 9, 11, 5](i = a.index(5)) && a.tap { a.delete_at(i) } # => [1, 3, 9, 11, 5]
# Note that we're defining the method in its own module; this is mostly so that# we don't pollute the actual `Array` class and instead extend the module into# the `Array` instances that will need to make use of it.# # Obviously, you could also define this method in the general `Array` class and# have it globally available -- it's just a bit more polite not to do so unless# necessary.module ArrayExtensions # Removes only the first given element from the array, shifting all other # elements. Returns the modified array. def delete_first(element) delete_at(index(element)) if include?(element) self endenda = [1, 3, 5, 9, 11, 5].extend(ArrayExtensions)a.delete_first(5) # => [1, 3, 9, 11, 5]
The hidden classes have been written and rewritten many times over in Ruby -- considering the original code is actually written in C++, the most anyone has done is effectively recreate the hidden classes in pure Ruby, which is really not hard to do if you know the public methods, their return values, and the side effects that they cause.Where did you get the definition for the XP classes? Got a link? Can you PM it to me?
I just searched for "rgss3 window hidden class" on google and the 3rd link lead me to it.Where did you get the definition for the XP classes? Got a link? Can you PM it to me?