Page 1 of 1

[1.0.4] Reduce Howl tactical value to 1 or 2

Posted: Tue Sep 03, 2013 5:10 am
by jenx
The warg talent Howl has ATTACK = 3 for tactical ai.

This is too high, and results in rares/boss wargs using howl before other much more damaging attacks.

I suggest it be changed to 1 or 2.

Re: [1.0.4] Reduce Howl tactical value to 1 or 2

Posted: Tue Sep 03, 2013 5:26 am
by Doctornull
IMHO a wolf howling before it attacks is quite thematic, even if it is sub-optimal on the part of the wolf.

Re: [1.0.4] Reduce Howl tactical value to 1 or 2

Posted: Tue Sep 03, 2013 5:42 am
by jenx
that's true. perhaps that explains DG's logic on this one !

Re: [1.0.4] Reduce Howl tactical value to 1 or 2

Posted: Wed Sep 04, 2013 4:32 am
by lukep
There's a whole bunch of wonky AI values. If you haven't yet, check out my abandoned addon trying to do much the same for tactical AI (here).

Re: [1.0.4] Reduce Howl tactical value to 1 or 2

Posted: Wed Sep 04, 2013 9:40 am
by jenx
That's very helpful lukep. I'll look into it

Re: [1.0.4] Reduce Howl tactical value to 1 or 2

Posted: Thu Sep 05, 2013 12:41 pm
by jenx
lukep wrote:There's a whole bunch of wonky AI values. If you haven't yet, check out my abandoned addon trying to do much the same for tactical AI (here).
heh lukep - your addon still works for 1.0.4, and is better than the one I've been developing. That's good (except that I wasted lots of time!).

Are you planning to develop it further, and to add the new oozemancer talents etc?

Or are you happy for me to tweak it and release an update?

Re: [1.0.4] Reduce Howl tactical value to 1 or 2

Posted: Fri Sep 06, 2013 1:41 am
by lukep
I don't plan on updating it anymore, so if you want to tweak it/take it over, that would be great. I think that I showed most of my reasoning, but I can (probably) answer any questions you have about it.

EDIT: if you haven't yet, check out this post too.

Re: [1.0.4] Reduce Howl tactical value to 1 or 2

Posted: Sun Sep 08, 2013 2:25 am
by jenx
Thanks lupkep. I"ve already started tweaking your code. Several of the improvements I had made can be integrated into your approach.

One line though puzzles me totally:

Code: Select all

local effectiveness = ((act:canBe(damtype) and 1 or 0) + (act:canBe(damtype) and 1 or 0) + (act:canBe(damtype) and 1 or 0) + (act:canBe(damtype) and 1 or 0) + (act:canBe(damtype) and 1 or 0) + (act:canBe(damtype) and 1 or 0) + (act:canBe(damtype) and 1 or 0) + (act:canBe(damtype) and 1 or 0) + (act:canBe(damtype) and 1 or 0) + (act:canBe(damtype) and 1 or 0))/10
can you explain?

Re: [1.0.4] Reduce Howl tactical value to 1 or 2

Posted: Sun Sep 08, 2013 7:51 am
by lukep
That replaces the old, binary check for status effects. It's a bad kludge, but what it tries to do is get a better value for immunities. In the old system, if the target had 60% immunity (let's say to stuns), 6 turns out of 10, the talent would have a DISABLE rating of 0, and 4 turns out of 10 it would be 1 (or whatever it is).

What that line does is change it to always have a value of (roughly) 0.4 in that situation.

I had planned on replacing it with a real check of the target's immunity, but IIRC there were complications with that.

Re: [1.0.4] Reduce Howl tactical value to 1 or 2

Posted: Sun Sep 08, 2013 11:26 pm
by jenx
lukep wrote:That replaces the old, binary check for status effects. It's a bad kludge, but what it tries to do is get a better value for immunities. In the old system, if the target had 60% immunity (let's say to stuns), 6 turns out of 10, the talent would have a DISABLE rating of 0, and 4 turns out of 10 it would be 1 (or whatever it is).

What that line does is change it to always have a value of (roughly) 0.4 in that situation.

I had planned on replacing it with a real check of the target's immunity, but IIRC there were complications with that.
I still don't quite get it. It looks like the same calculation 10 times added, then divided by 10, so wouldn't that just be the calculation by itself?

Re: [1.0.4] Reduce Howl tactical value to 1 or 2

Posted: Mon Sep 09, 2013 12:00 am
by lukep
The old system was like this, while the one that replaces it is like this(except divided by 10), so not quite the same as before.

Re: [1.0.4] Reduce Howl tactical value to 1 or 2

Posted: Mon Sep 09, 2013 12:28 am
by Doctornull
lukep - it looks like you've basically got a system where you take a hidden variable of 0.60, measure that variable as a 1 or 0 based on a weighted dice roll, then put that dice roller through a stochastic process to get back the variable 0.60.

Why not just pull the 0.60 out and use it directly?

Is it for round-to-round utility variance or something clever like that?

Re: [1.0.4] Reduce Howl tactical value to 1 or 2

Posted: Mon Sep 09, 2013 12:49 am
by jenx
Doctornull wrote:lukep - it looks like you've basically got a system where you take a hidden variable of 0.60, measure that variable as a 1 or 0 based on a weighted dice roll, then put that dice roller through a stochastic process to get back the variable 0.60.

Why not just pull the 0.60 out and use it directly?

Is it for round-to-round utility variance or something clever like that?
I've been debugging it, and the value is usually 1 or 0.5. So I'm not even sure it is working as intended.

Re: [1.0.4] Reduce Howl tactical value to 1 or 2

Posted: Mon Sep 09, 2013 1:00 am
by lukep
Doctornull wrote:lukep - it looks like you've basically got a system where you take a hidden variable of 0.60, measure that variable as a 1 or 0 based on a weighted dice roll, then put that dice roller through a stochastic process to get back the variable 0.60.
Yup, that's the goal.
Doctornull wrote:Why not just pull the 0.60 out and use it directly?
It's been a while, but I seem to recall it having problems when dealing with damage types like FIRE or WEAPON, as opposed to STUN or CONFUSION. It's probably fixable, but it was just a quick hack.
jenx wrote:I've been debugging it, and the value is usually 1 or 0.5. So I'm not even sure it is working as intended.
Hmm. I didn't debug that part at all, so it could very easily be broken.

Re: [1.0.4] Reduce Howl tactical value to 1 or 2

Posted: Thu Sep 12, 2013 12:58 pm
by jenx
With the release of my new better tactical ai addon (http://forums.te4.org/viewtopic.php?f=50&t=38820), the issues in this thread have been addressed. Enjoy!