Im getting at error that one of my classes can't be coerced in a fixnum.
Let me show you what im trying to do.
This is the error of course:
Can someone please tell me what im doing wrong? I'm way bigger steps into scripting then ever and the problems are getting more complicated, thanks!
Let me show you what im trying to do.
Code:
class Check_Stuff
def initialize
check_stage
end
def check_stage
if $game_party.item_number(1) >= 1
@pik_numb = 1
elsif$game_party.item_number(2) >= 1
@pik_numb = 2
end
@p = @pik_numb
pik_using
end
def pik_using
return @p
end
end
class Mining_Stuff
def initialize
end
def mining_stage_one_a
print "You swing your pick against the vein."
p = Check_Stuff.new()
@r = rand(100)
if @r <= (15 + p)
print "yay"
else
print "You swing your pick again"
if @r <= 35
print "yay"
else
print "You swing your pick again"
if @r <= 45
print "yay"
else
print "You swing your pick again"
if @r <= 55
print "yay"
else
print "nay"
end
end
end
end
end
end
Code:
p = Check_Stuff.new()
@r = rand(100)
if @r <= (15 + p)