forked from github/server
8ee6431125
- besseres Error-handling in eventhandlern - bugfix get_variable Scriptänderungen Sphinx ! bedarf noch eines Cleanup
22 lines
432 B
Lua
22 lines
432 B
Lua
|
|
function init_sphinxhints()
|
|
|
|
for faction in factions() do
|
|
|
|
for i=0,14,1 do
|
|
hints[i] = 0
|
|
end
|
|
for i=0,4,1 do
|
|
if faction:get_variable("sphinxhint"..tostring(i)) == nil then
|
|
repeat
|
|
hint = math.random(0,14)
|
|
until hints[hint] = 0
|
|
hints[hint] = 1
|
|
faction:set_variable("sphinxhint"..tostring(i),tostring(hint))
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
init_sphinxhints()
|
|
|