Upgrade Creeps Trigger?

Joshman_09

New Member
Reaction score
2
Hi im making kind of a AoS map and i need a trigger that a unit purchases an item, then the creeps that spawn up damage increases...

any ideas?

+rep.
 

TomTTT

New Member
Reaction score
44
Maybe you can try a trigger like when a unit buys and item, research an upgrade used by those creeps. Something like:
Trigger:
  • Creep Upgrade
    • Events
      • Unit - A unit Sells an item (from shop)
    • Conditions
      • (Item-type of (Sold Item)) Equal to Upgrade Creeps
    • Actions
      • Unit - Order UPGRADER to research Creep Upgrade

UPGRADER unit can be any unit with 0 sight range and locust that isn't seen by the owner.
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
you dont need a dummy unit to research upgrades, they can be researched solely by triggers also.
 

Joshman_09

New Member
Reaction score
2
Mmk that works now how about a trigger that removes and item from a shop and one that adds one to a shop?

thanks again guys
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
for this your shop needs to have the ability "sell items" this is an ability all regular market places in wc3 have. without this ability what you want to do is not possible.

if a unit got this ability you can use these actions for it:
Trigger:
  • neutral building - add ITEM_TYPE to market place with stock STOCK and max stock of MAX_STOCK

capital letter words can be set by you.
 

Joshman_09

New Member
Reaction score
2
Code:
Swords 1
    Events
        Unit - A unit Acquires an item
    Conditions
        ((Triggering unit) has an item of type Upgrade Swords) Equal to True
    Actions
        Item - Remove (Item carried by (Triggering unit) of type Upgrade Swords)
        Unit - Order Blacksmith 0090 <gen> to research Iron Forged Swords
        Game - Display to (All allies of Player 6 (Orange)) the text: The soldiers have b...
        Neutral Building - Remove Upgrade Swords from Smithy 0091 <gen>
        Neutral Building - Add Upgrade Swords 2 to Smithy 0091 <gen> with 1 in stock and a max stock of 1

mmk for some reason this wont work..
it does remove the item however it does not order the blacksmith to research said upgrade..any ideas on how to fix this?

-yes the blacksmith has the upgrade
-no there a no requirements on the upgrade
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
why do you order the unit to do so? just set the level for the research directly, works like a charm.
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
there got to be an action similar to this: (havent gotten WE at the moment to check but the action is there)
Trigger:
  • Player - Set level of UPGRADE to VALUE for PLAYER
 

NoobImbaPro

You can change this now in User CP.
Reaction score
60
Man why you can't make the pretiest thing?????? When you buy an item, make the item have for passive skill a GLOBAL aura that increases dmg? So when you sell item the damage effect dissapears, a thing you can't do with researches
 

Necrach

You can change this now in User CP.
Reaction score
62
Man why you can't make the pretiest thing?????? When you buy an item, make the item have for passive skill a GLOBAL aura that increases dmg? So when you sell item the damage effect dissapears, a thing you can't do with researches

A global +damage aura will put a buff on all the units, and that would be a buff that cannot stack with similar abilities. And, he doesn't want an item like that, its more like a powerup that is removed directly on purchase
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top