Code: Select all
function abort_syntax_error_in_cond(npc, section, field)
printf("object '%s': section '%s': field '%s': syntax error in switch condition",npc:name(), section, field)
end
Arszi wrote:Clear Sky NBC suit can be fully upgraded by the Clear Sky mechanic, without giving him any tools.
Code: Select all
local tmr = {0,0,0,0,0}
local function on_game_start_actor_on_update_loop()
local tg = time_global()
if tg >= tmr[1] then
tmr[1] = tg + 2000
printf("on_game_start_actor_on_update_loop: %s", tg)
end
end
local function on_game_start_AddUniqueCall_loop()
local tg = time_global()
if tg >= tmr[2] then
tmr[2] = tg + 2000
printf("on_game_start_AddUniqueCall_loop: %s", tg)
end
return false
end
local function on_game_start_CreateTimeEvent_loop()
ResetTimeEvent("works_fine","on_game_start_CreateTimeEvent_loop",2)
printf("on_game_start_CreateTimeEvent_loop: %s", time_global())
return false
end
local function key_press_actor_on_update_loop()
local tg = time_global()
if tg >= tmr[3] then
tmr[3] = tg + 2000
printf("key_press_actor_on_update_loop: %s", tg)
end
end
local function key_press_AddUniqueCall_loop()
local tg = time_global()
if tg >= tmr[4] then
tmr[4] = tg + 2000
printf("key_press_AddUniqueCall_loop: %s", tg)
end
return false
end
local function key_press_CreateTimeEvent_loop()
ResetTimeEvent("broken","key_press_CreateTimeEvent_loop",2)
printf("key_press_CreateTimeEvent_loop: %s", time_global())
return false
end
local function key_press(key)
if (key == DIK_keys["DIK_NUMPAD1"] and tmr[5] == 0) then
tmr[5] = 1
RegisterScriptCallback("actor_on_update",key_press_actor_on_update_loop)
AddUniqueCall(key_press_AddUniqueCall_loop)
CreateTimeEvent("broken","key_press_CreateTimeEvent_loop",2,key_press_CreateTimeEvent_loop)
end
end
function on_game_start()
RegisterScriptCallback("actor_on_update",on_game_start_actor_on_update_loop)
AddUniqueCall(on_game_start_AddUniqueCall_loop)
CreateTimeEvent("works_fine","on_game_start_CreateTimeEvent_loop",2,on_game_start_CreateTimeEvent_loop)
RegisterScriptCallback("on_key_press", key_press)
end
J00B wrote:Pretty old bug, surprised it's still present. NPCs will take 1 extra item from you for simple fetch quests, provided you have it. If you have 4 they'll only take 4, anymore they help themselves to another.
Gestalt wrote:you can't repair headgear without a technician
Gestalt wrote:you can't repair headgear without a technician
Balathruin wrote:I can repair them with outfit toolkit, even if it makes absolutely no sense.
Return to “General Discussion”
Users browsing this forum: No registered users and 1 guest