HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Day an Night Hero

06-16-2006, 01:57 PM#1
emjlr3
I am working on a hero that has 2 complete different skill sets at night and in teh day

now I figure the best way to do this would to be just use two different hero's, and switch them at the currect time, conserving items,lvl,hp,mana,and skill lvls

however I have found in the past that switching heroes, and setting the skills to a certain lvl doesnt acatually have the hero learn them, thus you can have a lvl 3 abilities, but when you go to learn something, you have to learn it again at lvl1

any ideas guys?
06-16-2006, 02:22 PM#2
blu_da_noob
Depending on the situation, you could have spell effects completely triggered, and have all the hero's abilities as dummy abilities (you can then switch the icon/tooltip of the dummy abilities with engineering upgrade).
06-16-2006, 02:25 PM#3
Soultaker
If it is an AoS map or anything like that, you could use the
Trigger:
Actions
Player - Disable ??? for Player 1 (Red)
For each time the night/day changes. Then set the level/skill points to match. You could do it by having an global integer which you set +1 each time the hero levelup.

Then every time the day switches you set another global integer to the first one. But first you add enough skill points accoording to the difference.

- Soultaker
06-17-2006, 03:48 AM#4
Orc Dork
K, with the above triggers and suggestions. I think you should use variables to restore levels.

Use INTEGER variables and use actions like:
Trigger:
Actions
Set SpellLvlVariable1 = (Level of SPELL for (Triggering unit))
That gets the spell level.
Then use:
Trigger:
Actions
Unit - Set level of SPELL for (Triggering unit) to SpellLvlVariable1
That sets the ability level of the new time of day spell.
06-18-2006, 04:01 PM#5
BertTheJasser
Oh no!
Do NOT do that. Blizzard gave us engineeringupgrade and phoenixmorph!
Combine them in a tricky way and you will get your result.
06-18-2006, 06:12 PM#6
emjlr3
im sorry but I am terribly confused here, i have never used engineering upgrade or phoenix morph to do anything like this before, so I am a little lost here guys

I was planinng on having everything triggered, as are 95% of my abilities, again, same hero but with all 4 different spells depending on night and day time

now looking at E.U. it seems like u just select what ability to upgrade, and what to change it with for each level, and it has 4 abilities, and i need 4 so that works good

now my only guess would be to add E.U. through a disabled spell book, then set the level to 1 or 2, depending on night or day

thsi could help me with another hero too, where when he gets to a certain hp, his spells improve, the ngo back once his health goes above that point again, thsi could help me there too
06-18-2006, 06:17 PM#7
Fulla
I've been working on a similair thing for the heroes on my AoS map.

I just did, when hero learns an ability (Day skill OR night Skill)
Set integer = +1

When day night changes remove ability, add ability, set ability level = integer.

Works fine for a 1hero per player AoS.
06-18-2006, 06:34 PM#8
emjlr3
thats what i would have done, except that doesnt it give the bug like i mentioned above, where if u lvl during that time, instead of learning the next lvl of the abiltiy u added, u have to learn it from scratch again
06-18-2006, 06:37 PM#9
blu_da_noob
To use engineering upgrade without having the passive ability stick around, you can do something like this. Say you have ability A which needs to be swapped to ability B. Set the engineering upgrade to swap ability B with abilithy A. When you add EU, nothing will happen, as the unit has no ability to replace, but when you remove it, it will replace ability A with ability B (and the EU ability will no longer be on the unit). You can use two of these set up to swap the ability sets backwards and forwards.
06-18-2006, 07:21 PM#10
emjlr3
awesome works like a charm ty