• 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.

[Trigger] Computer use TP and write messages

Status
Not open for further replies.
Level 2
Joined
Mar 28, 2008
Messages
6
Hello!

I want to make a trigger, so the computer player will use the TP item when his hero's hp lower than 10%. I made this, but its dont working :(
testwp4.jpg

Its also would be good if i say "tp" then he TP to my base. And he buys a new TP after he used one.

The other thing: how can i make that when the game starting the comp says something like "hi, hf" ?

Any tips?

Thanks!
 
Level 9
Joined
Oct 17, 2007
Messages
547
Make a trigger to give the comp's hero a new TP after it used one and subtract gold from total amount. It gives the same effect as buying but using only one trigger.
 
Level 11
Joined
Dec 11, 2007
Messages
888
Make a trigger to give the comp's hero a new TP after it used one and subtract gold from total amount. It gives the same effect as buying but using only one trigger.

it is a problem when the hero doesnt have enough money. he will still get the TP
you should make this:
  • If\Then\Else multiple functions:
    • Conditions:
      • Integer - Gold of Owner of Hero manipulating item greater than or equal to 300
    • Actions:
      • Wait 3.5 sec
      • Create TP and give it to hero manipulating item
 
Level 2
Joined
Mar 28, 2008
Messages
6
another question

Heya!

Now comp using the tp when hero's hp is low, but something is wrong with this trigger...
2199971091_www.kepfeltoltes.hu_.jpg

When comp's hero is out from the altar, he tp to my base but i dont said "tp". How should i fix it?
 
Normally a simply

E: A unit is being attacked
C: Percentable Life of (Attacked Unit) less or equal then 20%
A: Order Attacked unit to Use Item of Attacked Unit of Type Scrown of Town Portal on (Random Unit Matching(Matching unit type equal to Town) and (Matching unit is alive equal to true) and (Owner of (Matching Unit) equal to Owner of (Attacked Unit)))

this will last a few leaks but thats only basic.
 
Status
Not open for further replies.
Top