• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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