Jump to content

mob.get_damage function ?


Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

You can't get exact value, because it's random and changes each time mob attacks you. You might get and set npc's damage multiplier by using those functions
npc.get_vid_attack_mul
npc.set_vid_attack_mul
npc.get_vid_damage_mul
npc.set_vid_damage_mul

 

as a first argument for all of these, you have to pass selected npc's VID (obtained either by find_npc_by_vnum for npc like merchants, or just npc.get_vid() while in example attacking a mob), the second one is only for set functions and it might be float or integer. Remember, float's separator is ONLY dot (.), not a comma (,).

 

 

 

//edit: it's possible to create such quest trigger, which will activate quest on NPC attack. In fact, you will have huge problems with lags, because more quests with such trigger you have, the lags are bigger. You will just have to add new quest trigger, activated when npc attacks you.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.