Jump to content
  • 0

How to add new Status Effect? (const.txt)


OscarScorp

Question


  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.02
  • Content Count:  217
  • Reputation:   16
  • Joined:  01/28/15
  • Last Seen:  

Good day,

I'm creating multiple new Status effects and they do work when activated via skill, but some are intended to be Status from Items such as Dex Food (12061,Dex_Dish01,Honey Grape Juice... sc_start SC_DEXFOOD,1200000,1; ...), problem is, my new Status are not being activated. The new items do not work.
I've declared them in Status.h, Status.c (granting bonus Hit for example), including the Status icon image, plus edited stateiconimginfo, stateiconinfo and efstids files.

Encountered an error of starting Stone Curse status effect instead of the one desired (new Status effect), and found out I needed to edit my db/const.txt file. Added the following at the end of the document:

SC_BEASTER	1509

(1509 as the same number applied to SI_BEASTER within Status.h)

This error apperas in Console:

[Error]: status_change_start: invalid status change (1509)!

I'm not exactly sure how I should be adding it to the db/const.txt file, or which number should I add after within the same file.

Any help will be appreciated. Thanks in advance.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.02
  • Content Count:  217
  • Reputation:   16
  • Joined:  01/28/15
  • Last Seen:  

Solved:
Need to add them in script_constants.h

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  33
  • Reputation:   0
  • Joined:  05/07/18
  • Last Seen:  

On 2/13/2018 at 8:00 AM, OscarScorp said:

Solved:
Need to add them in script_constants.h

Hi @OscarScorp
I want to make some items which has hallucination status resistance. I tried to edit script_constants.h and it doesn't work. ?

Quote

script_constants.h
export_constant2("Eff_Hallucination",SC_ILLUSIONDOPING);

 

Quote

item_db.txt
4143,Orc_Hero_Card,Orc Hero Card,6,20,,10,,,,,,,,769,,,,,{ bonus bVit,3; bonus2 bResEff,Eff_Stun,10000; bonus2 bResEff,Eff_Hallucination,10000;},{},{}

 

Link to comment
Share on other sites

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...