Thank you for your reply ^.^ Ill start off first by saying im a moderate scripter- I have a project much like diablo 2 Ive been working on for 3 years now- and have been using multi-dimensional arrays to store all of the data the game needs- Inventory, monsters on the map etc. I'm now trying to make a similar game using RMX-OS. I have a LAN where Im testing out the server with 2 players (Justin1, Justin2) and would like to be able to send and receive custom data to the server so both clients see the same thing. Im using the "Global Switches Variables" script Blizzard wrote but what I'd like to be able to do to start is make a single custom array for each player based on their username plus one global array, and have the clients able to access that information on call. Of course simply defining $GlobalArray = [] wont work because its only client side
I have Custom controls and Mouse Controller and wrote a custom "locate event" script to search for events under the cursor (targetting a player or event) and would like to be able to get the "map_users" list, scan the array for the player whose closest to the tile the cursor is over, and pull data from that users respective array, and be able to write to it. I dont know if this is the best way to do P2P communication, but I know its important to at least be able to have an array for each player plus one global array for the entire server where I can store all the information thats been hashed out by the clients. The thing is I'm not familiar with the code, and don't exactly know whats pointing where. I was able to get my own username by calling $network.username, but when i call $
network.map_users it returns a strange hash value and not an array, and I dont know how to convert this list into an indexed list so I can pull more information (game_player.x & y- etc) and write back to it.