| 08-06-2005, 06:34 PM | #1 |
Hi, I am trying to get the following effects: Effect 1: This spell will allow a unit to damage things near him, while having a mana shield on (leaving him unharmed). The spell also leaves him immobile. I was thinking of having the base spell as Immolation, and then having the Mana Shield given to him whenever he uses it. Will this work? Or does he have to activate mana shield whenever he uses Immolation. Can I make it so that the Mana Shield is always on? Effect 2: If this unit learns a spell, he gains another passive (Evasion). I want it so that the Evasion icon is invisible, or not shown on the unit command box. Currently, it pushes another spell out so it is unusable. I have tried to screw with the button positions, but nothing seems to work. How do I have it where the spell appears invisibly? Can someone help me? |
| 08-06-2005, 06:36 PM | #2 | |
1. You can make a dummy unit when the caster casts mana shield, and give that dummy unit immolation. when the mana shield is off, remove the dummy. 2. Give your caster the Evasion (item) based skill, it is invisible. Quote:
|
| 08-06-2005, 07:20 PM | #3 |
Thank you so much... But that leads to another problem: How do I make it so that he loses a percentage of his mana? You see, Mana Shield doesn't drain mana like Immolation, so he could have it on forever. I want it so that its the other way around. Could someone teach me how to take away percentage or value's of a unit's life instead of just setting it to a value? |
| 08-06-2005, 07:32 PM | #4 | |
BTW, you have to move the dummy unit with the immolation to the location of the caster at least every 1 second with a trigger. For your question, look for Unit - Set Mana (To Percentage), and play around with it. You should do something like Unit - Set YOURUNIT's percentage mana to YOURUNITs' percentage mana MINUS YOURUNITS' <x> percentage mana. Use Arithmetic to achieve that. just do it every x seconds if you'd like. Quote:
|
| 08-06-2005, 07:35 PM | #5 |
Yes, it works, but I'm running into a problem... If I have more than one unit with Immolation set to ON, then the dummy unit won't know which one to teleport to :( Also, playing around with the set mana thing, I'm having some trouble. This is the trigger I have: Event: A unit finishes a spell Conditions: Ability being cast equal to Ability X Actions: Set mana of Target Unit of Ability being Cast to 0.00 For some reason this doesn't work. I want it so that when Unit A finishes casting this spell (it has a 2 second casting time), the target will lose all its mana. Help? EDIT: after playing around with it a few more minutes, I found that I can subtract an amount from the current life of triggering unit... But I'm still baffled about why the above effect doesn't work. Can you help me out? Is it my conditions? EDIT 2: after further testing, it seems that the Evasion (ITEM) spell is invisible ONLY when everything is learned. Otherwise, it appears as a normal evasion icon with a Tooltip Missing! for the name. Which would be fine, except I can't find where to fill in the name! |
| 08-06-2005, 08:46 PM | #6 | |
Eh?? What do you mean you have more than one unit with immolation.. First of all i am talking about Permanent Immolation so you dont even have to set it to On. Second, you said you wanted to make a caster hero to set a mana shield with immolation, so there's only 1 caster to move the dummy to each second.. MOVE THE DUMMY to the CASTER position, not to a TARGET! immolation will damage nearby units, depending on the area of effect you set! About setting the caster's mana to 0 when the spell is finished, why did you put Set mana of Target Unit of Ability being Cast to 0.00 ??? Why target unit of ability being cast???? Change it to "Casting Unit" If you add an Evasion item, dont set its icon. Its automatically invisible, just change the values. Quote:
|
| 08-06-2005, 09:04 PM | #7 |
no, no, I want the TARGET to lose all it's mana. But the target doesn't lose ANY mana. Thats why I'm questioning why it doesn't work. Also, if I have more than one hero, I'll need more than one dummy. I'm really confused on how you want to do that heh :( Lastly, I didn't set the item evasion to anything. It just came there using a normal demon hunter evasion icon :( All I did was change the name and the value, and it popped up :( |
| 08-07-2005, 07:01 PM | #8 | |
You are obviously dont know what you want to do. Read what you wrote above, and what I wrote. I told you how to make the target lose all its mana, and it has nothing to do with a unit. The dummy is for the immolation for the caster when he casts mana shield. If you mean that you got an ability which u cast on a unit then he gets mana shield and immolation, than you did not state that in your thread. Just do this: Create a dummy when the spell is casted, give him immolation, and move him to WHOMEVER you want to have immolation when the spell is cast. Set a trigger of every 1 second move the dummy to the target, and set a trigger which sets its mana to 0. What is so hard? And no, I use evasion(item) and it has no icon on my map. Quote:
|
| 08-08-2005, 01:36 AM | #9 |
sigh, heh, sorry mate... i am kinda new (of course, you already knew that a few things: The icon for evasion (item) shows up. maybe its because i edited the name and value? I will test that asap. The damaging all units around the guy with immolation and mana shield thing... Is this how the spell works? A unit (any) casts mana shield A dummy unit (with a large permanant immolation, ground, invisible, unselectable, etc. etc.) is created and moved to casting unit when the spell turns off, the dummy unit is killed and removed is that what you're asking me to do? I want to make a new spell effect. It will be a spell that causes damage, and drains all mana from the target. This is what I have: Code:
events unit - a unit Finishes casting an ability conditions ability being cast equal to Ability X actions unit - set mana of (target of ability being cast) to 0.00% but for some reason, the action doesnt take place. I have put in a text message to try and diagnose it. I have confirmed that the event and condition DO trigger, but the action doesn't do anything :( help (btw mate, thanks for all the time and energy to help me heh) EDIT: for some reason, Evasion (ITEM) still shows up. maybe i'm doing the trigger wrong? what would get it to show up :( Code:
Events: Unit - A unit learns a skill Conditions: Learned Hero Skill equal to Ability X Actions: Unit - Add evasion (item) to triggering unit something wrong? |
| 08-08-2005, 02:09 PM | #10 |
The super imbalanced mana drain spell doesn't work because you use the finishes casting event, that event doesn't have the target event response for some reason, also, it's unreliable (unless you're using it on a channeling spell) because on normal spells it happens after the unit finishes all it's spell animations, but the spell itself is cast before that and if the unit is issued a new order between the spell effect and the finish of the casting, the trigger won't even fire. Use "starts the effect of an ability" or something else. A method for iconless passives has been discovered by Lord Vexorian some time ago, if you put the passive ability in a spellbook ability, and with a trigger disable the spellbook ability for the player, and give the spellbook to a unit, it won't show it's icon due to being disabled, but the passive ability inside will still work. You got the system with the immolation/mana shield right, but it would be easier to just giv permanent immolation to the hero instead of creating a dummy unit to hold it. With the method described above, you can get it without showing any icon. Just give it to the hero when he turns the mana shield on and take it away when it's turned off. You can decrease mana with time on the mana shield using a periodic trigger that decreases the mana of all units on the map with the mana shield ability's buff. |
| 08-08-2005, 05:20 PM | #11 |
will that work for all passive spells? also, how do i 'disable' a spellbook? thank you so much, my super imbalanced mana drain works now! i'm having trouble with the manashield/immolation thing though :( what happens is, the turning ON is all good. He gets permanant immolation and everything. However, it doesn't even show, because i can't find the right event for turning OFF. So he begins casting (turns it on) and finishes the effect/stops casting (finishes turning it on), and the thing turns off. What would be a better event for him DISABLING mana shield? |
