msh.js: multiplayer command line

Did you create a mod, map, music, or a tool? Present them here and earn feedback!
Note: addon requests do not belong here.
Note, everything uploaded to this forum, MUST have a license!
Post Reply
wanjia1
Trained
Trained
Posts: 42
Joined: 01 Nov 2023, 06:05

msh.js: multiplayer command line

Post by wanjia1 »

multiplayer command line,
It can add droid, structure and power without causing desync
msh1.zip
license:CC0
(3.29 KiB) Downloaded 66 times
(input command below in chat box, only effective when is not spectator)

preset program:

give power, uplink center and remove most limits:

Code: Select all

/u1
-->

Code: Select all

/* power 100000
/* limit 10000
/* limit t 10000
/* sadd satuk
/* slimit powergen 1000
/* slimit resfact 1000
/* slimit fact 1000
/* slimit cybfact 1000
/* slimit vfact 1000
/* slimit repair 1000
give everyone 80 MG hovers:

Code: Select all

/u2
-->

Code: Select all

/* 20 add macgun vp hv
/* 20 add hmg b hv
/* 20 add asugun leo hv
/* 20 add tasgun rel hv
spawn fortness:

Code: Select all

/u3
-->

Code: Select all

/* 20 sadd shaker
/* 20 sadd archan
/* 10 sadd missfort


commands:

Code: Select all

add tank (spawn at start position):
/add <weapon> <body> <prop>
/add <weapon> <weapon> <body> <prop>
add cyborg:
/add *<weapon>

add structure:
/sadd <structure>

set droid limit:
/limit count
set truck limit:
/limit t count

set structure limit:
/slimit <structure> count

add power:
/power count
set power modifier
/powermod count

Code: Select all

prefix '50': repeat 50 time
'/10 10 ...' is equal to '/100 ...'
prefix '*': for everyone

<name>: the name of component or structure. select shortest ordered fuzzy match (ignore case)
for example,
query 'ABC' matchs '.A..B..C', 'A....BC' and 'AB.C', don't match 'A.C..B' or 'A..B.', and will select 'AB.C'
query 'hvycan' in Stats.Weapon will select 'Heavy Cannon'
query '*' matchs all


examples:

Code: Select all

give laser cyborg:
/add *laser
give everyone 10 Heavy Cannon Python Half Track:
/* 10 add hvycan py htk
give everyone 50 Plasmite Bomb Bug Wheel:
/50 * add pab b w
give everyone 100 Plasmite Bomb Hydra Dragon Hover:
/100 add pab pab dg hv

give everyone Satellite Uplink Center:
/* sadd satuk

give everyone 100 Archangel Missile Battery:
/* 100 sadd archan
give everyone 10 Missile Fortress:
/* 10 sadd missfort
Attachments
after /u1 /u2 /u3
after /u1 /u2 /u3
Post Reply