Chaos Project

RPG Maker => RPG Maker Scripts => Script Requests => Topic started by: Wizered67 on April 28, 2010, 09:04:33 pm

Title: Request: RMX-OS Global Switches and variables edit
Post by: Wizered67 on April 28, 2010, 09:04:33 pm
Hi, I'm Wizered67 and this is my first request.

Right now, the global switches and variables script for rmxos is really good and works great. There is just one feature its missing that I really want. Being able to have a global variable equal a string. Now, this might not seem very useful, but it could allow event systems that store another players username as a global variable.

Ex. (for the record, this isnt what I want it for)
You've made a player owned house system where players can one of 3 houses in the game. You can also visit other players houses. Using a global variable as a string equal to the player that owns that house's username, you could put a sign outside saying
"Player \v[]'s house" where the \v[] is the global variable equal to their username. The scripts I am using are
Spoiler: ShowHide
Default Scripts
Gameover script by Jackolas
Tons of Addons
RMX-OS Options
RMX-OS script
Global switches and variables for RMX-OS
ATES
ATES RMX-OS Pluggin
Mouse Controller
RMX-OS Main


thanks in advnce
Title: Re: Request: RMX-OS Global Switches and variables edit
Post by: G_G on April 28, 2010, 09:58:21 pm
To set a variable to a string use this in a script call.
$game_variables[variable id here] = "string name"


I'll look into setting it to an actual player name later. I'm not too familiar with rmx-os so you might need help from someone else.
Title: Re: Request: RMX-OS Global Switches and variables edit
Post by: Wizered67 on April 28, 2010, 09:59:43 pm
I have tried. Its always equal to 0 even when I do that though. (it works when it isnt a global variable though)

edit: also, I already know (i think) how to set it to a players name. It just doesnt work.
Title: Re: Request: RMX-OS Global Switches and variables edit
Post by: Blizzard on April 29, 2010, 03:46:35 am
The script doesn't allow transmitting of strings, it only transmits variables. Using strings in a variable is hacking after all and RMX-OS supports RMXP, not hacks.
Title: Re: Request: RMX-OS Global Switches and variables edit
Post by: Wizered67 on April 29, 2010, 10:35:45 am
so, is there some sort of way I could script this?
Title: Re: Request: RMX-OS Global Switches and variables edit
Post by: Blizzard on April 29, 2010, 03:01:01 pm
You'd need to edit both the client plugin and the server extension.