myspace / Lua /SetpiecePrg /ArcheologicalChickenMove3_Veinard.generated.lua
sirnii's picture
Upload 1816 files
b6a38d7 verified
raw
history blame
1.07 kB
-- ========== GENERATED BY SetpiecePrg Editor (Ctrl-Alt-S) DO NOT EDIT MANUALLY! ==========
rawset(_G, 'SetpiecePrgs', rawget(_G, 'SetpiecePrgs') or {})
SetpiecePrgs.ArcheologicalChickenMove3_Veinard = function(seed, state, TriggerUnits)
local li = { id = "ArcheologicalChickenMove3_Veinard" }
local rand = BraidRandomCreate(seed or AsyncRand())
local _, LuckyVeinard
prgdbg(li, 1, 1) _, LuckyVeinard = sprocall(SetpieceAssignFromGroup.Exec, SetpieceAssignFromGroup, state, rand, LuckyVeinard, "", "Veinard", "Object", false)
prgdbg(li, 1, 2) sprocall(SetpieceSleep.Exec, SetpieceSleep, state, rand, true, "", 1500)
prgdbg(li, 1, 3) sprocall(SetpieceGotoPosition.Exec, SetpieceGotoPosition, state, rand, true, "", LuckyVeinard, "Waypoint2_04", true, true, false, "", false, true, "", 1000)
prgdbg(li, 1, 4) sprocall(PrgPlayEffect.Exec, PrgPlayEffect, state, rand, true, "", {PlaceObj('QuestSetVariableBool', {Prop = "foundpan",QuestId = "TreasureHunting",}),PlaceObj('QuestSetVariableNum', {Amount = 1,Prop = "treasures",QuestId = "TreasureHunting",}),})
end