Thanks Galenmereth~
I talked to my scripter but he had to leave. Since I'm using only numbers he said it'd be fine to use an array instead of a hash. Now my question is, would I be able to make a variable into a 2-D array? I'd need it to be such so that I can assign a specific event within a specific map its own health~
$game_variables[57][@map_id][this.id] = 500
(this being the event within the map)
Yes, but you have to define it as an array first:
$game_variables[57] = []
$game_variables[57][@map_id] = [] (you have to do this for every first-level element you want)
So would you say a safe way of doing this would be to initialize the first array at game start
$game_variables[57] = []
then for each map that requires it, initialize that specific array once
$game_variables[57][@map_id] = []
edit: awesome. Thanks guys~
If you have 200 maps, I'd do it like this, in the game's startup event (in a script call):
$game_variables[57] = []1..200 {|map| $game_variables[map] = []}Actually I'm not sure if that's the right syntax for the second line and I don't have Ace in front of me to check it out, so if it gives you an error, just use a 1..200 do |map| ... end loop instead.
Or...
200.times {|i| $game_variables[57][i+1] = [] }Edit:
I like Kaelans approach best 😛
ah... so that's how you use it... that's really handy! Thanks for posting that! 🙂
I was wondering what would be the best way to determine the weapon type of the currently equipped weapon.
I wanted to set a variable equal to the weapon type and have a script make a decision based on that.
actor.equips[0].wtype_id if actor.equips[0]
should do it for you. You'll need to substitute actor in both places with whatever you're using - $game_actors[id], $game_party.members[index], $game_party.leader, ...
could also do...
actor.weapons.compact.firstto get the weapons data ** Not the weapon type.
For the type, you could do
actor.weapons.compact.first.wtype_id rescue nil 😉
Hi peoples I'm back with a question, is it possible to make a command in window alignment to be centered? I mean like in MS word.. For example command menu in title screen(New Game, Continue, Shutdown) Can we make it centered? Like this :
New Game
Continue
Shutdown
Is that possible ? Oh yeah one question again, I'm just curious, is that also possible to change a font into a WordArt?
Thanks all. Peace.. Sorry if any of my question is silly or wrong or deserves somewhere..
If you want this to ONLY apply to the title screen, add this into a new script slot:
class Window_TitleCommand < Window_Command def alignment return 1 endendIf you want it to apply to ALL command windows, add this into a new script slot instead:
class Window_Command < Window_Selectable def alignment return 1 endendI really don't know about your second question. WordArt? I suspect not. But that's not an RPG Maker question. You could ask it in the Program and Utility Discussion forum if you want.
Again shaz thank you for fast and great answer,
Oh well sorry about that WordArt I think that's not what I really want, I just want to make my text big by changing the font, font size and give it outline, after that I want the color of text is transparent(not the outline) so it kinda like a WordArt, but I don't know how to make that. So I think WordArt might save my problem.
Thanks again shaz and also for Dekita for helping me the last time, I forgot to thank..