HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

About AI

01-23-2006, 04:43 PM#1
SmileyJeff
Quote:
Originally Posted by Blade.dk
We want the AI to use abilities. This may sound hard, but it isn’t. We just have to make the Heroes learn the abilities, and they’ll cast them themselves.

NOTE: The situation where a computer-controlled hero will cast a spell is always the same situation as where it would cast the spell it’s based on. So if you have a custom spell based on Silence, it will cast it in situations where it would cast it in melee games. NEVER base your spells of the “Channel” ability, as the AI never will use them.
Does it mean the "Order String Value"? If i change the string to "banish" from "silence", will it change the situation of the hero use?

If i create a trigger:
Trigger:
Melee Initialization
Collapse Events
Unit - A unit Gains a level
Conditions
Collapse Actions
Hero - Learn skill for (Triggering unit): Chemical Rage
Hero - Learn skill for (Triggering unit): Attribute Bonus
Hero - Learn skill for (Triggering unit): Bash
Hero - Learn skill for (Triggering unit): Healing Wave
Hero - Learn skill for (Triggering unit): Blink
Hero - Learn skill for (Triggering unit): Bladestorm
the hero will only learn the spell he got right?

SmileyJeff
01-23-2006, 04:59 PM#2
Blade.dk
Quote:
Originally Posted by SmileyJeff
Does it mean the "Order String Value"? If i change the string to "banish" from "silence", will it change the situation of the hero use?

If i create a trigger:
Trigger:
Melee Initialization
Collapse Events
Unit - A unit Gains a level
Conditions
Collapse Actions
Hero - Learn skill for (Triggering unit): Chemical Rage
Hero - Learn skill for (Triggering unit): Attribute Bonus
Hero - Learn skill for (Triggering unit): Bash
Hero - Learn skill for (Triggering unit): Healing Wave
Hero - Learn skill for (Triggering unit): Blink
Hero - Learn skill for (Triggering unit): Bladestorm
the hero will only learn the spell he got right?

SmileyJeff

Reminds me that I should fix that old tutorial and upload it here.

Anyways, yes, he will only learn the spells he/she has.

And it is not really the orderstring, I think that last time I tried, changing the order string did nothing, it is in the situations it would cast the base spell it casts the custom spell, not matter if you changed the orderstring or not.
01-23-2006, 05:11 PM#3
SmileyJeff
Ah, so that means i can't really make some damage spell base on blink :(
01-23-2006, 06:38 PM#4
Vexorian
yes it is base ability and only that.

orderstring is the most useless world editor field ever, it doesn't serve any purpose, changing it does nothing at all
01-24-2006, 01:35 PM#5
Shisho
Well you can use it in the string fields for issuing an order sometimes. That's all it refers too, and it really doesn't matter which one you choose for it as long as it matches up. I personally wish you could define your own order name just to make it easier for memory purposes when writing the trigger.

I guess in the rare cases you could use them to toggle a toggle power on and off with it's orderstrings.
01-24-2006, 05:22 PM#6
Vexorian
that's not true, changing that field doesn't affect which order you have to use