DestroyDX

Guy trying his best
Veteran
Joined
Aug 18, 2020
Messages
87
Reaction score
33
First Language
English
Primarily Uses
RMMV
Here there game makers! I was trying make a geomancer skill like in final fantasy and I managed to use lunatic mode to make one skill use other skills when a variable.
Like when variable is 7 use the skill sandstorm and when the region is 9 use the skill snowstorm.

The problem I'm having is making the variable the same as the region ID.

What I'm looking for is for the variable to always be the same as the region Id.

Like when the party is on a regain Id of 252 the variable must be 252 or if the region is 56 the variable must be 56.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
4,977
Reaction score
4,592
First Language
English
Primarily Uses
RMMZ
You can do this with a script call:

$gameVariables.setValue(variableid, $gamePlayer.regionId())

or simply put $gamePlayer.regionId() in the "script" operand of the change variables event command.
 

DestroyDX

Guy trying his best
Veteran
Joined
Aug 18, 2020
Messages
87
Reaction score
33
First Language
English
Primarily Uses
RMMV
You can do this with a script call:

$gameVariables.setValue(variableid, $gamePlayer.regionId())

or simply put $gamePlayer.regionId() in the "script" operand of the change variables event command.
Should I put it in a parallel event or in as part of the skills code?
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
4,977
Reaction score
4,592
First Language
English
Primarily Uses
RMMZ
Should I put it in a parallel event or in as part of the skills code?
You have a few choices of where to put it. If you're doing the Geomancy effect in a notetag on the skill, then put this line above wherever you need to use the variable value.
 

DestroyDX

Guy trying his best
Veteran
Joined
Aug 18, 2020
Messages
87
Reaction score
33
First Language
English
Primarily Uses
RMMV
You have a few choices of where to put it. If you're doing the Geomancy effect in a notetag on the skill, then put this line above wherever you need to use the variable value.
Thank you very much I'll give this a try.
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
4,535
Reaction score
2,898
First Language
English
Primarily Uses
RMMV
You can also do this via event commands. On tab 3 is Get Location Info, which allows you to store the Region ID into a variable.

You'd run a Turn 0 troop event with that command, and then just stick that into each troop you have (there are plugins to automate that part for you, so you don't actually have to copy and paste it into every troop if you don't want to).

What Trihan said works perfectly, I'm just putting out the built-in method so you know about it :smile:
 

Latest Threads

Latest Posts

Latest Profile Posts

My hand hurts from holding the pen for so many hours none stop...:kaocry:
Froggo32 wrote on Soulrender's profile.
I have to ask, who's on your pfp? The character really reminds me of Edgeworth from Ace Attorney lol. I'm really curious.

I'm trying to port L10nMV.js into XP, may probably (because this is my toy project in hobby) coming to XP, VX, VXA.

Learn more about L10nMV.js : https://github.com/Creta5164/L10nMV.js
L10nMV.js forum post : https://forums.rpgmakerweb.com/inde...r-game-without-modifying-your-project.120813/
Here's a gif of the reflection. Ace has some pretty cool sprite effects.
cYtUgp8.gif

Forum statistics

Threads
123,172
Messages
1,154,579
Members
161,533
Latest member
Chaos_Prince87
Top