- 4
- Posts
- 5
- Years
- Seen May 23, 2022
I'm trying to make my title screen in the same style as Red/Blue, and I've hit a few bumps but when I think I've got most of it figured out I get this message:
Edit: I restored the original Scene_Intro script, then tried again with different wording, added @pic3=addImage(0,300,"") to line 10 and @pic3.moveOpacity(0,0,0) to line 11 and it let me get to the intro, until I get hit with an argument error of "Script 'Scene_Intro' line 59/65/71: ArgumentError occurred. wrong number of arguments (8 for 9)." This is the new section starting at line 56 of Scene_Intro:
lines 59, 65, and 71 are all the same, '@pic3.move(40,0,0,0,100,100,255,0)', and '.move' is defined in Game_Picture as:
I'm only counting 8 arguments. What's the ninth one and what would I use to define it? End of edit.
Spoiler:
Script 'EventScene' line 651: NoMethodError occurred.
undefined method 'length' for nil:NilClass
I haven't touched any lines in EventScene, all of my messing around has been in the Scene_Intro scripts. I added, starting at line 54:
@pic3.name="Graphics/Pictures"
@pic3.moveOpacity(15,0,255)
case rand(2)
when 0
$game_screen.pictures[3].show("GrowlithePicture",0,400,300,100,100,"255",0)
$game_screen.pictures[3].move(40,0,100,300,100,100,"255",0)
wait[40]
$game_screen.pictures[3].move(40,0,-250,300,100,100,"255",0)
$game_screen.pictures[3].erase
if Input.press?(Input::C)
pbSEPlay("058Cry",85,0)
end
when 1
$game_screen.pictures[3].show("GrowlithePicture",0,400,300,100,100,"255",0)
$game_screen.pictures[3].move(40,0,100,300,100,100,"255",0)
wait[40]
$game_screen.pictures[3].move(40,0,-250,300,100,100,"255",0)
$game_screen.pictures[3].erase
if Input.press?(Input::C)
pbSEPlay("058Cry",85,0)
end
when 2
$game_screen.pictures[3].show("CharizardPicture",0,400,300,100,100,"255",0)
$game_screen.pictures[3].move(40,0,100,300,100,100,"255",0)
wait[40]
$game_screen.pictures[3].move(40,0,-250,300,100,100,"255",0)
$game_screen.pictures[3].erase
if Input.press?(Input::C)
pbSEPlay("006Cry",85,0)
end
end
I then changed line 2 to be:
ef initialize(pics,pictures,splash,viewport=nil)
And added into line 5 to:
@pictures=pictures
and changed line 151 to:
@eventscene=IntroEventScene.new(@pics,@pictures,@splash)
undefined method 'length' for nil:NilClass
I haven't touched any lines in EventScene, all of my messing around has been in the Scene_Intro scripts. I added, starting at line 54:
@pic3.name="Graphics/Pictures"
@pic3.moveOpacity(15,0,255)
case rand(2)
when 0
$game_screen.pictures[3].show("GrowlithePicture",0,400,300,100,100,"255",0)
$game_screen.pictures[3].move(40,0,100,300,100,100,"255",0)
wait[40]
$game_screen.pictures[3].move(40,0,-250,300,100,100,"255",0)
$game_screen.pictures[3].erase
if Input.press?(Input::C)
pbSEPlay("058Cry",85,0)
end
when 1
$game_screen.pictures[3].show("GrowlithePicture",0,400,300,100,100,"255",0)
$game_screen.pictures[3].move(40,0,100,300,100,100,"255",0)
wait[40]
$game_screen.pictures[3].move(40,0,-250,300,100,100,"255",0)
$game_screen.pictures[3].erase
if Input.press?(Input::C)
pbSEPlay("058Cry",85,0)
end
when 2
$game_screen.pictures[3].show("CharizardPicture",0,400,300,100,100,"255",0)
$game_screen.pictures[3].move(40,0,100,300,100,100,"255",0)
wait[40]
$game_screen.pictures[3].move(40,0,-250,300,100,100,"255",0)
$game_screen.pictures[3].erase
if Input.press?(Input::C)
pbSEPlay("006Cry",85,0)
end
end
I then changed line 2 to be:
ef initialize(pics,pictures,splash,viewport=nil)
And added into line 5 to:
@pictures=pictures
and changed line 151 to:
@eventscene=IntroEventScene.new(@pics,@pictures,@splash)
Edit: I restored the original Scene_Intro script, then tried again with different wording, added @pic3=addImage(0,300,"") to line 10 and @pic3.moveOpacity(0,0,0) to line 11 and it let me get to the intro, until I get hit with an argument error of "Script 'Scene_Intro' line 59/65/71: ArgumentError occurred. wrong number of arguments (8 for 9)." This is the new section starting at line 56 of Scene_Intro:
Spoiler:
case rand(3)
when 0
@pic3.name="Graphics/Titles/009"
@pic3.move(40,0,0,0,100,100,255,0)
@pic3.move(40,0,100,300,100,100,255,0)
@pic3.move(40,0,-250,300,100,100,255,0)
@pic3.erase
when 1
@pic3.name="Graphics/Titles/058"
@pic3.move(40,0,0,0,100,100,255,0)
@pic3.move(40,0,100,300,100,100,255,0)
@pic3.move(40,0,-250,300,100,100,255,0)
@pic3.erase
when 2
@pic3.name="Graphics/Titles/006"
@pic3.move(40,0,0,0,100,100,255,0)
@pic3.move(40,0,100,300,100,100,255,0)
@pic3.move(40,0,-250,300,100,100,255,0)
@pic3.erase
end
when 0
@pic3.name="Graphics/Titles/009"
@pic3.move(40,0,0,0,100,100,255,0)
@pic3.move(40,0,100,300,100,100,255,0)
@pic3.move(40,0,-250,300,100,100,255,0)
@pic3.erase
when 1
@pic3.name="Graphics/Titles/058"
@pic3.move(40,0,0,0,100,100,255,0)
@pic3.move(40,0,100,300,100,100,255,0)
@pic3.move(40,0,-250,300,100,100,255,0)
@pic3.erase
when 2
@pic3.name="Graphics/Titles/006"
@pic3.move(40,0,0,0,100,100,255,0)
@pic3.move(40,0,100,300,100,100,255,0)
@pic3.move(40,0,-250,300,100,100,255,0)
@pic3.erase
end
lines 59, 65, and 71 are all the same, '@pic3.move(40,0,0,0,100,100,255,0)', and '.move' is defined in Game_Picture as:
Spoiler:
def move(duration, origin, x, y, zoom_x, zoom_y, opacity, blend_type)
@duration = duration
@origin = origin
@target_x = x.to_f
@target_y = y.to_f
@target_zoom_x = zoom_x.to_f
@target_zoom_y = zoom_y.to_f
@target_opacity = opacity.to_f
@blend_type = blend_type ? blend_type : 0
@duration = duration
@origin = origin
@target_x = x.to_f
@target_y = y.to_f
@target_zoom_x = zoom_x.to_f
@target_zoom_y = zoom_y.to_f
@target_opacity = opacity.to_f
@blend_type = blend_type ? blend_type : 0
I'm only counting 8 arguments. What's the ninth one and what would I use to define it? End of edit.
Last edited: