• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

I need help. How can i make the AI use custom tech upgrade ?

Status
Not open for further replies.
Level 12
Joined
Sep 11, 2011
Messages
1,176
you posted this into the wrong thread. this a request thread, not a help zone.

anyway,
make the default upgrade do nothing to the units (just set all the stats it give to 0 or None).
and then order the unit to upgrade with your custom tech.
should be something like this.

  • Ressearch
    • Events
      • Unit - A unit Begins research
    • Conditions
      • (Researched tech-type) Equal to Default Upgrade (e.g Iron Forged Swords)
    • Actions
      • Unit - Order (Triggering unit) to Stop
      • Game - Display to (All players) the text: aaaaaa
      • Unit - Order (Triggering unit) to research Your Custom Upgrade (e.g Fake Iron Forged Swords)
the "aaaaaa" is just a message to check if the trigger is flowing or not.

here is a test map. when you upgrade Iron Forged Swords (that do not increase the footman's dice attack because i already set it to 0), the trigger will get into action and stop the unit to do so, and then upgrade Fake Iron Forged Swords instead (Fake Iron Forged Swords is the upgrade that do the real thing). You don't need to put your custom upgrade to Blacksmith, just leave it as it is.
 

Attachments

  • f.w3x
    16.8 KB · Views: 48
Status
Not open for further replies.
Top