- Joined
- Feb 1, 2020
- Messages
- 42
- Reaction score
- 5
- First Language
- English
- Primarily Uses
- RMVXA
I don't know if this thread should go in script support or here. But I'm putting it here because I'm trying to modify a script. I don't have any errors, I just want to add to it.
So I have the script More Informative Saves by mjshi (https://forums.rpgmakerweb.com/index.php?threads/more-informative-saves.52246/) and I've customized it to my liking, but there's just one more thing I would like to add that the default script does not do. I'd like to add each actor's level on the save screen, and I'd like it so that it's called similarly to the face sprites or party sprites or equip sprites etc, to where you can easily modify the spacing, the x position, and the y position, and the levels are shown in the order of the party formation.
I have a vague idea how to do this, but I do not fully understand the syntax, I guess.
Let's take the def draw_face_characters as an example.
I would assume that the way I want to add the levels can be done somewhat similarly to that, as in you would write something like "*character level*.each_with_index do |data, i|". Substitute *character level* with whatever method would have to be called.
Then I think you would put a "draw_text" in the place of "draw_face"? But I'm confused as to what to add between the () of draw_text().
This is all I can gather and I don't know what the 'rules' are to do this, as I'm no programmer. So I would appreciate some help. Thank you
So I have the script More Informative Saves by mjshi (https://forums.rpgmakerweb.com/index.php?threads/more-informative-saves.52246/) and I've customized it to my liking, but there's just one more thing I would like to add that the default script does not do. I'd like to add each actor's level on the save screen, and I'd like it so that it's called similarly to the face sprites or party sprites or equip sprites etc, to where you can easily modify the spacing, the x position, and the y position, and the levels are shown in the order of the party formation.
I have a vague idea how to do this, but I do not fully understand the syntax, I guess.
Let's take the def draw_face_characters as an example.
Code:
def draw_face_characters(x, y, spacing)
header = DataManager.load_header(@file_index)
return unless header && header[:faces]
header[:faces].each_with_index do |data, i|
draw_face(data[0], data[1], x + i * (96 + spacing), y)
end
end
I would assume that the way I want to add the levels can be done somewhat similarly to that, as in you would write something like "*character level*.each_with_index do |data, i|". Substitute *character level* with whatever method would have to be called.
Then I think you would put a "draw_text" in the place of "draw_face"? But I'm confused as to what to add between the () of draw_text().
This is all I can gather and I don't know what the 'rules' are to do this, as I'm no programmer. So I would appreciate some help. Thank you