HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Computer Units Using Abilitys?

10-28-2003, 03:55 AM#1
Dark_Baron_Prot
Here is my problem, I need my computer units to use their abilitys when fighting Human units. example I have a Computer Unit Blademaster with the Bladestorm ability, but he never uses his bladestorm, I have seen it done before with triggers to get computer units to use their abilitys, but is there an AI command, or is it just triggers, how can I get my blademaster to use his ability? any help would be great.. thanks
10-28-2003, 04:10 AM#2
Grater
Set the player as a computer player in player settings and tick fixed player settings. That players units will then automatically use their abilities.

Note they only use them when it makes "sense", ie a blademaster wont bladestorm unless there is several units nearby.
10-28-2003, 04:16 AM#3
Dark_Baron_Prot
it's already a computer player, it already has the ability, and with 10 people all attacking it at the same time, it still doesn't use it, the bladestorm stats are all correct, the blademaster has the ability, he just doesn't use it.
10-28-2003, 04:32 AM#4
Grater
Ok, thanks for clarifying that. I just tried it in the WE and the blademaster doesn't seem to like using BS, he was happily MI'ing and whatsnot.

Basically you need a trigger to tell him to bladestorm when surronded.
Code:
Bladestorm
    Events
        Time - Every 5.00 seconds of game time
    Conditions
        (Number of units in (Units within 300.00 of (Position of Blademaster 0000 <gen>) matching (((Matching unit) belongs to an enemy of (Owner of Blademaster 0000 <gen>)) Equal to True))) Equal to 0
    Actions
        Unit - Order Blademaster 0000 <gen> to Orc Blademaster - Bladestorm
That trigger is for exactly one blademaster who is preplaced, if you want a more general one (ie lots of blademasters) then I can easily come up with a more general purpose trigger.
10-28-2003, 04:35 AM#5
Dark_Baron_Prot
Oh, Awesome,, thanks a million.....