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.