public

Rpg Maker Developers Group

Simple enough for a child, powerful enough for a developer

2 Followers

[VX Ace] Making a dynamic variable become static?

BMM Archive · July 15, 2026

Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.

Original Source

  • Original title: [VX Ace] Making a dynamic variable become static?
  • Original author: enbywitchrikka
  • Original date: July 23, 2015
  • Source thread: https://forums.rpgmakerweb.com/threads/vx-ace-making-a-dynamic-variable-become-static.42716/
  • Source forum path: Game Development Engines > Ruby Game System (RGSS) Scripts > RGSSx Script Support

Summary

[sOLVED]​ I'm working on a banking system that uses steps to calculate interest rates. I'm trying to set up a series of variables that will then be plugged into my interest formula. Here is the current script: s = $game_variables[85]s2 = $game_variables[86]s3 = $game_variables[87]s = $game_party.stepss2 = ss3 = s - s2What I'm wanting to do is take `s` when it is called (by talking to the banker) and assigning that specific value to `s2` .

Archived First Post

[sOLVED]

I'm working on a banking system that uses steps to calculate interest rates. I'm trying to set up a series of variables that will then be plugged into my interest formula.

Here is the current script:

s = $game_variables[85]s2 = $game_variables[86]s3 = $game_variables[87]s = $game_party.stepss2 = ss3 = s - s2What I'm wanting to do is take `s` when it is called (by talking to the banker) and assigning that specific value to `s2` .

Example:

Player walks 10 steps.s = 10s2 = 0s3 = 10 - 0 = 0Player walks 10 more stepss = 20s2 = 10s3 = 20 - 10 = 10I've been thinking about this for hours and cannot figure out how to do it. Any help is greatly appreciated!

*Edit*

All the above script does is returns 0 for `s3` because `s2` is still the dynamic ($game_party.steps) value.

*Edit2*

Thanks to Naveed_Ashfaq and his Banking Tutorial I managed to get my bank working right.

Downloads / Referenced Files

Log in to download

Log in, then follow the RPG Maker Developers Group to see these download links.

Log in to download
Creator Claims / Removal

If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.

#039#rpg-maker-archive#rgss-support

Replies (0)

No replies yet.

0 replies 1 view

Log in to reply.

User Avatar