Custom Ability Sells Unit?

B

boxx0r

Guest
Hey all, I tried to add a custom ability (a variation of taunt) to an object, but when I try it in game, I click the ability and it sells the object for its point value... how do i stop this? I just want the ability to do nothing (maybe something visual) but activate a trigger. Any help? Thanks.
 

FrankTheTank

New Member
Reaction score
4
ill check this.

EDIT: it sells the item even if not close to a shop?

never heard of this. What base item did you use to make your custom one?

EDIT: you can check what is the base item by right clicking on it and selecting reset to default
 
B

boxx0r

Guest
ill check this.

EDIT: it sells the item even if not close to a shop?

never heard of this. What base item did you use to make your custom one?

EDIT: you can check what is the base item by right clicking on it and selecting reset to default

it's a shrine from the undead campaign. there's nothing else near it except for an undead acolyte that is used to make buildings. could that be it?

EDIT: changed object to a basic human farm, and it's still being sold. dunno what it is.


EDIT 2: here's the code for the ability:

Code:
Start Level
    Events
        Unit - A unit owned by (Owner of START LEVEL 0004 <gen>) Begins casting an ability
    Conditions
        (Ability being cast) Equal to Taunt
        (Owner of (Target unit of ability being cast)) Equal to Player 1 (Red)
    Actions
        Trigger - Run Next_Level (checking conditions)
        Wait 0.01 seconds
        Trigger - Turn off (This trigger)
i've attached the w3x file for anyone who would like to look at it.
 

Attachments

  • RACE TD.w3x
    35.6 KB · Views: 113

FrankTheTank

New Member
Reaction score
4
Just take a look at your triggers, the sell tower one as no condition, so it triggers on ANY ability... just try to disable this trigger until you make a sell tower ability, and youll see... and btw, disable all your triggers that arent finished, cause it might cause you some problems like this one. If you need anymore help with this, just PM me, ill be glad to help :)
 
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