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

I am in WAY over my head.

Status
Not open for further replies.
Level 10
Joined
Mar 25, 2010
Messages
187
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 10
Joined
Mar 25, 2010
Messages
187
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).
 
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