Jump to content
Singe Horizontal

MOD : Expanded Ai Conditions

Recommended Posts

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 [email protected]_SAFETYWALL,anytarget,12,10,3000,0,10000,yes,self,expanded,selfcellempty,,,,,,, #use tag "expanded" then the name
1639,Kathryne [email protected]_SAFETYWALL,anytarget,12,10,3000,0,10000,yes,friend,expanded,friendcellempty,,,,,,,
1637,Margaretha [email protected]_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.

The full mod :

https://github.com/Singe-Horizontal/rathena/tree/feature/expanded_ai_full_mod

Condition module standalone :

https://github.com/Singe-Horizontal/rathena/tree/feature/expanded_ai_conditions

AI mode standalone :

https://github.com/Singe-Horizontal/rathena/tree/feature/additional_ai_modes

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 5
  • MVP 3
Link to comment
Share on other sites

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

Link to comment
Share on other sites

6 minutes ago, Singe Horizontal said:

/awsm really love it..

I'm so sure it possible to make your AI available 24/7 in pvp map like a normal monster spawn .. like it will spawn around 3 to 5 minutes after get killed by player.

This just an idea.. /lv

  • Upvote 1
Link to comment
Share on other sites

Good to hear that. I need to add this idea into my ro project also. Hope you can guide me if I need some help soon.

Thank you for this awesome release.

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

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

By using this site, you agree to our Terms of Use and Privacy Policy.