• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

I am in WAY over my head.

Status
Not open for further replies.
Level 9
Joined
Mar 25, 2010
Messages
184
So a while ago i started working on an RPG. The concept here is that the player can "purchase" abilities aslong as he meets the attribute requirements.

I've got that completely working but the problem presents itself in unlearning.
I want the player to be able to unlearn his abilities as many times as he wants ( for a price ofcourse ).
I know the first steps, powerup dummy item called Unlearn Ability, then start triggering from then on out.

But frankly, i can't seem to figure out how to do it. My first though was to have each ability set to a variable but that didn't seem to work all that well.
If anyone knows a ways to do this, i'll be really grateful. This thing is kinda the map's selling point per say :p

Here's a few things you might wanna know:
-The Map is singleplayer, so no worries about MUI.
-There's no class restrictions ( only stat restrictions, but like i said, i already have buyable spells working )
-Player can have upto 5 spells.

Alright, hope i didn't forget anything and thanks to anyone who's willing to help. :)
 
Level 9
Joined
Mar 31, 2011
Messages
496
can't understand it...
but do you mean like, when you will buy an ability on a shop, it will be added on the unlearned spells? which you'll need to level up to learn it?
 
Level 9
Joined
Mar 25, 2010
Messages
184
It's basically like this, you purchase a spell and it's then added to ur active spells ( not the unlearned ones ) through triggers, so they also have to be unlearned with triggers. You don't level these spells up or anything, you just unlearn ur current one and learn a more powerful spell when you meet it's stat requirement.

Hope that made some sense x)
 
Level 12
Joined
May 21, 2009
Messages
994
Can't you just use the RemoveAbility function when you want to unlearn an ability? Else you can also "hide" an ability. I can't remember the function and since I dont have wc3 on this computer I can't find it either. But I'm pretty sure its under -Game or -Player (in gui).
 

Bannar

Code Reviewer
Level 26
Joined
Mar 19, 2008
Messages
3,140
Yes you have to. Helpfull here should be ability variables.

When player wish to unlearn spell he clicks a given buttom for this special ability right?
via condition what search which ability is wished to be unlearned set ability variable.
Set your_abilityVariable = given_ability
Player - Disable ability your_abilityVariable for player your_player
 
Status
Not open for further replies.
Top