Jump to content
  • 0

setunitdata weird behaviour


DaScript

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  3
  • Reputation:   0
  • Joined:  05/09/19
  • Last Seen:  

Renewal system:
so when i tried to change parameters using setunitdata almost all of it works but not the ATK & MATK (UMOB_MINATK,UMOB_MAXATK,...)

Pre-re system: its working*
other weird behaviour
UMOB_ATKRANGE can only be changed to increase the range
UMOB_DEF same as UMOB_ATKRANGE
UMOB_STR doesn't change monster's attack when enable_baseatk on mob enabled
UMOB_VIT doesn't decrease monster's soft defense when changed to lower

fixed the atk range issue with src modification on script.cpp by setting

 status->rwh.range = 0

or

md->status.rhw.range = (unsigned short)value;

on the switch case,
for decreasing custom umob_def need to make base status def to 0 using -= md->status.def first

for vit and soft defense need to set it (base_status->def2) when switch case called
why is status_calc_misc called before base_status applied to the monster? and even if it called later is it gonna change the soft def when vit is changed?
i guess setunitdata is still need some work

Edited by DaScript
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...