| 04-04-2004, 06:41 PM | #1 |
I'm looking for a way to increment a variable every time a hero levels up an ability. I'm doing this so that later I can remove that ability and give him a new ability at the same skill level. Does anyone know a way to do this? or know of an easier way to remove one ability and give a new ability at the same skill level? |
| 04-04-2004, 06:59 PM | #2 | |
Quote:
Like this? Code:
Charging Slash Skill
Events
Unit - A unit Learns a skill
Conditions
(Learned Hero Skill) Equal to Charging Slash
Actions
Set HeroArray[1] = (Triggering unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Charging Slash for (Triggering unit)) Equal to 5
Then - Actions
Set i[5] = 5
Unit - Remove Charging Slash from HeroArray[1]
Player - Set the current research level of Bladeturn to i[5] for (Owner of (Learning Hero))
Unit - Add Bladeturn to HeroArray[1]
Else - Actions
Do nothing |
| 04-04-2004, 09:44 PM | #3 |
cool, so the unit learn skill event is leveling up skills they have also? thanks that helped a lot :) |
| 04-04-2004, 09:47 PM | #4 |
Can you do a interger comparisen, and search for level of ability for unit instead of using interger varible? |
| 04-04-2004, 11:54 PM | #5 | |
Quote:
Yeah it levels up skills they currently have however you won't be able to level up the newely added skill, i'm not sure how to do that. Also if you remove the original ability and the hero isn't at max level it'll reset to level 1. You also need to define the research upgrade in upgrade, and add that upgrade to the "upgrade used" in the unit properties. Hopefully someone more knowledgable can help ya. |
| 04-05-2004, 01:04 AM | #6 | |
Quote:
ewww... Ok... so ideally I want the hero to be able to go back to a building and lets say he has the heal spell, at the building I want there to be an option to learn an area of effect heal spell if you have the base heal spell at level 10. so first off, is there an easy way to do that ability check for the building, so you can only learn the aoe heal if you have heal at level 10? secondly, is there any way that somebody can explain to me to keep the heroes level from resetting back to 1 when he learns the new ability if that's what happens?... and what were you saying about the research upgrade and upgrade used properties? I didn't really understand where they came into this. |
| 04-05-2004, 05:47 AM | #7 |
Another question. Exactly how many abilities ( from all the types ) can a hero have at once? it's 4 hero abilities right? can he have multiple unit abilities at the same time? ( by just saying abilities I mean skills that use the normal squares in the bottom right under their attack, move, stop, etc... commands , I know that things can be tied to items to take item slots ) |
| 04-05-2004, 07:06 AM | #8 | |
Quote:
Abilities with no UI? what exactly does that mean? and is the only thing that really separates hero abilities from unit abilities is the ability to level up the ability? and just to make sure I understood you right, that's 5 hero abilities and 2 unit abilities? or was it 5 total with up to 2 unit abilities? and can you explain spellbooks to me? I don't believe I've ever seen / used one... it's an item right? how would you be able to pick spells out of one ? |
| 04-05-2004, 08:08 AM | #9 | |
Quote:
the spellbook would be perfect for some of the wizard types in my map... how do you choose tho... like could I make a spellbook hold blizzard, phoenix fire, starfall, and curse... and have the player able to choose between which of the 4 is used? and if so, how does the player choose? |
| 04-05-2004, 08:09 AM | #10 |
btw, thank you for all this help alpha, really making this map a lot easier on me :) |
| 04-05-2004, 08:14 AM | #11 | ||
Quote:
I was referring to setting a spell level thru the research upgrade. Quote:
I hope this will explain it. Lets say you have a Hero with 3 abilities Flame Strike, Devotion Aura and Mana Burn. Your Hero is level 2 and it has 2 unused skill points. You use those 2 skill points. One on Flame Strike (Level 1) and the second on Mana Burn (Level 1). You gain a new level so your Hero is now at level 3 and you have 1 skill point. You use that skill point on Flame Strike (Level 2). If you have a trigger that removes Flame Strike (Level 2) it will be removed but when you gain another level you will have the option to retrain flame strike but it will reset back to level 1. I hope this clarifies. I added a map with a demonstration of swapping abilities well the hero already has the ability it just gets disabled and unlearnable until a certain level. I never used the spell book. Swap.w3x |
