Jump to content

MOD : Expanded Ai Conditions


Singe Horizontal

Recommended Posts


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   34
  • Joined:  03/26/20
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.01
  • Content Count:  69
  • Reputation:   79
  • Joined:  02/20/20
  • Last Seen:  

This is amazing and worth to be known.

Thank you very much for the release !

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   34
  • Joined:  03/26/20
  • Last Seen:  

A nice duel between a champ and a ninja bots( boosted stats + delay)

 

Edited by Singe Horizontal
  • Love 1
Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   34
  • Joined:  03/26/20
  • Last Seen:  

Git patch :

https://gist.github.com/Singe-Horizontal/c6e3bb57f7bfdb16e99d748faec30926

Edited by Singe Horizontal
  • Upvote 1
  • MVP 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  292
  • Reputation:   46
  • Joined:  10/30/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   34
  • Joined:  03/26/20
  • Last Seen:  

I wasn't in my best shape
https://youtu.be/HycjQX2Toe8
https://www.youtube.com/watch?v=T8zclDH9WbQ

Edited by Singe Horizontal
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  292
  • Reputation:   46
  • Joined:  10/30/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   34
  • Joined:  03/26/20
  • Last Seen:  

Thank you
It is indeed possible since there are no scripting involved in its behavior, hence it can be set to be spawned as a regular mob.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  292
  • Reputation:   46
  • Joined:  10/30/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   34
  • Joined:  03/26/20
  • Last Seen:  

Yes of course I'll be glad to

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   0
  • Joined:  01/06/21
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   34
  • Joined:  03/26/20
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  109
  • Reputation:   5
  • Joined:  03/17/16
  • Last Seen:  

ERROR 

12333.png

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   34
  • Joined:  03/26/20
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  109
  • Reputation:   5
  • Joined:  03/17/16
  • Last Seen:  

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