The humonculus S only attacks when the owner is attacked or is being commanded to attack, but doesn't attack when it gets attacked. How do I fix this?
Homunculus S Not Attacking
#1
Posted 22 October 2014 - 05:19 AM
#2
Posted 22 October 2014 - 05:31 AM
If using my AI on default settings, it should be attacking, provided it's not low on hp...
Edited by DrAzzy, 22 October 2014 - 05:31 AM.
#3
Posted 23 October 2014 - 03:01 PM
It should be the default ai that ro comes with...
Edited by SakuraMazaki, 23 October 2014 - 03:02 PM.
#4
Posted 23 October 2014 - 06:21 PM
Install a custom AI.
#5
Posted 24 October 2014 - 02:46 PM
I remember before homunculus s, I was able to change my filir to act like amistr (stop it from attacking everything in sight I think) by altering the ai only a little bit. Is there an easy way to just add in attacking things that attack it?
#6
Posted 25 October 2014 - 06:04 AM
The default ai is pretty lousy. I don't recommend using it.
#7
Posted 25 October 2014 - 06:40 PM
I don't mind manually using skills, just want it to attack what's on it. There are multiple getmyenemy.
object = GetMyEnemy (MyID)
if (object ~= 0) then -- ATTACKED_IN
MyState = CHASE_ST
MyEnemy = object
TraceAI ("IDLE_ST -> CHASE_ST : ATTACKED_IN")
return
end
Looks set to attack already to me. Must be the wrong one? (Been a long while since I poked around with this =x)
#8
Posted 25 October 2014 - 07:08 PM
function GetMyEnemy (myid)
local result = 0
local type = GetV (V_HOMUNTYPE,myid)
if (type == LIF or type == LIF_H or type == AMISTR or type == AMISTR_H or type == LIF2 or type == LIF_H2 or type == AMISTR2 or type == AMISTR_H2) then
result = GetMyEnemyA (myid)
elseif (type == FILIR or type == FILIR_H or type == VANILMIRTH or type == VANILMIRTH_H or type == FILIR2 or type == FILIR_H2 or type == VANILMIRTH2 or type == VANILMIRTH_H2) then
result = GetMyEnemyB (myid)
end
return result
end
GetMyEnemyB is aggro (Warning: The default AI has no KS protection, GetMyEnemyA is non-aggro. Since neither of conditions for the if statements are fulfilled for a homun S, neither of those are called, so it always returns 0. You'd need to modify this, either expanding the conditions for the if statements, or hardcoding it to always GetMyEnemyA.
Note also that there aren't even constants defined for the homun S type ID's - so you'll need to either use the numbers or define them yourself.
Also - onFollowST() is crap in the default AI as well - it can't keep up with the owner because it doesn't fire the command to follow if the homun is moving, forcing it to pause before it continues following, so it will never be able to keep up, even if it and owner have same movement speed.
#9
Posted 26 October 2014 - 05:55 PM
Well, installed your newest ai. I have it so it doesn't auto attack skill, but can you change the auto use of the buff skills?
Also, thank you for clearing things up a bit!
Edited by SakuraMazaki, 26 October 2014 - 05:56 PM.
#10
Posted 26 October 2014 - 06:42 PM
Options are called UseDefensiveBuff and UseOffensiveBuff for pre-S buffs, and they're named for the skill, for homun S buffs.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users