• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Buying Skills

Status
Not open for further replies.
Level 8
Joined
Aug 19, 2006
Messages
185
I am making an arena map. You can buy skills from trainers. But all abilities' maximum levels are 5. If you buy abilities, it's level increases. But if you buy 6 levels of 1 ability stats changes randomly and skill not works. So I made Stock Maximum = 5 and Stock Replenish Interval = 3600 (Maximum). But after 3600 seconds, You are beeing able to buy level 6. How can I fix it?

My triggers:
Shadow Strike
Events
Unit - A unit Sells an item (from shop)
Conditions
(Item-type of (Sold Item)) Equal to Shadow Strike
Actions
Unit - Increase level of Shadow Strike for (Buying unit)
Unit - Add Shadow Strike to (Buying unit)
Item - Remove (Sold Item)

Sorry for my terrible English :(
 
Select Stock Replenish Interval, press Shift, and then press Enter. Make Stock Replenish Interval as many 9s as it will let you, and it will end up at something like 100000000 instead of just 3600.

And your English isn't bad.
 
Hmm, considering the lack of netiquette and very obvious typos created through typing too fast, I'd have to say the chances of you actually hacking THW are very close to 0...

Here's a very clunky way of doing it, you'd need to add every ability they can learn into the end field. I suggest asking for help in the either the triggering or spell forum.
  • Remove Abil
    • Events
      • Unit - A unit Uses an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to [HIGHLIGHT]<Your fake Tome of Retraining>[/code]
      • Unit - Remove Acid Bomb from (Triggering unit)
      • Unit - Remove Animate Dead from (Triggering unit)
      • Unit - Remove etc...
I'm not sure exactly how you'd go about doing this the right way, but have variables for all of the abilities a hero can learn. When a hero learns an ability, change the variable to show what ability it learned. Have an ability that does nothing on your fake tome of retraining (so that heroes can use it), and then remove all the abilities that the variables identify.
 
Simply add a "Level of Shadow Strike for buying unit is less than 5" to the conditions.
 
You went through and added all the abilities heroes can learn? I'd assume there weren't too many, then. Good luck with the map.
 
Status
Not open for further replies.
Back
Top