• Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Help and Request Thread

Status
Not open for further replies.
Does anybody know how to make a string variable into a integer?
I've tried this:
Code:
$game_variables[1] = Time.new.strftime("%I")
$game_variables[1].to_i
but it doesn't work(I tried adding 1 to $game_variables[1] like this:
Code:
$game_variables[1]+=1
and I had an error...
Thx in advance! ;)
[PokeCommunity.com] Help and Request Thread
 
Illusion said:
Does anybody know how to make a string variable into a integer?
I've tried this:
Code:
$game_variables[1] = Time.new.strftime("%I")
$game_variables[1].to_i
but it doesn't work(I tried adding 1 to $game_variables[1] like this:
Code:
$game_variables[1]+=1
and I had an error...
Thx in advance! ;)
[PokeCommunity.com] Help and Request Thread
why do you want it to be an integer?
it should be a string
Code:
$game_variables[1] = Time.new.strftime("%I")
$game_variables[1].to_s
i'm not sure about Time.new.strftime
you can also use:
Code:
var = sprintf("%02I")
 
Blizzy said:
why do you want it to be an integer?
it should be a string
Code:
$game_variables[1] = Time.new.strftime("%I")
$game_variables[1].to_s
i'm not sure about Time.new.strftime
you can also use:
Code:
var = sprintf("%02I")
I need it to be an integer, because I am making a berry system, so I need numbers to calculate how much time you have let the berry's growing.
 
Illusion said:
I need it to be an integer, because I am making a berry system, so I need numbers to calculate how much time you have let the berry's growing.
you can try one of these
Code:
var.to_i # integer
var.to_s # string
var.to_f # float
 
I've tried integer, so i'll try float.
Thx Blizzy ;)!
Illusion
 
Can someone please tell me how i might go about drawing the enemy hp bar (in rGss and by drawing i mean makin it appear)....i have the hero bar done i jst need the enemy can someone please help me... thank you
 
can someone tell me how i can make a character move in the game (move by itself)
 
How can I import tilesets into RMXP without using RM2K3? i downloaded RMXP for alot of hours, and I don't think it can import tilesets for Pokemon
:dead:
 
it depends, if you're trying to use RPG Maker 2003 tilesets in XP it won't work, ther was a converter somewhere but it was in japanese.
 
It would be better to use the current RMXP Pokemon Tileset than to convert.

My request: Could someone make a few side facing houses? I hate games with houses facing one direction...
 
a couple of questions...
1. does anyone know how to lower the battler sprite?
2. how can i put the monster HP bar, level, and name?
Heres a screen if it helps.
[PokeCommunity.com] Help and Request Thread
 
tdata said:
It would be better to use the current RMXP Pokemon Tileset than to convert.

My request: Could someone make a few side facing houses? I hate games with houses facing one direction...
If you're making a 2d game, you wouldn't be able to see the doors.
If you're making a 3d game, just rotate the object.
 
Status
Not open for further replies.
Back
Top