Jump to content

Recommended Posts

Posted (edited)

Good morning,

For the last months I've been working on a mod that would allow deeper ai conditions.
Here is how the config file looks like :
 

- friendrecoverable: # arbitrary name tag
   - or:
     - friend sleep    
     - friend stone
     - friend stun
     - friend freeze

 - selfcellempty:
   - not self safetywall
   - not self pneuma
   - not self landprotector
   - not self icewall
  
 - friendcellempty:
   - not friend safetywall
   - not friend pneuma
   - not friend landprotector
   - not friend icewall

Then you can add or modify lines in the usual mob_skill_db.yml file :

1639,Kathryne Keyron@MG_SAFETYWALL,anytarget,12,10,3000,0,10000,yes,self,expanded,selfcellempty,,,,,,, #use tag "expanded" then the name
1639,Kathryne Keyron@MG_SAFETYWALL,anytarget,12,10,3000,0,10000,yes,friend,expanded,friendcellempty,,,,,,,
1637,Margaretha Sorin@PR_STRECOVERY,any,72,1,10000,1000,10000,no,friend,expanded,friendrecoverable,,,,,,,

I also added 2 new modes to complement these new behaviors :

   Modes:
      SkillOnly: true
      PcSkillBehavior: true  

SkillOnly will disable basic attacks and PcSkillBehavior will  modify its skills' ranged/melee flag depending on range and not distance, as players' behave.

Link :

https://github.com/Singe-Horizontal/rathena/tree/mod/expanded_ai

Quick design video :

It is my first c++ project mod and contribution with git, I gave all the care I could but unoticed things may have slipped out.

Edited by Singe Horizontal
  • Upvote 3
  • Love 6
  • MVP 4
  • 2 weeks later...
Posted

Amazing!! I just thinking about this around years ago but don't have a time to do. Is it possible to make Human vs Bot in pvp room?

Because I just remembered my friend18years ago make a pvp room player/human vs bot.

Thanks you for this release..

  • 1 month later...
Posted

This is extraordinary. Mob behavior is very interesting already in this game but this pushes it further than I expected would be possible; I don't have an immediate area where I would want to use it, but I'm for sure going to experiment with it at the next chance I have.

Thanks, this is amazing work!

Posted

Hi thanks for the message. My friends and I have a small discord group where we sometimes host "lan" parties, where we mess around with the ai. I created a pre configured installation all in one ( server + client ) to be downloaded, so that the mod can be played locally without having to modify the sources and recompile.

If interested : https://discord.gg/qZt7aaBb2R

Posted

I need to make a clean gist again, I lost track on what prevented compiling with g++.
Moreover the yml update broke a part of the mod, I'll be waiting a week more before updating to the new system.

Sorry for the inconvenience and thanks for the report

  • Upvote 1
Posted
On 4/8/2022 at 7:55 PM, Singe Horizontal said:

I need to make a clean gist again, I lost track on what prevented compiling with g++.
Moreover the yml update broke a part of the mod, I'll be waiting a week more before updating to the new system.

Sorry for the inconvenience and thanks for the report

Thanks brother!!!

  • 2 years later...
  • 1 year later...

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...