• 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.

Max Level Ability

Status
Not open for further replies.
Level 1
Joined
Mar 8, 2014
Messages
5
Hi, i'm making a custom hero survival style game with an ability purchasing system like in hoihoi8s custom hero survival. And i'm wondering how to make a trigger so that if they purchase an ability that they already have maxed, then it will refund hem gold or lumber and not purchase the skill. The only way i can think of doing it at the moment is making a variable for EVERY player for EVERY ability.... but that seems a bit tedious and somehow i dont think thats how hoihoi8 did it.... I'm assuming he probably used a custom script... as i'm really no good at that i would appreciate any help that anyone can offer :D

Rep if you help me, and credits in my game if you could make a trigger for me that i can use. :DD
 
Level 1
Joined
Mar 8, 2014
Messages
5
I was planning on having different levels for different tier abilities. for example, teir 1 abilities might have a max of 10, and teir 2 abilities might have a max of 20, and so on

And that system does look a lot better than what iwas thinking, i could give it a go
 
Last edited by a moderator:
Level 1
Joined
Mar 8, 2014
Messages
5
Yeah that sound good, thanks a lot, i will try out some things.

and sorry, i'm kinda new to this site, i only just made an account :D
 
Level 1
Joined
Mar 8, 2014
Messages
5
Can someone Help me with the custom trigger? I have changed a few things around for it to fit what i want, (as in variable names etc) however i don't think any of the changes should affect the custom script. Is it just a bad script or is there something i am doing wrong? It gives me the error, "Invalid type for specified operator".

JJ9ax8O.png



EDIT:
At the moment in my game i only have one ability (Just recently started it and am trying to get a lot of the trigger work done early), i am planning on adding more of course, at which time i will increase the "from 0 to 3"in the Loop. However i believe it might be the fact that it has 2 commands for when to exit (looping 0 to 3, and when it gets the right ability), that is making it not work.

Also i do realise i don't need the condition "((Hero manipulating item) is A Hero) Equal to True" i will probably take that out now.

And also the last part of the trigger when checking for the ability level, i have changed the "then" and "Else" functions around, as they need to be that way for my game :)

Actually, heres an updated Script :D

y88s1uc.png


EDIT 2:
Nevermind! I figured out what was wrong! It wasn't anything to do with the custom script! that was fine, it was the fact that i had set one of my variables as an item, and not an item-type!

Anyway. Thank you very much to both of you, this has really help me out. I would have probably given up eventually if i continued doing what i was doing.... (you don't want to know what i was doing haha).
 
Last edited:
Status
Not open for further replies.
Top