Adding hero abilities makes them 'trained'

Devrak

New Member
Reaction score
17
So, I have made a system where you buy items from shops that you then turn into abilities, much like custom hero line wars. I have one problem though, when I add the abilities to the hero they become 'trained' as if you already had spent skill points on them. I do not want this to happen because it kinda ruins the purpose, so is there any other way to do it other then 'unit - add ability'?
 

Sui-cookie

You can change this now in User CP.
Reaction score
49
yeah :D i asked baka ranger about this forever ago, for a map in fact, first you make an ability based from the tinkers upgrade spell, and a spellbook for each spell. ill post the triggers that went along w/ it.

edit- i mades it smalla
oh and btw, this is for normal spells...not ultimate.. they work a lil different. ill explain after this if you are interested.
Trigger:
  • spells
    • Events
      • Unit - A unit Acquires an item
    • Conditions
    • Actions
      • -------- the conditions below are just so they dont buy two of the same spell, which could cause some bad errors --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • And - All (Conditions) are true
                • Conditions
                  • (Item-type of (Item carried by (Triggering unit) in slot 1)) Equal to (Item-type of (Item being manipulated))
                  • (Item-type of (Item carried by (Triggering unit) in slot 2)) Equal to (Item-type of (Item being manipulated))
              • And - All (Conditions) are true
                • Conditions
                  • (Item-type of (Item carried by (Triggering unit) in slot 1)) Equal to (Item-type of (Item being manipulated))
                  • (Item-type of (Item carried by (Triggering unit) in slot 3)) Equal to (Item-type of (Item being manipulated))
              • And - All (Conditions) are true
                • Conditions
                  • (Item-type of (Item carried by (Triggering unit) in slot 1)) Equal to (Item-type of (Item being manipulated))
                  • (Item-type of (Item carried by (Triggering unit) in slot 4)) Equal to (Item-type of (Item being manipulated))
              • And - All (Conditions) are true
                • Conditions
                  • (Item-type of (Item carried by (Triggering unit) in slot 2)) Equal to (Item-type of (Item being manipulated))
                  • (Item-type of (Item carried by (Triggering unit) in slot 3)) Equal to (Item-type of (Item being manipulated))
              • And - All (Conditions) are true
                • Conditions
                  • (Item-type of (Item carried by (Triggering unit) in slot 2)) Equal to (Item-type of (Item being manipulated))
                  • (Item-type of (Item carried by (Triggering unit) in slot 4)) Equal to (Item-type of (Item being manipulated))
              • And - All (Conditions) are true
                • Conditions
                  • (Item-type of (Item carried by (Triggering unit) in slot 3)) Equal to (Item-type of (Item being manipulated))
                  • (Item-type of (Item carried by (Triggering unit) in slot 4)) Equal to (Item-type of (Item being manipulated))
        • Then - Actions
          • -------- and this is to remove the item before it can take effect ;] --------
          • Item - Remove (Item being manipulated)
          • Player - Set (Owner of (Triggering unit)) Current lumber to (((Owner of (Triggering unit)) Current lumber) + 1)
          • Floating Text - Create floating text that reads THIS NOOB TRIED TO ... above (Triggering unit) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
          • Floating Text - Set the velocity of (Last created floating text) to 90.00 towards 90.00 degrees
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Triggering unit) is A Hero) Equal to True
              • (Item-type of (Item being manipulated)) Equal to flaming chain
            • Then - Actions
              • -------- flaiming chain is a spell, which also has an item,engineering, and spellbook for itself. --------
              • Unit - Add flaming chain spellbook to (Triggering unit)
              • For each (Integer A) from 1 to 4, do (Actions)
                • Loop - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Item carried by (Triggering unit) in slot (Integer A)) Equal to (Item being manipulated)
                    • Then - Actions
                      • Unit - Set level of flaming chain - engineering for (Triggering unit) to (Integer A)
                      • Player - Disable flaming chain spellbook for (Owner of (Triggering unit))
                    • Else - Actions
            • Else - Actions
 

