| 02-15-2004, 09:40 AM | #1 |
I want to make a simple ability that raises a hero's range by a certain amount every level. As far as I know there isnt really a trigger to do this though. BUT, as I've seen where theres a will theres a way and alot of you guys are more advanced/creative than I. Sooo, with that out of the way, anybody have any ideas? I thank you in advance! -Huh PS- i know ive made alot of posts in last couple of days but this map is like all consuming for me and i keep coming up with great ideas but no clue how to impliment them ^_^ |
| 02-15-2004, 09:52 AM | #2 |
i know a way but it might be not what ur looking for make a ability that gives him say +100 range,call it range, base it off a upgrade or whathave you give it no buffs no icon no text nothing, so u practictly cant see it if u have it... then in the trigger what ever you want it to work on, lets say a spell EVENT UNIT- begins castting ability CONDITION Ability is range thing ACTION Unit- give unit abilitiy - range wait (the duration of the spell?) unit-remove ability hope that helps |
| 02-15-2004, 01:53 PM | #3 |
That won't work You must either: A) Make an upgrade that applies only to your hero, and do a trigger like: E: Hero Learns a skill C:SKill being Learn = Marksmanship(or whatever is your ability) A: Set research lvl of Range Upgrade to ((Current lvl of Range Upgrade) + 1) for (Owner of Learning Hero) But that will make a permanent Range Increase B)Make an ability based of Metamorphosis, make the metamorphed unit have increased attack range and stuff |
| 02-15-2004, 05:11 PM | #4 |
As far as I know, a unit's actual attack range can never be greater than its acquisition range. So if you give the hero an enormous attack range in the object editor, you can increase his actual attack range by modifying the acquisition range in the triggers. |
| 02-15-2004, 07:44 PM | #5 |
true but once u set the range and aquasiation range...soon as u load the map let say ur unit was 2000 range 1000 aq range after its done im sure its sets itself to 1000 range 1000 aq range by default |
| 02-15-2004, 08:12 PM | #6 |
E: A unit begins casting an ability C: A: If then else If: Ability being cast is More Range Then: Set current research level of More Range Upgrade to 1 + (Current level of more range upgrade) Make an upgrade "More Range Upgrade" based off of the NE archer's upgrade. Set it to 100 levels. |
| 02-16-2004, 12:08 AM | #7 |
If i set the target aquisition range to 1000 in the object editor and the attack range to 500, will the unit start out attacking with like a normal 500 range? Also, if i add 50 range per level for 10 levels, every level the range should take effect since the aquisition range is 1000 correct? Correct me if im wrong, I was hoping this would be a solution for me. PS- this ability is supposed to be a permanent upgrade, not something thats activated. Its a passive ability for my hero that every level boosts attack range by 50 so at level 10 the hero has double attack range. Oh ya, another question. What's a good dummy spell for this ability? The ability is going to be like i said, a passive upgrade type ability. Can't think of any good dummy abilities tho... |
| 02-16-2004, 09:17 AM | #8 |
Yes, Then if you're doing a simple passive permanent range-boosts to your hero, then the easiest thing to do is, as MysticGeneral to: 1) Create a Upgrade in Upgrade editor based on Marksmanns range-upgrade, that raises range by whatever you want (50?), and let it have as many levels as you want too. 2) Edit your hero to "use" this upgrade in the Unit Editor (there is a field for this) 3) Give the hero a dummy-skill based on something like evade or sumtin. 4) Create a trigger that runs every time a player spends a skill point in that hero, and condition it to just run if he's raising your evade-dummy-skill. Then in actions, just do sumtin like; Player - Set (MyRange) Upgrade Level to (Current (MyRange) Upgrade Level) + 1 (note that i'm just guessing the action-name, it's there somewhere). then Voila... done Cubasis |
| 02-16-2004, 01:24 PM | #9 |
Actually the new WEU (World Editor Unlimited) Has advanced triggers that allow for changeing most of a units stats in game, including the one you need. http://umswe.wc3campaigns.com/weu/ Theres the link. |
| 02-16-2004, 02:27 PM | #10 |
Actually, weu's advanced triggers increase your map's size a lot, and this could be fixed by using an orb ability and changing the disabled attack 2 from the heroes. |
| 02-16-2004, 03:17 PM | #11 |
I just don't like this approach. Namely because you just can't lower the attackrange once you raised it. (theres no set Upgrade down function). Aquisition range is also problamatic as though he'll only auto attack at that range he still has the capability of if he manually clicks to fire at full distance. |
| 02-17-2004, 06:15 AM | #12 |
What I ended up doing was making a custom upgrade, setting the level, setting up the amount to gain per level. Then i made a dummy skill off a completely disabled critical strike and used a couple simple triggers to check which level the dummy skill was, and then to automatically raise the upgrade level for that custom upgrade. Oh ya I also had to of course tell my unit to use that upgrade in the object editor. -Huh NOTE: The skill has 10 levels, 100 range per level. I set the hero's default range to 500 in the editor, and his aquisition range to 1500 and the skill seems to work fine. My hero has no problem aquiring targets at the proper range (for the level of the skill learned). Was alot easier than I thought, thanks for all the input guys. |
