I understand you but, it's just that I was wrong forum, so I resent my post here and I wanted to delete my other post but I did not find how:eswt:. (I renamed it "How to delete my post")
On mobile, cant get into detail.
First thing, youre confused with window class and scene. Your code seems like youre writing a scene class but youre inheriting it from, window base?
Second thing, is it a full script?
Its causing an error because you're trying to use the SceneManager call, but is supplying it with a Window instead (since your class inherits from Window_Base as Theo said). You're getting the 0 for 4 error since the window class expects 4 arguments to initialize but SceneManger.call doesnt pass any.
So are you trying to make a Window or a Scene?
Thank you for your help, no it's not a complete script and I'm just trying to make a window with some text but I can not do it
And (because I'm starting) what exactly is the difference between the scene and the window ?
What's odd is that I was inspired by this script :
class Scene_Chifoumi < Scene_Base
# Lancement de la Scene
def start
super
create_title
create_commands
end
# création fenêtre de titre
def create_title
@title = Window_Help.new(1)
@title.set_text("CHI FOU MI!")
end
def create_commands
@window_selection = Window_Chifoumi.new(0,48)
end
end
# Fenêtre séléction du coup
class Window_Chifoumi < Window_Command
end
To make this script (I modified) :
class Scene_Test < Window_Base
# Lancement de la Scene
def start
super
create_title
create_commands
end
# création fenêtre de titre
def create_title
@title = Window_Help.new(1)
@title.set_text("Génial, un kebab GEANT !!! Que voulez-vous faire ?")
end
#Création de la fenêtre du choix
def create_commands
@window_selection = Window_Test.new(0,48)
end
end
#Fenêtre de Séléction du choix
class Window_Test < Window_Command
#Création de la liste de séléction
def make_command_list
add_command("Le manger")
add_command("Le jeter")
add_command("LE TUER !!!")
end
end
But the first works but not the second. Please analyze them