Skip to content
This repository
tree: 0fddae0bfd
Fetching contributors…

Cannot retrieve contributors at this time

file 31 lines (25 sloc) 0.977 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
function BootBattleTest()
print("BootBattleTest");

GlobalManager:AddCharacter(BRONANN);
GlobalManager:AddCharacter(KALYA);
GlobalManager:AddCharacter(SYLVE);
GlobalManager:AddCharacter(THANIS);
GlobalManager:AddToInventory(1, 5);
GlobalManager:AddToInventory(1003, 1);
 

-- local bronann = GlobalManager:GetCharacter(1);
-- bronann:AddSkill(10001);

local battle = hoa_battle.BattleMode();
battle:AddEnemy(6, 0, 0);
battle:AddEnemy(7, 0, 0);
battle:AddEnemy(8, 0, 0);
battle:AddEnemy(9, 0, 0);
battle:AddEnemy(10, 0, 0);
battle:AddEnemy(11, 0, 0);
battle:AddEnemy(12, 0, 0);
battle:GetScriptSupervisor():AddScript("dat/battles/desert_cave_battle_anim.lua");

-- Set the battle to wait, semi active or active
--battle:SetBattleType(hoa_battle.BattleMode.BATTLE_TYPE_WAIT);
--battle:SetBattleType(hoa_battle.BattleMode.BATTLE_TYPE_SEMI_ACTIVE);
battle:SetBattleType(hoa_battle.BattleMode.BATTLE_TYPE_ACTIVE);

ModeManager:Push(battle, false, false);
end
Something went wrong with that request. Please try again.