Home › Forums › Wayward › Code to Run in "Run Code" › Reply To: Code to Run in "Run Code"
November 20, 2014 at 8:31 pm
#5220
ModernPrimate
Member
Just to get folks started, I picked up a few things you can do with the “Run Code” box from other threads. Just enough to give them the idea…
Spawn Monsters
spawnMonster(“chicken”, player.x, player.y+1);
Heal yourself (doesn’t go past the maximum):
player.health=999
Increase your maximum health:
player.strength=255
Spawning items in inventory, use this format
itemGet(“arrow”);
itemGet({type: “largerock”, quality: “Random”})
itemGet({type: “largerock”, quality: “Legendary”})
Some items you can spawn (I believe these all require quality)
sandstone
largerock
log
branch
string
tannedleather
bone
wroughtiron
talcumpowder
limestonepowder
carbonpowder