Is it a scrollable window? Are you setting the 'top' index?
Ruby/RGSSx questions that don't deserve their own thread
RGSSx Script SupportIs there a script call to copy $data_actors to $game_actors in mid game???
Because I made it like this:
$data_actors[6].name = $game_variables[1]
$data_actors[6].character_name = $game_variables[2]
$data_actors[6].character_index = $game_variables[3]
$data_actors[6].face_name = $game_variables[4]
$data_actors[6].face_index = $game_variables[5]
$data_actors[6].initial_level = $game_variables[6]
$data_actors[6].equips = $game_variables[7]
$data_actors[6].class_id = $game_variables[8]
but when I add them there was nothing that appears.
Can you suggest of what I can do to add actors?
Because I made it like this:
$data_actors[6].name = $game_variables[1]
$data_actors[6].character_name = $game_variables[2]
$data_actors[6].character_index = $game_variables[3]
$data_actors[6].face_name = $game_variables[4]
$data_actors[6].face_index = $game_variables[5]
$data_actors[6].initial_level = $game_variables[6]
$data_actors[6].equips = $game_variables[7]
$data_actors[6].class_id = $game_variables[8]
but when I add them there was nothing that appears.
Can you suggest of what I can do to add actors?
@adokenz.
Why would you want to do this?
If you change the data stored in data actors, it will overwrite into new games / other load files and all data would become semi-corrupt.
There are alternative ways of 'changing' game data without causing to much devastation to the engine...
Why would you want to do this?
If you change the data stored in data actors, it will overwrite into new games / other load files and all data would become semi-corrupt.
There are alternative ways of 'changing' game data without causing to much devastation to the engine...
can you suggest how can I change $game_actors[6].name,char_name,char_index,face_name,face_index,init_level,equips,class_id?
By using the $game_actors variable... like, instead of $data_actors..
Some variables are not accessible using this, such as character index, for these you would have to write some additional code to allow it to be modified. You should check the default Game_Actor script in the script editor...
Some variables are not accessible using this, such as character index, for these you would have to write some additional code to allow it to be modified. You should check the default Game_Actor script in the script editor...
so what I did: $game_actors[6].createperson
and I made this in the script editor:
class Game_Actor < Game_Battler
def createperson
@name = actor.name
@nickname = actor.nickname
init_graphics
@class_id = actor.class_id
@level = actor.initial_level
@exp = {}
@equips = []
init_exp
init_skills
init_equips(actor.equips)
clear_param_plus
recover_all
end
end
well it did not work out on $game_actors but it worked on what i did on $data_actors. So yeah, thanks by the way 😀
and I made this in the script editor:
class Game_Actor < Game_Battler
def createperson
@name = actor.name
@nickname = actor.nickname
init_graphics
@class_id = actor.class_id
@level = actor.initial_level
@exp = {}
@equips = []
init_exp
init_skills
init_equips(actor.equips)
clear_param_plus
recover_all
end
end
well it did not work out on $game_actors but it worked on what i did on $data_actors. So yeah, thanks by the way 😀
it may not have worked because actor had not yet been defined. It would depend on when you where trying to change everything.
also, if you are simply wanting to initialize the actor, use the script call $game_actors[id].initialize(id) where both id are the actors id.
I've never tried that, but logically it should work.
also, if you are simply wanting to initialize the actor, use the script call $game_actors[id].initialize(id) where both id are the actors id.
I've never tried that, but logically it should work.
Why are you trying to create them via script? Why not just set them up in the database and use the event commands to make any changes based on variables?
Does a viewport take up much processing power ?
Would it be faster to not use a viewport ?
If I make a sprite to display with no viewport, does the sprite class make one anyway ? Like, to the size of the bitmap ?
Would it be faster to create a single viewport - equal to screen size and use that for all my sprite creation needs ?
Any thoughts anyone?
Would it be faster to not use a viewport ?
If I make a sprite to display with no viewport, does the sprite class make one anyway ? Like, to the size of the bitmap ?
Would it be faster to create a single viewport - equal to screen size and use that for all my sprite creation needs ?
Any thoughts anyone?
The key to such question is to conduct performance benchmarks.
So how would you test this?
How can you tell whether there are any significant difference?
Do the tests consider an accurate representation of actual use, or can parts of it be used anyway?
*hugs*
So how would you test this?
How can you tell whether there are any significant difference?
Do the tests consider an accurate representation of actual use, or can parts of it be used anyway?
*hugs*
I done some basic tests.
I created a viewport and threw a load of sprites at it, I then tried the same but without the viewport.
Judging by the FPS difference, it would be faster using a viewport. Judging by this alone though isnt really an accurate representation of the performance difference.
I created a viewport and threw a load of sprites at it, I then tried the same but without the viewport.
Judging by the FPS difference, it would be faster using a viewport. Judging by this alone though isnt really an accurate representation of the performance difference.
Dumb question: All my selections in battle work fine but when I added a script that enhances the look of my battle scenes the heal alley selection won't let me move anymore and all the other selections work fine.
Any ideas on what I could do?
Any ideas on what I could do?
is there a script that auto switches in-battle players with low health and regenerates out-battle players hp???????
You need to start with your heal ally method.
Trace that out and find what it is doing (or not doing) different from all the other methods that work. IIRC, at some point in one of the Battler classes there is a branch: damage dealing effects are handled one way, and healing effects are handled another.
If you can't find the answer there, go through your new script and see what it does that could have an impact on the combat code.
Please ask "Is there a script that lets you ..." type questions in the RGSS3 Script Requests forum (or whatever other forum is appropriate for the engine you're using. Thank you.
Is there a way to tell a window's cursor to not draw? I've been changing the windowskin to one with a transparent cursor to get the same effect, but it feels kinda hacky (and adds a bunch of duplicate skins in my system folder). Is there a more 'proper' way of doing it? I keep feeling like there should be a flag for it somewhere in the Window class, but I can't find it.
Well, you find the draw_cursor method and edit that... though I prefer the windowskin mode...
self.pause = falsewill make the arrow disappearYou will see that it only becomes true in the message window when the player can choose when to continue.
There is no draw_cursor method as far as I can tell, that's part of the problem.
@Tsukihime I'm talking about the cursor (the box around what you're selecting), not the scroll arrows. Those I usually turn off with
@Tsukihime I'm talking about the cursor (the box around what you're selecting), not the scroll arrows. Those I usually turn off with
Code:
self.arrows_visible = false
try editing update_cursor method... do cursor_rect.empty when needed
Original thread: https://forums.rpgmakerweb.com/threads/ruby-rgssx-questions-that-dont-deserve-their-own-thread.150/