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

This trigger is working?

Status
Not open for further replies.
Level 2
Joined
Mar 9, 2021
Messages
8
Problem is the computer buy only 1 item then does t buy anything...



Random Item
Events
Unit - A unit enters Region 012 <gen>
Conditions
(Number of items carried by (Triggering unit)) Not equal to (Size of inventory for (Triggering unit))
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Triggering unit)) controller) Equal to Computer
((Triggering unit) is A Hero) Equal to True
((Owner of (Triggering unit)) Current gold) Greater than or equal to 5000
Then - Actions
Hero - Create (Random level 8 Any Class item-type) and give it to (Triggering unit)
Player - Set (Owner of (Triggering unit)) Current gold to -5000
Game - Display to (All players) the text: Enemy Hero has buy ...
Else - Actions
 
Last edited:
Status
Not open for further replies.
Top