Author Topic: [RESOURCE] Set Minigame Data Command  (Read 754 times)

function ServerCmdSetMinigameData(%client,%arg0)

This command confused me at first.
everything is sent in one long list separated by TABs

Here's the list of Default Prefs that I picked up:
T String-Minigame Title
IO Bool-Invite Only
UABP Bool-Use All Player's Bricks
PUOB Bool-Player's use Own Bricks
PBB Int-Breaking Brick Points
PPB Int-Planting Brick Points
PKP Int-Killing a player Points
PKB Int-Killing a bot Points
PKS Int-Killing your self Points
PD Int-Dying Points
RT Int-Respawn Time
VRT Int-Vehicle Respawn Time
BRT Int-Brick Respawn Time
BtRT Int-Bot Respawn Time
USB Bool-Use Spawn Bricks
FD Bool-Falling Damage
WD Bool-Weapon Damage
SD Bool-Self Damage
VD Bool-Vehicle Damage
BD Bool-Brick Damage
BtD Bool-Bot Damage
EW Bool-Enable Wand
EB Bool-Enable Building
EP Bool-Enable Painting
DB Int-datablock
SE Int-Slot Int-datablock


How do I use this?

well, If you want to use spawn bricks, you look up the first word in that list, or "USB"
then you can do this:
commandtoserver('SetMinigameData',"USB 1");

if you wish to change more than one thing at a time, use "\t","" TAB ""or "\x09" (TAB's hex value)

commandtoserver('SetMinigameData',"USB 1\tBD 1" TAB "VD 1\x09EP 0");

the "SE" and "DB" at the bottom are defined by datablocks

"SE" is the items you have, and "DB" is the player datablock
You will need the id of the datablock

for SE, use "SE SLOT ID", so if the bow happens to be ID 195, you can "SE 0 195" to set the first item to a bow

I felt the need to post this list, for I had not found it upon searching for it!

I hope it comes in use for any client sided mods!
« Last Edit: June 25, 2013, 12:12:42 AM by MARBLE MAN »