Jump to content
  • 0

Making Stone and Freeze like Stun


Humble_Bee

Question


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.03
  • Content Count:  112
  • Reputation:   9
  • Joined:  09/22/19
  • Last Seen:  

Does anyone know where the code is that causes stone and freeze statuses to break upon getting hit? I'm having trouble finding it, and I'd really love to // it out. Thanks!

EDIT: Thank God, I found it. You have no idea how much joy this gives me, as I love having hard controls in games (soft control = status change ends when hit, or could be things like curse / hard control = stops someone from doing pretty much anything and doesn't end when hit).

For everyone who I know will be banging their head against a wall trying to do this as well, the answer is in status.cpp:
 

Spoiler

if( hp && !(flag&1) ) {
        if( sc ) {
            struct status_change_entry *sce;
            if (sc->data[SC_STONE] && sc->opt1 == OPT1_STONE)
                status_change_end(target, SC_STONE, INVALID_TIMER);

Look for the above code and simply // whatever status you want to be a hard control. If you want something to be a soft control, you can likely just add it here, and it will end when a character/creature gets hit.

#hard controls, soft controls, sleep, stun, stone, freeze, crystalize

Edited by Humble_Bee
Self-solved
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...