10-17-2007, 01:00 PM
Character Stat Converter...I guess
by Yensoo
Oct 17 2007
Hi. I know this is most likely useless, and I bet theres a way to do this way easier. But I thought I would post it just in case it could help someone. (it helped me! ;) thats why I made it in the first place)
Anyway I'll get to it.
What this script does is takes a character ID that you input and converts all their stats to useable variables. The reason I made this was so I could have a full screen Status window that poped up whenever someone joined your party. So with a mix of this, Dubealex's AMS, and Sandgolem's? four line text fix, I was able to make a message box that took up the whole screen, set a picture of the charcter overtop and have all their stats show up on screen with the \v[#] command.
To use: Simply put this script above main in the script editor, then use a callscript from any event that says:
Stat_Check.new(#) (# being the ID of the character who's stats you want to check)
or you could put another variable in there to give the player the ability to choose which characters stats thety want to see.
The setback to this script in that it uses 14 or 15 variables. This is my first script so don't make fun of me please:)
Thanks! Hope this helps someone!
-Yensoo
by Yensoo
Oct 17 2007
This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss.
No support is given. If you are the owner of the thread, please contact administration.
No support is given. If you are the owner of the thread, please contact administration.
Hi. I know this is most likely useless, and I bet theres a way to do this way easier. But I thought I would post it just in case it could help someone. (it helped me! ;) thats why I made it in the first place)
Anyway I'll get to it.
What this script does is takes a character ID that you input and converts all their stats to useable variables. The reason I made this was so I could have a full screen Status window that poped up whenever someone joined your party. So with a mix of this, Dubealex's AMS, and Sandgolem's? four line text fix, I was able to make a message box that took up the whole screen, set a picture of the charcter overtop and have all their stats show up on screen with the \v[#] command.
Code:
class Stat_Check
attr_accessor :player_number
def initialize(player_number)
$game_variables[55] = $game_actors[player_number].level
$game_variables[56] = $game_actors[player_number].exp
$game_variables[51] = $game_actors[player_number].hp
$game_variables[53] = $game_actors[player_number].maxhp
$game_variables[52] = $game_actors[player_number].sp
$game_variables[54] = $game_actors[player_number].maxsp
$game_variables[61] = $game_actors[player_number].atk
$game_variables[57] = $game_actors[player_number].str
$game_variables[62] = $game_actors[player_number].pdef
$game_variables[63] = $game_actors[player_number].mdef
$game_variables[59] = $game_actors[player_number].agi
$game_variables[58] = $game_actors[player_number].dex
$game_variables[60] = $game_actors[player_number].int
$game_variables[64] = $game_actors[player_number].eva
end
end
To use: Simply put this script above main in the script editor, then use a callscript from any event that says:
Stat_Check.new(#) (# being the ID of the character who's stats you want to check)
or you could put another variable in there to give the player the ability to choose which characters stats thety want to see.
The setback to this script in that it uses 14 or 15 variables. This is my first script so don't make fun of me please:)
Thanks! Hope this helps someone!
-Yensoo