Aller au contenu

Photo

[How to] Set creature tactics?


  • Veuillez vous connecter pour répondre
10 réponses à ce sujet

#1
DeepImpact

DeepImpact
  • Members
  • 520 messages
How do I change a monsters behavior? I found the AIP-file, changed it and copied it as AIP_SoH.GDA in the override-folder.

But when I try change the AI-package in the toolset, there are only "AIP Coward" and "AIP Default".

#2
Challseus

Challseus
  • Members
  • 1 032 messages

DeepImpact wrote...

How do I change a monsters behavior? I found the AIP-file, changed it and copied it as AIP_SoH.GDA in the override-folder.

But when I try change the AI-package in the toolset, there are only "AIP Coward" and "AIP Default".


The easiest answer is that you need to add this AIP file to 2DA_base, which means you'll need to create a M2DA version of it. Just do a search in 2DA_base for AIP_Archdemon to see the format. The last column references a package ID, so if you are just using an existing one, just add it there (package ID's are in packages.XLS). That allows the toolset to see your AIP definition when changing packages in the creature editor.

If this doesn't work, please post a brain dump of everything you have done, step by step, in order to get the problem fixed. I've recently added new custom tactics/packages, so it's still fresh in my mind.

#3
hunharibo

hunharibo
  • Members
  • 126 messages
where are the AIP files referenced by the packages? I cant see it anywhere.

I mean packages have to define with AIP is valid for them right?

#4
Challseus

Challseus
  • Members
  • 1 032 messages

hunharibo wrote...

where are the AIP files referenced by the packages? I cant see it anywhere.
I mean packages have to define with AIP is valid for them right?


That's an interesting question actually. For my purposes, I was making custom packages for custom party members. In this case, there is a column in packages.XLS, called FollowerTacticsTable. In there, I set put the ID of the corresponding AIP, as defined in 2DA_base.XLS. Obviously, as is implied by the name, the column is only used for follower type packages. So, for example, if you look at row ID 81 (Leliana), the value of FollowerTacticsTable is 10100. If we look that up in 2DA_base.XLS, we get AIP_Follower_Leliana.

However, if you look at the last column of the row for AIP_Follower_Leliana (PackageIDForAl), you'll see the value of 81, which points right back to the same row in packages.XLS that we started with. So, there's some sort of cross linking going on.

As for how it works underneath, I haven't look too in depth. But perhaps when you select a package in the creature editor, and does a query on 2DA_base.XLS by the package ID?

If I get more time tonight, I'll try to get a clearer picture of how it works for non-party members.

Modifié par Challseus, 12 janvier 2010 - 10:41 .


#5
DeepImpact

DeepImpact
  • Members
  • 520 messages
Here you can see what I have done.
The new tactic will be show in the toolset, but unfortunally I see no reaction in the game! Have I done something wrong?

Posted Image

Just right-click and "Show image" :)

Modifié par DeepImpact, 15 janvier 2010 - 08:13 .


#6
Challseus

Challseus
  • Members
  • 1 032 messages
First and foremost, thanks for the detailed flow sheet. I wish all people would ask questions with this much detail!

Anyway, the first thing that worries me is the PackageIDForAl column in the row for AIP_SoH, in your 2DA_base.XLS. That should be set to 200, as it is defined in your package.XLS. Not sure where 45 is coming from.

Secondly, when defining it on a creature in the toolset, when you select Spirit of Healing, you should definitely see AIP_SoH come up under the PackageAI combo box. Hopefully the above will fix that.

Finally, is this tactics for a follower (that you can actually see via the tactics menu), or a non-follower? Just curious.

Let me know if this helps.

Modifié par Challseus, 15 janvier 2010 - 03:08 .


#7
FalloutBoy

FalloutBoy
  • Members
  • 580 messages
To set the AIP for a follower, you put the AIP table ID in the packages table (FollowerTacticsTable). To set it for a non-follower, you put the package ID in the M2DA_base table entry for the AIP table (PackageIDForAI). Very confusing, I agree, but that's how it works.


#8
DeepImpact

DeepImpact
  • Members
  • 520 messages
Okay, now i see the package in the TS, but however there is no reaction in the game.



BTW. The Spirit of Healing is a summoned creature.

#9
Challseus

Challseus
  • Members
  • 1 032 messages

DeepImpact wrote...

Okay, now i see the package in the TS, but however there is no reaction in the game.

BTW. The Spirit of Healing is a summoned creature.


Interesting... Can you confirm the summoned creature has the spell?

In your packages.XLS file, I can see you have a value of for the Levelup Table column. Assuming your summoned creature correctly has the mage class, it will default to use the standard Mage levelup table (ALWizard_Default.xls), which only starts you out with spells like Arcane Bolt, Flame Blast, & Weakness.

Are you possibly defining the ability in script by doing some like so when the game starts:

AddAbility(GetObjectByTag("summoned_creature"), ABILITY_SPELL_HEAL);

Let me know what your situation is. If you want to go the Levelup Table route, and don't know much about it, let me know. I use those as well.

Modifié par Challseus, 17 janvier 2010 - 12:00 .


#10
DeepImpact

DeepImpact
  • Members
  • 520 messages
Yes, it is give by "AddAbility".

#11
Challseus

Challseus
  • Members
  • 1 032 messages

DeepImpact wrote...

Yes, it is give by "AddAbility".


...Hmm...

So, I ran into a similiar issue when creating tactics for a custom boss. They weren't using the abilities I gave them. The only way I could DEBUG it was to add the package to a follower, and confirm that the tactics were set correctly using the tactics viewer in game. In my situation, I had defined some of the conditions incorrectly.

I did do a lookup on all the ID's in your tactics table, and they do look correct. However, I would try doing what I suggest above, to confirm that the tactics are defined correctly.

Besides that, I'm out of ideas at the moment. From my perspective, everything you're doing is correct. When I get back from breakfast, I'll try to define some tactics like yours, and see if they work in game.

We're almost there!