| 09-15-2003, 06:57 PM | #1 |
Is it possible to Combine the Avatar with the Healwave or another Spell that can be placed on another Unit? I mean: When my Hero casts Avatar on another friendly unit, this Unit gets the Effect. (Bigger, more Health points, more defense Points etc.) And how to enhache the effect of growing the Avatar spell? Thanks, Meister_Li |
| 09-15-2003, 07:24 PM | #2 |
I don't think you can cast avatar on another unit. It's an order without a target. I also don't think you can combine spell effects, it just doesn't work that way. What you could do is use triggers to produce similar effects to what you are looking for. For example, to have an avatar look twice as big as it normally does, set up a trigger based upon the event "when a unit is issued an order with no target, order=avatar", with the condition that ordered unit-type is the unit-type of the unit with the desired super-avatar spell, and an action to change the unit's size, found under the animations actions. You'll probably want to use a loop to make the transition to the larger size look smooth rather than sudden, and add a second loop after a "wait" command set to the duration of your avatar spell to restore the size to normal after the avatar wears off. To produce a second spell effect, you probably need to add a dummy unit somewhere to actually cast the spell you want on the target of the avatar through order-triggers, or simply produce the effect with more triggers. |
| 09-15-2003, 08:05 PM | #3 |
you might just be able to use a trigger to give the target Avatar and force it to use it. But you might have to make a copy of Avatar and make it a unit ability and use that in the trigger. If i'm right, couldn't you just make a new spell based of healing waving, give the target avatar, and force it to use avatar. |
| 09-15-2003, 08:55 PM | #4 |
Another Problem: You can only set as an event "Unit" casts a spell not a specific!!! How can I make that? (I'm a beginner you see) |
| 09-15-2003, 08:59 PM | #5 |
Event: Unit - A unit Begins casting an ability Conditions (Ability being cast) Equal to Avatar (Neutral) |
| 09-15-2003, 09:50 PM | #6 |
If I'm not mistaken, Avatar isn't detected by the "cast an ability" events (at least it didn't when I've tried in the past, maybe it was user error ://// ). Use the order detection events instead. The order string for Avatar is "avatar". |
| 09-16-2003, 02:46 AM | #7 |
Another method would be to use some spell that you cast on a unit and then have the triggers: Variables Integer avatarSize = 100 IntegerArray avatarStats[2] = 0 Unit avatarUnit = noUnit Integer avatarCount = 0 avatarCast Events- a unit is issued an order targeting an object Conditions- (issued order equal to (<your dummy spell order here>)) (ordered Unit equal to (units of type(<your hero here>) Actions- set avatarSize = 100 set avatarUnit = (target unit of issued order) set avatarStats[1] = (avatarUnit(maxLife)) set avatarStats[2] = (avatarUnit(maxMana)) TurnOn(avatarActions) wait X seconds Animation change unit size (avatarUnit(100%,100%,100%)) set life of avatar unit (avatarStat[1]) set mana of avatar unit (avatarStat[2]) Initially off avatarActions Events- Every .1 seconds of game tieme Conditions Actions- set avatarSize = avatarSize + 10 Animation change unit size (avatarUnit(avatarSize,avatarSize,avatarSize)) set avatarCount = avatarCount + 1 if(avatarCount greaterThan or equalTo 10) { set avatarUnitLife(<the value you want>) set avatarUnitMana(<the value you want>) TurnOff(this trigger) } If you think I missed something just point it out, it is off the top of my head but it looks correct |
| 09-16-2003, 03:04 PM | #8 |
Big thanks to all! |
| 09-16-2003, 03:41 PM | #9 |
(ordered Unit equal to (units of type(<your hero here> ) <- How can i make this?! |
| 09-16-2003, 11:16 PM | #10 |
boolean comparison (ordered unit (is in unit in unit group (unit of type ( <select your unit>)))) equal to true I think that is what it is, if not just post |
| 09-19-2003, 09:35 PM | #11 |
first of all: Thanks to all who had helped me. I've been on a school trip for three days, so my answer is a bit too late, sorry. And Secound: Is there any possibillite to make a real growth animation like the Avatar abillity does? And is it possible to incrase the Avatar growth effect? |
| 09-20-2003, 06:35 AM | #12 |
The 'Area of effect' field for the Avatar ability is the value used when scaling the MK. I don't know whether it's stored as 'grow to this size' or 'grow by this size', but if it starts with a '1.', it's safe to assume the former, and vice versa. |
| 09-20-2003, 06:57 AM | #13 |
The trigger method I specified above is a real growth method, the unit will grow in just the same fashion that avatar does, you can't even tell the difference. It is actually done the same way (programming wise) avatar is except it is in JASS, not C++. |
| 09-20-2003, 06:37 PM | #14 | |
Quote:
Hmmm... maybe i've done something wrong? In my Version, the Unit instantly grows to the named size! |
| 09-20-2003, 08:41 PM | #15 | |
Quote:
It isn't woking! Should I change the Data in a Spell editor? In WE, it hasn't any effect! Or must it be a specified Data? |
