Informations
Jump to content

Lorem Ipsum...

Click to Dismiss this Notification
Ładowanie danych...

Recommended Posts

spacer.png

 

 

In this guide, we will enable the Penetrate effect within your game's battle system by modifying the necessary code. This enhancement can introduce a new gameplay dynamic, providing players with more strategic options during combat.

Step-by-Step Instructions

1. Access the char_battle.cpp File

Begin by opening the char_battle.cpp source file. Locate the following line in the code:

 
This is the hidden content, please

2. Modify Damage Calculation

Directly beneath the line where you found IsPenetrate, which is typically used in the combat logic, find this damage calculation:

 
This is the hidden content, please

Now, insert the following line immediately after it:

 
This is the hidden content, please

After making these changes, your code snippet should look like this:

 
This is the hidden content, please

3. Find the Penetrate Logic Again

You may come across another instance of the IsPenetrate line in the same file. Repeat the steps by adding the effect packet immediately below the previous damage calculation line, just like before.

4. Implement Penetration Percentage Logic

Locate this block of code, which should manage penetration percentage:

 
This is the hidden content, please

Make sure to insert the same EffectPacket(SE_PENETRATE); line as needed to ensure the penetration effect is properly triggered.

Conclusion

By following these instructions, you've successfully integrated the Penetrate effect into your battle system. This addition will enhance player strategy and provide a deeper gameplay experience.

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
Reply to this topic...

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

Important Information

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.

spacer.png

Disable AdBlock
The popup will be closed in 5 seconds...