[RESOLVED] '$data_actors[1].name' & '@spriteset = Spriteset_Map.new' Help

Started by Hadeki, July 26, 2008, 04:58:39 am

Previous topic - Next topic

Hadeki

Hey.
All right, first off, the $data_actors[1].name thing. I'm using RPG Maker XP and my main goal is to display the player's name on the load file screen. But the best I can do is just show the initial name of the hero, rather than the name the player has inputted via Name Input Processing. Is there any possible way to display the name the player has chosen rather than the default name of the hero?
And secondly, I was attempting to display the map as a background for the menu screen (as well as for shops, too, I guess). But the best I can do is dispose of the spriteset when the menu is closed (which flashes a black screen when you close the menu). But if I don't dispose it, the menu closes fine until the player teleports (or when the spriteset is redrawn) then the test play window stops responding and it has to close itself. (I'm using Vista, by the way.)

Blizzard

You can temporarily load the save file's contents.

    file = File.open('SAVE_FILENAME_HERE', 'r')
    characters = Marshal.load(file)
    Marshal.load(file)
    system        = Marshal.load(file)
    switches      = Marshal.load(file)
    variables     = Marshal.load(file)
    self_switches = Marshal.load(file)
    screen        = Marshal.load(file)
    actors        = Marshal.load(file)
    party         = Marshal.load(file)
    troop         = Marshal.load(file)
    map           = Marshal.load(file)
    player        = Marshal.load(file)
    file.close


Just use "party.actors[0].name" to get the name of the party leader.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Hadeki

Oooooooooooooooh... Thank you. Really.
And sorry about making you move this post. I wasn't really sure where to post it...

Blizzard

No problem. Just edit your first post and add [RESOLVED] to the topic title. ^_^
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.