Skip to content

Actions

Gustaf Järgren edited this page May 18, 2020 · 19 revisions

Actions

The options for the actions and the defaults can be found below.

All actions that have numbers as a string support the use of calculation from the event data.

Heal Player

Heals the player with the amount specified, 0 = full heal, negative value removes health

{
	"type": "heal_player",
	"amount": "0"
}

Fill Mana

Fills the players mana with the amount specified, 0 = full refill, negative value removes mana

{
	"type": "fill_mana",
	"amount": "0"
}

Drop Held Item

Drops the currently held item

{
	"type": "drop_item"
}

Drop Star

Drops stars from above the player

{
	"type": "drop_star",
	"damage": "100",
	"amount": "10",
	"spread": "100",
	"height": 600.0,
	"width": "10"
}

spread ho much the stars will spread when falling

height how far above the player the stars should spawn

width over how wide of an area the stars should spawn

Start BloodMoon

Starts the BloodMoon and sets the time to night

{
	"type": "start_blood_moon"
}

Start Invasion

Starts an invasion, only one invasion can run at the time. Invasions are queued if multiple are run.

{
	"type": "start_invasion",
	"id": 1
}

id

ID Name
1 Goblin Army
2 Frost Legion
3 Pirate Invasion
4 Martian Madness

Spawn NPC

Spawns an NPC close to the player with the name of the person running the event

{
	"type": "spawn_npc",
	"id": 3
}

id can be found here NPC ids. Default npc is a zombie.

Toggle Buff

Toggles a buff

{
	"type": "toggle_buff",
	"id": 18,
	"duration": 10
}

duration is in seconds

id can be found here Buff ids. Default buff is gravity.

Add Buff

Adds a buff to the player, if the player already have the buff the time is added.

{
	"type": "add_buff",
	"duration": 10
}

duration is in seconds

Give Item

Gives an item to the player

{
	"type": "add_buff",
	"id": 2,
	"amount": "1",
	"drop": true
}

id can be found here Item ids. Default item is dirt.

drop if the item should be dropped or go directly into the inventory

Clone this wiki locally