| 10-03-2006, 04:22 AM | #1 |
I am attempting to use chaos on a hero to change the unit's model, hp and movement speed. I set one unit to 7000 hp, 225 move speed, and one model, the other is set up with 1000 hp, 522 move speed, and a different model. I went into OE and copied chaos (grom) 2x, one for the first model, the 2nd for the 2nd. I went thru and made a dummy trigger based on Taunt that does nothing, but trigger the spell. Unit starts the effect of an ability Ability being cast equal to Taunt dummy If shipissubmerged = true Then Unit pause Triggering unit call UnitRemoveAbility(u, 'B018') call UnitRemoveAbility(u, 'B01B') call UnitAddAbility(u, 'S002') Unit unpause Triggering unit Else Unit pause Triggering unit call UnitRemoveAbility(u, 'B018') call UnitRemoveAbility(u, 'B01B') call UnitAddAbility(u, 'S003') Unit unpause Triggering unit Where B018, B01B are the only buffs that would affect the unit at this point, and S002 and S003 are the submerges... Now I've tried adding call UnitRemoveAbility(u, 'S002') and UnitRemoveAbility(u, 'S003') at the appropriate places, but what I end up having is a unit that after it submerges, it starts gaining 6k hp every time i use the ability. How do I get around this... Mind you this is a hero that has learned abilities which would be really inconvenient to relearn every time i use the ability. I've looked into the submerges that already exist, and they typically don't work the way i want them to... if anyone can offer a reason why the 6k increase happens and a solution to it I would really appreciate it. |
| 10-03-2006, 10:51 AM | #2 |
You should remove the chaos abilities before adding a new one. |
| 10-03-2006, 03:40 PM | #3 | |
Quote:
I appreciate the response, but did you even read my post? I did try that... same effect. Ok let's try this from a different angle... If I use submerge, instead of chaos, I lose all the learned skills, meaning I have to relearn them. Let's just say that I would prefer to go this way at this point, how exactly would I track that? - Make 5 Triggers one for each ability in an keeping track of 5 BOOLEAN_abilitylearned, then a 5 integers INT_levelofabilitylearned - Make 1 trigger for Unit starts the effect of an ability, (ability being cast) equal to Submerge, then I'm not exactly sure... Would one check if each of the BOOLEAN_abilitylearned are true then hero learn ability and set level of ability to INT_levelofabilitylearned? I don't care whatever method is done... I just would like to get this stupid trigger to work. Thanks. |
| 10-04-2006, 07:55 AM | #4 |
Anyone? |
| 10-04-2006, 10:56 AM | #5 |
I suggest using the tinkers mecha form, it's the only un-timed morph skill that is designed for heros. |
