If the party hits a tile with multiple teleporters, they will be transported to each target location in turn, finishing instantly at the final teleporter's destination but triggering any events in the tiles they momentarily occupy.
Is this correct behaviour? Or should the first teleporter removing the party mean that the others are "out of range"?
---
Code: Select all
dsb_text2map(0, 5, 5, 100, 1, {
"10000",
"10110",
"11110",
"00110",
"00000"} )
dsb_level_wallset(0, wallset.default)
dsb_add_champion(1, "test", "port_mophus", "TEST", "", 1000, 1000, 1000, 400, 400, 400, 400, 400, 400, 400, {0,0,0,0,0}, {0,0,0,0,0}, {0,0,0,0,0}, {0,0,0,0,0})
ch_exvar = {
}
dsb_spawnburst_begin(8)
dsb_spawn(7, "trigger", 0, 2, 1, 4)
dsb_spawn(1, "teleporter", 0, 3, 2, 4)
dsb_spawn(2, "trigger", 0, 3, 2, 4)
dsb_spawn(3, "trigger", 0, 3, 2, 4)
dsb_spawn(4, "teleporter", 0, 3, 2, 4)
dsb_spawn(6, "button_blue", 0, 1, 3, 0)
dsb_spawn(8, "trigger", 0, 2, 3, 4)
dsb_spawn(5, "function_caller", 0, 3, 3, 4)
exvar = {
[1] = { y = 1,
x = 2,
opby_thing = true,
opby_party = true },
[2] = { opby_party = true,
const_weight = true,
target = 5,
msg = 100001,
opby_thing = true },
[4] = { y = 3,
x = 2,
opby_thing = true,
opby_party = true },
[5] = { m_d = "ontopittrigger",
m_a = "offpittrigger" },
[6] = { func = "printgap" },
[7] = { func = "marker",
opby_party = true },
[8] = { func = "marker",
opby_party = true },
}
dsb_spawnburst_end()
EDITOR_FLAGS = 255
dsb_champion_toparty(0, 1)
dsb_party_place(0, 0, 0, 0)
Code: Select all
function ontopittrigger()
__log("ONTOPITTRIGGER")
dsb_write(debug_color, "ONTOPITTRIGGER" )
end
function offpittrigger()
__log("OFFPITTRIGGER")
dsb_write(debug_color, "OFFPITTRIGGER" )
end
function printgap()
__log("---")
dsb_write(debug_color, "---" )
end
function marker()
__log("MARK")
dsb_write(debug_color, "MARK" )
end