I use a script to add items to the champions at the beginning (picked somewhere in the forum).
Works great in the editor, but in the game, no (no spawned items at all and no crash)!
The mystery of scripting things
Can someone help please?
I've called this script: party_item_start, and it is activated by a hidden plate (triggered by party, activate once, silent)
The party start the game on this plate.
In parallel this plate is activating a timer for a insta death square script
party_item_start:
SpoilerShow
Code: Select all
function startingItems()
local StartTunic = spawn("peasant_tunic")
party:getChampion(1):insertItem(2,StartTunic)
local StartBreeche = spawn("peasant_breeches")
party:getChampion(1):insertItem(3,StartBreeche)
local Startsandals = spawn("sandals")
party:getChampion(1):insertItem(4,Startsandals)
local Startshuriken = spawn("shuriken")
party:getChampion(1):insertItem(7,Startshuriken)
local Startglove = spawn("leather_gloves")
party:getChampion(1):insertItem(9,Startglove)
--
--
local Startcap2 = spawn("leather_cap")
party:getChampion(2):insertItem(1,Startcap2)
local StartTunic2 = spawn("peasant_tunic")
party:getChampion(2):insertItem(2,StartTunic2)
local StartBreeche2 = spawn("peasant_breeches")
party:getChampion(2):insertItem(3,StartBreeche2)
local Startsandals2 = spawn("sandals")
party:getChampion(2):insertItem(4,Startsandals2)
local Startmachete2 = spawn("machete")
party:getChampion(2):insertItem(8,Startmachete2)
local Startshield2 = spawn("legionary_shield")
party:getChampion(2):insertItem(7,Startshield2)
--
--
local StartTunic3 = spawn("peasant_tunic")
party:getChampion(3):insertItem(2,StartTunic3)
local StartBreeche3 = spawn("silk_hose")
party:getChampion(3):insertItem(3,StartBreeche3)
local Startboots3 = spawn("nomad_boots")
party:getChampion(3):insertItem(4,Startboots3)
local Startpoison3 = spawn("poison_bomb")
party:getChampion(3):insertItem(8,Startpoison3)
local Startdagger3 = spawn("dagger")
party:getChampion(3):insertItem(7,Startdagger3)
--
--
local StartTunic4 = spawn("doublet")
party:getChampion(4):insertItem(2,StartTunic4)
local StartBreeche4 = spawn("peasant_breeches")
party:getChampion(4):insertItem(3,StartBreeche4)
local Startsandals4 = spawn("sandals")
party:getChampion(4):insertItem(4,Startsandals4)
local Startwater4 = spawn("water_flask")
party:getChampion(4):insertItem(7,Startwater4)
local Startbread4 = spawn("dm_bread")
party:getChampion(4):insertItem(8,Startbread4)
end