HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trying to Replace old ability trouble - Help! Points if u can help...

12-26-2003, 09:03 PM#1
sirk
well, what i want to happen is this:
After researching something, a new hero ability replaces another ability. the old one cant be used again.
What actually hapens is this:
after researching the research, nothing happens. help! oints for the person who can help!
12-26-2003, 09:23 PM#2
weaaddar
My synergy map does something just like this.

http://www.wc3campaigns.com/forums/a...?postid=340841

I can only say without the trigger we have no idea what you did wrong.
You can see my map it might be what you need. It may also not be at all.

I didn't catch the hero ability part. If thats the case: YOU CAN NOT ADD HERO ABILITIES.
12-26-2003, 10:55 PM#3
Scarlet-Russian
yyou probably used the same ability as a base for both. In wc3, a hero can only have ONE ability based off, say, roar. You weren't able to bypass this in the past, but you might be able to now. Just use a different ability as base and that should do it.
12-30-2003, 09:33 PM#4
sirk
well, lets say the ability is storm bolt. wen u finish a research, wat i want to happen is that storm bolt is removed and another spell is put where storm bolt is
12-30-2003, 11:47 PM#5
LegolasArcher
Quote:
I didn't catch the hero ability part. If thats the case: YOU CAN NOT ADD HERO ABILITIES.

Thats most likly your problem
12-31-2003, 07:31 PM#6
sirk
well i based a move of destroyer form for a hero (since the obsidion statue and destroyer have diff abilites) and wen it transforms it still has the same abilities :nono: . maybe i shud just replace the units. it wud help but i want the items to stay. is there any way to make the items from a removed hero go to a newly created hero?
12-31-2003, 07:48 PM#7
Ligature
Use an item array. Use a for loop to hide the items and drop them from the hero being replaced, replace the hero, and have another for loop give the items to the new hero and unhide them.
12-31-2003, 07:52 PM#8
sirk
emote_confused can u just put up an example, im a newbie at this 8))
01-01-2004, 11:36 AM#9
Krakou
This is simpler:
Code:
Replace Hero
    Events
    Conditions
    Actions
        Unit - Create 1 Blood Mage for Player 1 (Red) at (Position of Hero) facing Default building facing degrees
        Unit - Hide (Last created unit)
        For each (Integer A) from 1 to 6, do (Hero - Give (Item carried by Hero in slot (Integer A)) to (Last created unit))
        Unit - Hide Hero
        Unit - Change ownership of Hero to Neutral Hostile and Change color
        Unit - Explode Hero
        Unit - Unhide (Last created unit)
        Set Hero = (Last created unit)
        Selection - Select Hero for Player 1 (Red)
01-01-2004, 03:38 PM#10
Captain Griffen
...you could just use replace hero with same properties (% wise), then it keeps XP and items...
01-02-2004, 10:53 AM#11
Krakou
You'r right, thats good to know, thx.
01-17-2004, 07:07 PM#12
TitanRevamped
i tihnk u can add. i forget tho.