Devrak

New Member
Reaction score
17
yeah :D i asked baka ranger about this forever ago, for a map in fact, first you make an ability based from the tinkers upgrade spell, and a spellbook for each spell. ill post the triggers that went along w/ it.

edit- i mades it smalla
oh and btw, this is for normal spells...not ultimate.. they work a lil different. ill explain after this if you are interested.
Trigger:
  • spells
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Triggering unit) is A Hero) Equal to True
          • (Item-type of (Item being manipulated)) Equal to flaming chain
        • Then - Actions
          • -------- flaiming chain is a spell, which also has an item,engineering, and spellbook for itself. --------
          • Unit - Add flaming chain spellbook to (Triggering unit)
          • For each (Integer A) from 1 to 4, do (Actions)
            • Loop - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Item carried by (Triggering unit) in slot (Integer A)) Equal to (Item being manipulated)
                • Then - Actions
                  • Unit - Set level of flaming chain - engineering for (Triggering unit) to (Integer A)
                  • Player - Disable flaming chain spellbook for (Owner of (Triggering unit))
                • Else - Actions
        • Else - Actions


So first I need to do:

1. Create the spell, an Engineering Upgrade version of it, and a Spellbook for it.

2. When the unit acquires the item version of the spell, I need to add the spellbook version of the ability to the unit. Does the spellbook have the 'real' ability in it, and in a non-hero version because I can't seem to add hero abilities in the spellbook?

3. I can't quite understand that part with the loop, for each integer 1 to 4.

4. Then what, so everytime my hero levels he will have the engineer ability to level it up? :/

Argh! Can you explain in more detail please, because this is wierd. :banghead: Would be greatly appreciated.

Edit: and it would be cool if you could show the ulti trigger too!
 

Sui-cookie

You can change this now in User CP.
Reaction score
49
x] ok.... lez break it down a lil

first you need to create four spells that do nothing. name then something like..empty slot.. if you want you can just copy them from the map ill link at the end.

1.yes,a spellbook, an engineering version,spell,and an item are needed
2.the spellbook contains the engineering for the spell.
3.the engineering...lol...after opening the map and looking threw it for like an hour trying to remember how it worked i realised..there is a tutorial for this.. xD

http://www.thehelper.net/forums/showthread.php?p=364875#post364875
 

Devrak

New Member
Reaction score
17
x] ok.... lez break it down a lil

first you need to create four spells that do nothing. name then something like..empty slot.. if you want you can just copy them from the map ill link at the end.

1.yes,a spellbook, an engineering version,spell,and an item are needed
2.the spellbook contains the engineering for the spell.
3.the engineering...lol...after opening the map and looking threw it for like an hour trying to remember how it worked i realised..there is a tutorial for this.. xD

http://www.thehelper.net/forums/showthread.php?p=364875#post364875

Haha! Well, thanks alot mate, I'll check out that tutorial. You have been a great help, +rep!
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    What is up WildTurkey?
  • The Helper The Helper:
    Looks like Google fixed whatever mistake that made the recipes on the site go crazy and we are no longer trending towards a recipe site lol - I don't care though because it motivated me to spend alot of time on the site improving it and at least now the content people are looking at is not stupid and embarrassing like it was when I first got back into this like 5 years ago.
  • The Helper The Helper:
    Plus - I have a pretty bad ass recipe collection now! That section of the site is 10 thousand times better than it was before
  • The Helper The Helper:
    We now have a web designer at my job. A legit talented professional! I am going to get him to redesign the site theme. It is time.
  • Varine Varine:
    I got one more day of community service and then I'm free from this nonsense! I polished a cop car today for a funeral or something I guess
  • Varine Varine:
    They also were digging threw old shit at the sheriff's office and I tried to get them to give me the old electronic stuff, but they said no. They can't give it to people because they might use it to impersonate a cop or break into their network or some shit? idk but it was a shame to see them take a whole bunch of radios and shit to get shredded and landfilled
  • The Helper The Helper:
    whatever at least you are free
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!

      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