• 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] Buying heroes

Status
Not open for further replies.
Level 4
Joined
Nov 4, 2013
Messages
33
When you buy any of a hero is a (All Hero) all the recovery time (stock regen time) set to 250cd
That's within 250cd, you can only buy just one hero
This is my self-set trigger, laughed ha ha ha
I do not know where it is wrong, I ask for your help. Thank you


  • Untitled Trigger 009
    • Events
      • Unit - A unit owned by Player 1 (Red) Finishes an upgrade
    • Conditions
    • Actions
      • Set stockregentime = (Last started timer)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Remaining time for (Last started timer)) Equal to 250.00
          • (((((((((Unit-type of (Triggering unit)) Equal to Portgas D. Ace 10) or ((Unit-type of (Triggering unit)) Equal to Sakazuki 12)) or ((Unit-type of (Triggering unit)) Equal to Thousand Sunny 14)) or ((Unit-type of (Triggering unit)) Equal to Usopp 2)) or ((Uni or ((Unit-type of (Triggering unit)) Equal to Dracule Mihawk 11)
        • Then - Actions
          • Countdown Timer - Start (Last started timer) as a Repeating timer that will expire in 0.00 seconds
        • Else - Actions
24wswok.png


2j48tgn.png
 

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,219
1. allways tell if you want it for one player or many players
2. work on your english :p

anyway, I made something fast here.
  • Untitled Trigger 001
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set count = 1
  • trigger one
    • Events
      • Unit - A unit Finishes training a unit
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Sold unit)) Equal to Footman
          • (Unit-type of (Sold unit)) Equal to Knight
          • (Unit-type of (Sold unit)) Equal to Rifleman
    • Actions
      • Countdown Timer - Start some_timer as a One-shot timer that will expire in 2.00 seconds
  • trigger two
    • Events
      • Time - some_timer expires
    • Conditions
    • Actions
      • Set count = (count + 1)
      • Player - Limit training of Heroes to count for Player 1 (Red)
 
Status
Not open for further replies.
Top