Skip to content

Actions

Gustaf Järgren edited this page May 21, 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 has the buff the time is set to that if it's lower

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

duration is in seconds

Give Item

Gives an item to the player

{
	"type": "give_item",
	"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

Drop Bombs

Drops bombs on the player position. Picks random ones from the supplied list if more then one

{
	"type": "drop_bombs",
	"amount": 1,
	"damage": 60,
	"types": [20, 26]
}

id

ID Name
1 Bomb
2 StickyBomb
3 HappyBomb
4 BombSkeletronPrime
5 SmokeBomb
6 BouncyBomb
7 BombFish
8 SantaBombs
9 DD2GoblinBomb
10 ScarabBomb
11 WetBomb
12 LavaBomb
13 HoneyBomb
14 DryBomb
15 DirtBomb
16 DirtStickyBomb
17 Dynamite
18 StickyDynamite
19 BouncyDynamite,
20 Grenade
21 GrenadeI
22 GrenadeII
23 GrenadeIII
24 GrenadeIV
25 StickyGrenade
26 BouncyGrenade
27 PartyGirlGrenade,
28 ClusterGrenadeI
29 ClusterGrenadeII
30 WetGrenade
31 LavaGrenade
32 HoneyGrenade
33 MiniNukeGrenadeI
34 MiniNukeGrenadeII
35 DryGrenade
36 DynamiteKitten

Clone this wiki locally