When running a script in RPG Maker XP, I'm getting a NoMethodError with the message 'undefined method =nil:NilClass'. Where could this error be occurring and how can I resolve it?
I was gonna try to add some vore in this game but it seems like it just gives me an error and won't work.
# Define variables
$game_variables[1] = false # isShrunk
$game_variables[2] = false # isDrank
$game_variables[3] = false # isInMouth
$game_variables[4] = false # isInStomach
$game_variables[5] = false # isDigested
$game_variables[6] = false # isPoop
# Shrink the protagonist
def shrink()
$game_variables[1] = true
end
# Place the protagonist in a cup of juice
def place_in_cup()
$game_variables[2] = true
end
# Protagonist is in the mouth
def in_mouth()
$game_variables[3] = true
end
# Protagonist is in the stomach
def in_stomach()
$game_variables[4] = true
end
# Protagonist is being digested
def being_digested()
$game_variables[5] = true
end
# Protagonist comes out as poop
def comes_out_as_poop()
$game_variables[6] = true
end
# Main program
shrink()
place_in_cup()
in_mouth()
# Little girl drinks protagonist
for i in 1..5000
if i == 5000
in_stomach()
being_digested()
# Protagonist comes out as poop after 2 days
for j in 1..(48*60*60)
if j == (48*60*60)
comes_out_as_poop()
end
end
end
end
I was gonna try to add some vore in this game but it seems like it just gives me an error and won't work.
# Define variables
$game_variables[1] = false # isShrunk
$game_variables[2] = false # isDrank
$game_variables[3] = false # isInMouth
$game_variables[4] = false # isInStomach
$game_variables[5] = false # isDigested
$game_variables[6] = false # isPoop
# Shrink the protagonist
def shrink()
$game_variables[1] = true
end
# Place the protagonist in a cup of juice
def place_in_cup()
$game_variables[2] = true
end
# Protagonist is in the mouth
def in_mouth()
$game_variables[3] = true
end
# Protagonist is in the stomach
def in_stomach()
$game_variables[4] = true
end
# Protagonist is being digested
def being_digested()
$game_variables[5] = true
end
# Protagonist comes out as poop
def comes_out_as_poop()
$game_variables[6] = true
end
# Main program
shrink()
place_in_cup()
in_mouth()
# Little girl drinks protagonist
for i in 1..5000
if i == 5000
in_stomach()
being_digested()
# Protagonist comes out as poop after 2 days
for j in 1..(48*60*60)
if j == (48*60*60)
comes_out_as_poop()
end
end
end
end