ProjectEQ / projecteqquests

Quest scripts for ProjectEQ
http://projecteq.net
44 stars 78 forks source link

local variables in functions #1361

Closed xackery closed 1 year ago

xackery commented 1 year ago

local miner628 = 0; is defined inside event_spawn

https://github.com/ProjectEQ/projecteqquests/blob/396f0f615e8a318d2009fac004a87e07ce33121a/akanon/clockwork_scrubber.lua#L5

then referred to in another function: https://github.com/ProjectEQ/projecteqquests/blob/396f0f615e8a318d2009fac004a87e07ce33121a/akanon/clockwork_scrubber.lua#L20

will this cause the value to always be 0?

Or is scope not properly honored in quest API?