HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Replacing Unit but keeping skills

10-23-2004, 06:39 PM#1
GosuSheep
ok so... when a whitesheep goes to this Beacon it saves ure experience

Set EXP = Experience of [Triggering unit]

then it replaces the unit and gives THAT unit the experience

Replace Triggering Unit with BlackSheep
Set experience for [last created unit] to EXP

but how do i make it so the hero ablities (saying that the whitesheep and blacksheep have the same hero abilities) on the new blacksheep unit are the same as the player selected on the whitesheep?

the only problem im having is saving the skills that the whitesheep got...

replies are greatly appreciated
10-23-2004, 06:43 PM#2
HexenLordX
Quote:
Originally Posted by GosuSheep
ok so... when a whitesheep goes to this Beacon it saves ure experience

Set EXP = Experience of [Triggering unit]

then it replaces the unit and gives THAT unit the experience

Replace Triggering Unit with BlackSheep
Set experience for [last created unit] to EXP

but how do i make it so the hero ablities (saying that the whitesheep and blacksheep have the same hero abilities) on the new blacksheep unit are the same as the player selected on the whitesheep?

the only problem im having is saving the skills that the whitesheep got...

replies are greatly appreciated

Well I know how to do it one by one. First action in the trigger, set a variable equal to the unit that is about to be replaced. After you replace the unit, do an action like this one:

Unit - Set Level of Mana Burn for (Last replaced unit) to (Level of Mana Burn for (First Unit)
10-23-2004, 07:54 PM#3
logik
use the chaos ability... easy - keeps abilities, levels, exp, health... it changes the dmg and stuff etc.


just use chaos... have a trigger that, lets say enter the region.

unit enters becon<gen>

if
unit = white sheep

then
unit give ability - sheep chaos