The RPG Maker Resource Kit

RMRK RPG Maker Creation => Requests => Script Request => Topic started by: ikovirus on June 16, 2008, 02:09:37 PM

Title: [RESOLVED] Displaying Variables as text in a menu
Post by: ikovirus on June 16, 2008, 02:09:37 PM
ok im trying to edit a couple scripts to work together..
im using legacys CMS as well as Blizzards DDNS...

Now this is what im trying to do,

I have it so that every time the DDNS switches to day (auto or manual) it adds to a variable (using #3) to basically be a "day counter" now thats all working and fine...
I also have edited the legacy CMS so that instead of steps taken (which i find kinda usless anyway xD) i want it to be "days played" i have most of it done... its just getting the variable to display as a text, ive tried many methods (im new to this script....)

so basicaly where it sais "omfg" in my menu i want it to display the variable that tells how many "days" have been played in my game
Title: Re: Displaying Variables as text in a menu
Post by: Falcon on June 16, 2008, 09:52:33 PM
http://rmrk.net/index.php/topic,16921.0.html
Strike 1.
Title: Re: [REQUEST] Displaying Variables as text in a menu
Post by: modern algebra on June 16, 2008, 10:16:47 PM
Code: [Select]
self.contents.draw_text (x, y, width, height, $game_variables[variable_id].to_s)

Nice work on the menu.
Title: Re: [REQUEST] Displaying Variables as text in a menu
Post by: ikovirus on June 17, 2008, 12:49:35 AM
hahaha, thanks very much it works...i had something like that originally that i tried but apparently i was doing something wrong, cause yours worked fine lol...

thanks for the comment on the menu to xD, im trying to overhaul it a bit but as i said credits go to legacy for the bones of it.. just trying to personalize it and learn coding while doing it. (done a few code edits, yet to make my own code tho... i am working on a "Stances" code)

anyways sorry for messing up falcon, guess im just a tard
and thanks algebra II for the code xD