Manipulating Individual Mob Stats

Post Reply
R3P0
Posts: 10
Joined: Fri Jan 04, 2013 10:46 am

Manipulating Individual Mob Stats

Post by R3P0 » Mon Aug 25, 2014 9:23 am

Just wondering if anyone here has the instructions or a good guide on hoe to manipulate individual mob stats such as str dex int atk def eva etc. The mob_groups.sql file only gives the base leveling options for level and hp, I am looking to go a little deeper on some mobs. These instructions would be much appreciated.

User avatar
demolish
Developer
Posts: 262
Joined: Thu Jul 26, 2012 7:12 am

Re: Manipulating Individual Mob Stats

Post by demolish » Mon Aug 25, 2014 1:31 pm

scripts/zones/ZONE_NAME/mobs/MOB_NAME.lua

Code: Select all

function onMobSpawn(mob)
    if(mob:getID() == id_goes_here) then
        do shit;
    elseif(mob:getID() == id_goes_here) then
        do shit;
end;
where id_goes_here is the mob's id and 'do shit' does shit e.g. mob:setHP(9001)
<Giblet[NewBrain]> kj with this first step would be fine on my shit
Click here for a guide on scripting missions.

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Manipulating Individual Mob Stats

Post by kjLotus » Mon Aug 25, 2014 3:18 pm

you can also add any modifier in mob_spawn_mods.sql for specific IDs

Post Reply