HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Problem

11-04-2003, 12:08 AM#1
Eriond
When an ability reaches level 5 it gets replaced with another ability which is also at level 5....

This is harder then it sounds...

Code:
Learn Smite
    Events
        Unit - A unit Learns a skill
    Conditions
        (Unit-type of (Learning Hero)) Equal to Priest
    Actions
        Set Smitelevel = (Smitelevel + 1)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Smitelevel Equal to 5
            Then - Actions
                Trigger - Turn off (This trigger)
                Unit - Remove Smite  from (Learning Hero)
                Wait 0.01 seconds
                Unit - Add Smite (2) to (Learning Hero)
                Hero - Learn skill for (Learning Hero): Neutral Dark Ranger - Silence
                Hero - Learn skill for (Learning Hero): Neutral Dark Ranger - Silence
                Hero - Learn skill for (Learning Hero): Neutral Dark Ranger - Silence
                Hero - Learn skill for (Learning Hero): Neutral Dark Ranger - Silence
                Hero - Learn skill for (Learning Hero): Neutral Dark Ranger - Silence
                Trigger - Turn on (This trigger)
            Else - Actions


Shouldn't that get me a lvl 5 smite (2) when smite levels to 5?

For some reason when I do this, it just adds the new skill and scrwes up a bit... here's the map
11-04-2003, 12:38 AM#2
drezman
i think b/c u hve it set for silence
11-04-2003, 01:17 AM#3
Eriond
Yeah... that's what the spell is based on...
11-04-2003, 01:21 AM#4
AllPainful
Based on? as in a custom ability? Or is it edited version of silence, non-custom ability?

If its a Non-custom ability (just edited silence) then you got that part of your trigger correct... but...

If its a custom ability you will have to convert your trigger to custom text and change the 4 letter code to match your ability...

(or you can use WEU which lets you choose custom abilities in the trigger editor...)
11-04-2003, 01:24 AM#5
Eriond
Oh. Custom Text. Joy.

Acutally though, there's something about it I don't understand.. try it for yourself.. when I try to remove the abilty something screwy happens, the cursor disappears when you try to cast it, and... while see for yourself please.
11-04-2003, 01:50 AM#6
AllPainful
Well I still haven't looked at it yet (I don't have time right now, I am on my way out the door) but I did notice something else, your trying to tell the computer to learn the ability, but.. Do you have enough skill points to learn it?

On another note.. I just remembered something that you are not going to like...

1. Hero Abilities removed from heroes via triggers are not removed, but are actually UNLEARNED (they are still listed in the skills box)

2. Abilities added to heroes via triggers DO NOT add as hero abilities, they add as unit abilities, and therefore can not be leveled up...

SO... that could be the problem...
11-04-2003, 01:59 AM#7
Eriond
Oh crap. That's not good. That could put serious limits on my map... is there anyway to change hero abilities in game?
11-04-2003, 07:51 PM#8
AllPainful
Only 1, and that is to make more than 1 hero and replace units... Big pain in the butt...
11-04-2003, 08:06 PM#9
SourGummiWorm
the size and severity of that pain in your butt depends on how many of whatever hero you have there are... making a copy of him is easy and changin and ability... but if there are 20 of this hero... that's alot more stressful to do.
11-04-2003, 11:32 PM#10
AllPainful
Well put SourGummiWorm. ;)