Maybe i missing something, but i don't know to check in a method if it already exist.
What exactly i want?
I want in an method to check if this same method already exist.
Something like this
i want that because i want to add an new stat in more than one script, and i want to check if the method that set the stat exist, if not it set the value to zero, that way these scripts can be fully compatible, but without needing to be used togther.
What exactly i want?
I want in an method to check if this same method already exist.
Something like this
Code:
alias test_alias test
def test
if "method test exist"
value = test_alias
else
value = 0
end
#the rest of the method
end
i want that because i want to add an new stat in more than one script, and i want to check if the method that set the stat exist, if not it set the value to zero, that way these scripts can be fully compatible, but without needing to be used togther.