Magic casting mobs.
Posted: Tue Nov 27, 2012 10:40 am
Ok, I'm thinking out loud here.
First, a question to the core programmers: Would it be too system-intensive to call a LUA for each mobs in combat at every battle tick ?
Here is my idea. Let's add this to LUA (and corresponding binding in cpp:
That way we could have a list of possible spells for the mob or mob family and then do some sort of basic AI. With the function to check the hate list, positionning of the players and such, we could do some basic magic casting AI.
First, a question to the core programmers: Would it be too system-intensive to call a LUA for each mobs in combat at every battle tick ?
Here is my idea. Let's add this to LUA (and corresponding binding in cpp:
Code: Select all
-----------------------------------
-- onMobBattleTick
-----------------------------------
function onMobBattleTick(mob, hateList)
end;