--Probably should've separated all this wall of code into different functions to make it actually readable, but now it's a bit too late and i'm too lazy to change it. Perhaps next time.
--Probably should've separated all this wall of code into different functions to make it actually readable, but now it's a bit too late and i'm too lazy to change it. Perhaps next time.
--A fucking stupid workaround for being able to type a single specific russian letter. This small thing took me over 8 hours to figure out. Fuck encoding differences.
--A fucking stupid workaround for being able to type a single specific russian letter. This small thing took me over 8 hours to figure out. Fuck encoding differences.
if txt:find(string.char(197)) or txt:find(string.char(229)) then
if txt:find(string.char(197)) or txt:find(string.char(229)) then
local npc_r = level.object_by_id(i) -- no clue what the difference is between an alife_object and object_by_id, but for some reason relation checks only accept this one
local npc_r = level.object_by_id(i) -- no clue what the difference is between an alife_object and object_by_id, but for some reason relation checks only accept this one