CrasheR

PastaLaVista
Veteran
Joined
May 11, 2012
Messages
59
Reaction score
255
First Language
Polish
Primarily Uses
RMMV
Hello, im making a puzzle game where I want to show player how many steps he has done on the map. I need to show variable on map that will update in real time every time player makes a move = every time variable goes up.

1. Show variable on screen,
2. Update it when player moves,
3. Turn it off when leave a map.

If there isnt anything like that already done for MV or if it is too difficult to do, then I will just use pictures. Thanks!
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,013
Reaction score
1,523
First Language
Dutch
Primarily Uses
RMMV
it can be done with parallel event to update the variable steps.
variable -> game data -> steps.

to show it on the map, it require a plugin.
there are a couple of easy plugins that shows a window with a variable in it.
if you want plain numbers only, you can event it, or use SRD_HUDMaker,
and show variable, and condition with a switch or when its on map(ID),

the scriptcall for that is something to look up, but there are smaller plugins
to make it easier, but I dont know out of my head which ones they are.
 

CrasheR

PastaLaVista
Veteran
Joined
May 11, 2012
Messages
59
Reaction score
255
First Language
Polish
Primarily Uses
RMMV
My variables are already set up. I wrote an common event that adds +1 to variable "steps" every time player moves. Works fawlessly. I just need to show that number on screen.

I saw SRD_HUDMaker, but its needs core plugins to run. I dont want to put some unessesary plugins to my game.

I can use pictures to show that window: variable = 1, show picture with numer 1 etc but it will consume a lot of time.
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,013
Reaction score
1,523
First Language
Dutch
Primarily Uses
RMMV
I dont know how your event look like or simple:
Variable x = number of steps,

but if you need x steps, or endless steps, than there is 2 plugins that
might be helpfull.

Galv Variable Bar (this either fill up or drain, or one of mog hunters plugin,
that shows a image + variable inside it.

I cannot recall that plugin though. but there was some other small plugins,
that shows a window + text or image or anything else, but I dont know it's
name of those one, or if it will work.

EDIT:
if you have JS knowledge, I made some basic functions (really basic),
it dont draw the text/variable yet, but I can look tomorrow further into it,
if you have knowledge, you can finish it.

it's basic, and text not yet working. but it's quickly made, so it isn't finished yet.
 

Attachments

  • ShadowDragon_VW.js
    1.8 KB · Views: 3
Last edited:

CrasheR

PastaLaVista
Veteran
Joined
May 11, 2012
Messages
59
Reaction score
255
First Language
Polish
Primarily Uses
RMMV
Event looks like this:

Variable x = number of steps,
Pressing arrow key + moving (hiting wall etc doesnt count as a move) = Variable x + 1.
if finished in 0 - 10 steps = variable x = 0 - 10 = you get 3 stars,
If finished in 15 - 20 steps = 2 stars,
If finished in 20 or more steps = 1 stars.

I dont really need any fancy stuff. Just show a number that is contained in that variable X on a screen + update that number, when variable gets updated.

Its just to inform player how many steps he already done in this attempt.
if you have JS knowledge
Well, I dont. If I had I wouldnt create that topic. :b

Edit: I found this plugin.
Looks like it does the job.
 
Last edited:

xabileug

Veteran
Veteran
Joined
Jul 1, 2014
Messages
178
Reaction score
38
use triacontance Dtextpicture, displays text as picture with window and cursor if you like. i prefer tomoaky simple window, can display upto 8 windows as HUD
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,013
Reaction score
1,523
First Language
Dutch
Primarily Uses
RMMV
I made a very easy plugin that count the steps,
the only problem for now, is that the switch to show the window or hide it does not
work at this point, variable will count the steps (if you told you so),
variable x = steps, and it does the work, going against the wall dont count,
but I will fix the switch for you, so you can test it out.

Variable and Icon can be placed (like 2 footsteps icon), but rest should be
evented in the way you like, I look into the switch a bit later on, I might miss something,
but it's really basic.
 

Attachments

  • ShadowDragon_VW.js
    2.4 KB · Views: 2

Latest Threads

Latest Posts

Latest Profile Posts

Ami
trying to change my picture & got screwed up...
I've been busy working on my next music pack, and I've also been busy composing some personal compositions. Depending on the type of mood and setting, sometimes I just really love the sound of music created in lofi mono. It has its charm.
Haven't used this website in so long, hope everyone here have a good day! Lately I've been crafting a dnd world, so I haven't got the time to use RPG maker sadly enough.
New MZ Update! Subfolders for Assets, Search in Plugin Help, Map Layer Buttons | RPG Maker News #78

A little WIP I decided to drop for something coming in 10-12 hours!
9.PNG

Forum statistics

Threads
112,482
Messages
1,068,578
Members
146,149
Latest member
GlacierStangs
Top