1 2-- Character IDs. Each ID can have only a single bit active as IDs are used in bitmask operations. 3CLAUDIUS = 1; 4LAILA = 2; 5KYLE = 4; 6RAFAELA = 8; 7 8function NewGame() 9 GlobalManager:AddCharacter(CLAUDIUS); 10 GlobalManager:SetDrunes(250); 11 GlobalManager:AddToInventory(1, 2); 12 GlobalManager:SetLocation("dat/maps/opening_scene.lua"); 13end 14 15 16-- Helper functions 17 18function LoadNewMap(map_name) 19 ModeManager:Pop(); 20 local new_map = hoa_map.MapMode("dat/maps/" .. map_name .. ".lua"); 21 ModeManager:Push(new_map); 22end 23 24function LoadNewShop(...) 25 local i, v, item; 26 local shop = hoa_shop.ShopMode(); 27 for i,v in ipairs(arg) do 28 if (i % 2 == 1) then 29 item = v 30 else 31 shop:AddObject(item, v) 32 end 33 end 34 ModeManager:Push(shop); 35end 36 37 38-- Dummy functions 39 40enemy_ids = {} 41map_functions = {} 42 43map_functions[0] = function() 44 return true; 45end 46