| 08-15-2004, 08:53 PM | #1 |
Okay I know this sounds super newb-like. I have a building that does damage, but I need to cast Banish on the unit it attacks every time it attacks. That way it attacks the unit once and can't attack it again (it doesn't have magic damage.) This sounds stupid/weird/newbular I know. But the building does 1 damage every 10 seconds. Yes, that's very low considering the heroes in this map can deal up to 10 damage at 0 cooldown. Well anyways, the building permanently stuns a unit (err, more like 3600 seconds/60 minutes/1 hour...) but since it has such a long cooldown time, I don't want it to waste it's time trying to kill the unit it just stunned. So I need it to cast Banish when it attacks. That way, it attacks the unit once, but it can't attack it anymore because it doesn't have magic damage. So then it moves on to the next unit. Stuns it, then attacks another unit. So on and so forth. The problem is, Banish is a hero ability that isn't passive, meaning you have to click it or use the hotkey B, then click on a target enemy or area. I need it to be like Bash, whenever you attack, the ability is executed. Sorry for the long and somewhat undiscriptive post. |
| 08-15-2004, 08:59 PM | #2 |
Welll that would be just like any hidden caster spell... order a hidden caster to cast banish on the target |
| 08-15-2004, 09:36 PM | #3 |
Or u can just use a modified orb of lightning (new) and have it 100% chance to cast banish. And make sure that banish has no cool down and cost no mana (unless u want it to cost mana) |
| 08-15-2004, 10:13 PM | #4 |
Or... you could to like this: Trigger: Events Unit - A unit is attacked Conditions (Unit-type of (Attacking unit)) Equal to "Your lovely tower" Actions Wait 2.00 seconds Unit - Order (Attacking Unit) to Human Blood Mage - Banish (Attacked unit) That is how we want it to look like... You will find that specific event under this section: Unit - Generic Unit Event And the condition: Unit-Type Comparison And the action: First one: Wait (too simple thou :p) Second: Unit - Issue Order Targeting A Unit so... hmm... the wait action is nessecery becouse without it your tower will only do the spell becouse of that it wont got the time to attack. hope this will help you. if not i can always make a map with only that stuff on it :) btw. one other thing to do is to edit the banish ability (dont make a new one) so that it is an ability for units (not heros) and the mana req and the cooldown and so on and so on... Good Luck! |
| 08-15-2004, 11:16 PM | #5 |
Wolf Boy's solution is the easiest. Edit the Banish ability, not the Orb ability, to display information for the owner of the building. |
| 08-16-2004, 11:07 PM | #6 | |
Quote:
My idea is super easy ^^ |
| 08-17-2004, 03:13 PM | #7 |
Ondiz ur sollution means the tower needs to have the banish ability... maybe he doesnt want the tower to have banish castable?? =/ I say use vexorians casting system for hidden caster stuff, that system really rocks... |
| 08-17-2004, 04:44 PM | #8 |
Yeah, but you don't need any casters here, any triggers. The orb of lightning or orb of slow abilities do all the job (just remember, the orb ability doesn't display it's tooltips, but the tooltips of the spell it can cast on attack). Alternatively, you could use unit classifications to get the no-attack-an-already-attacked-unit. Just add a classification like "aincent" to any unit that is stunned, and make the tower only be able to target non-aincents. |
| 08-17-2004, 04:52 PM | #9 |
Can anyone tell me how to do the orb way? I still don't understand. It's not working for me. |
| 08-17-2004, 05:50 PM | #10 |
Actually, Orb of lightning is the best solution and the faster one Game execution wise. Case closed |
| 08-17-2004, 09:50 PM | #11 | |
Quote:
yeye, but my works aswell, doesn't it? :P |
| 08-18-2004, 12:33 AM | #12 |
Anyone know how to do the orb ability way? I am very confused. |
| 08-18-2004, 04:57 AM | #13 |
Okay, you go to Items, then find the Orb of Lightning (new). It has a chance to cast a spell, which is normally Purge. Change that to the ability you want. (I changed it to Banish) Now make a trigger. Here is what I did, because mine is a building. If it was a regular unit, (not a building) you would use "A unit is Trained" and "Trained Unit" instead of "A structure is finished" and "Constructed structure." Here is the trigger: AutoCastBanishItem Events Unit - A unit Finishes construction Conditions (Unit-type of (Constructed structure)) Equal to "The Building You Want to Cast Ability" Actions Hero - Create Orb of Lightning and give it to (Constructed structure) |
| 08-18-2004, 10:48 AM | #14 |
You really don't need to give it an item. Just make an unit ability based on the item one and give the ability directly to the structure. |
| 08-18-2004, 11:04 AM | #15 |
Heres my preferred way: Take the Orb of Lightning (New) spell from the items area, turn it into a unit spell and make it have a 100% chance to cast banish. Now make a unit version of banish with 99999 range, no cooldown and 0 mana cost. Make the above ability that you made out of the OoL have a 100% chance to cast this. Edit your building in the unit editor and give it the Orb of Lightning ability (not the banish one) and your done, the banish icon will show up as disabled and you wont be able to click it, so you can put a tooltip or something there. |
