Tome of retraining, specific skill?

HxCwizard

New Member
Reaction score
1
Okay so Ive posted this a couple times and NO ONE gives me a correct answer
I cant figure this out, its an old trigger used by another map for the same EXACT purpose but it refuses to work
Okay if youve ever played custom hero survival
the skill shops work off of a trigger system thats set up like this:
unit buys item "XXX". remove item "XXX". learn/upgrade skill "XXX" +1
the way the tome of retraining is supposed to work is that you buy the tome of retraining then you buy the skill in the shop that you want to remove( which is actually an item your buying ) and it should completly remove that skill no lumber/gold given back
this is how its set up as of right now, I dont get why it doesnt work:
"remove t 1"
scrn_2.jpg

and then:
"remove t 2"
scrn_1.jpg

PLEASE! any help would be useful
 
In the second trigger, is the ability that triggers it the actual ability being removed or a dummy item for the ability? If it's waiting for a dummy item, then the actual ability isn't going to be removed.
 
okay true thank you, but how would I make it so that the ability for the item is removed?
 
You could check what item they used and then remove the corresponding ability, though that would require you to write an if/then statement for each different ability, but there's probably a simpler way to do it. You could also change the way your removing the abilities to make it easier, for example getting them to cast the ability they want removed so you can refer to the ability directly in the trigger.
 
alright I have no problem with writing for each ability, but what if the ability is an aura or a passive?
 
The way I see your doing things, you have items set up that do nothing but register that they have been activated for the trigger to activate. So as long as this is the way you have things set up, if the item is an active item, you can still remove the corresponding passive ability.
 
why you dont just trigger it with commands....i think its easier to do it that way...and take away gold if they do that...should be easier than working hours/days/weeks on a trigger that doesnt work or not?
 
I dont get what you mean "happy"
and shura would variables work?
like set a variable for each dummy item and if they buy the item set the variable to true
then if they buy the tome of retraining and use it then click on an ability they already own
so basically something like
events:
-unit buys an item
conditions:
-variable "tome of retraining" = true <- basically if the tome of retraining item is used that variable is set to true
-item being bought = "XXX"
-variable for "XXX" =true
actions:
remove ability "XXX" from triggering unit
(free hand)
would that work?
 
i mean that you trigger commands for every skill.
like "-evasion" and then evasion get removed if you have it and also gold is removed for that. thats the same work but you dont need to get your trigger to work again.

hope you understand now^^

greetz happy
 
O MY GOD! thats so simple yet effective! I wonder which people would rather use?
tome or type
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top