View Full Version : Lich Script question
Vindicate
05-10-2010, 02:16 PM
How does one reference an array within a method?
example:
def attack (creature)
if huntable.include? ("#{creature}")
<do something here>
end
end
Alorn15
05-10-2010, 02:21 PM
You should read about scope.
http://en.wikiversity.org/wiki/Introduction_to_Programming/Scope
Gnomad
05-10-2010, 04:53 PM
You should read about scope.
http://en.wikiversity.org/wiki/Introduction_to_Programming/Scope
http://www.scope.ca/images/crest-products/large/scope-mouthwash-original-mint.png
idgi
edit: the concept of a wikiversity terrifies me
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.