HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

make ability to adjust range

01-05-2005, 11:09 PM#1
Raptrex
how can i make 2 abilities (up and down) to adjust the range for the ability to fire a attack like in tank wars?
01-05-2005, 11:43 PM#2
GreyArchon
Quote:
Originally Posted by Raptrex
how can i make 2 abilities (up and down) to adjust the range for the ability to fire a attack like in tank wars?

Yes. Modify Bear Form. Make both the (normal) and (bear) version of your unit look exactly the same, only with different ranges.

If somehow, this doesnt work (but it should), and your unit is a hero...

Make one a Critical Strike ability, without bonusses. Make the other an Evasion ability, without bonusses. Now use triggers to detect when one is leveled up. For each level, use triggers to research a modified "attack range bonus" upgrade, similar to the ones NE archers and human riflemen have. Be sure to give the upgrading unit both research abilities. When one is leveled up, down-research the other one (set level 0). And vice versa. Make a secondary trigger to set the levels of your evasion/critical strike to 1 all the time, so you can keep on upgading it.

... But bear form should work.
01-06-2005, 03:57 PM#3
HEZZA
OR simpliar, you could do this:

Set your units range to the max you want it to be....for ability up....say 1000

and set your aquistaion range for your unit to the one you want it to start at...say 800

Then make 2 triggers, one for each ability so for the one where you want your range to be higher youd do:

Event: Unit - begins casting ability
Con: ability equal to Range UP
Actions: unit set aquisition of (casting unit) to 1000

Then for the other do this:

Event: Unit - begins casting ability
Con: ability equal to Range DOWN
Actions: unit set aquisition of (casting unit) to 400


of course thats an example but it will work.
01-07-2005, 01:28 PM#4
Kalvorod
But, ofcourse, if you want it the way that actually did it in tank wars, do the thing that Hezza said, but instead of setting the ranger to 400 and 1000, it should look like this.

(For the raise up)
Condition- Variable ((Unit) attack range)<1000)
Set Attack Range= Arithmatic(Attack range of (unit)+ (100))

(For the lower down)
Condition- Variable ((Unit) attack range)>400)
Set Attack Range= Arithmatic(Attack range of (unit)- (100))
01-08-2005, 12:51 AM#5
Quickshok
at th15's site he explains how he did the firing system in tank wars

the link is as follows: http://th15.dark-halo.com/war3/
01-08-2005, 12:53 AM#6
Raptrex
Quote:
Originally Posted by Kalvorod
But, ofcourse, if you want it the way that actually did it in tank wars, do the thing that Hezza said, but instead of setting the ranger to 400 and 1000, it should look like this.

(For the raise up)
Condition- Variable ((Unit) attack range)<1000)
Set Attack Range= Arithmatic(Attack range of (unit)+ (100))

(For the lower down)
Condition- Variable ((Unit) attack range)>400)
Set Attack Range= Arithmatic(Attack range of (unit)- (100))

would it be condition or action?
01-08-2005, 01:08 AM#7
Taur
in WEU, there is a simple action that will increase and decrease range.
01-08-2005, 01:20 AM#8
Raptrex
well ok this is what i got

a hero with the abilities + Range and - Range (there both battle roar unchanged)

then i got my triggers (i couldnt not find the exact text so i found something silmilar)

Event: Unit Baller <gen> Begins casting ability
Condition: (Ability being cast) Equal to + Range
Event: Unit - Set Baller <gen> acquisition range to ((Current acquisition range of
Baller <gen> ) + 100

same with - Range but changing +Range to -Range

and it does not work

is it because + and - Range are both battle roar?
01-08-2005, 08:04 AM#9
Panto
Well, that's your first problem. Base them both off of Channel with Data - Options set to have Visible checked and different Data - Base order strings.
01-08-2005, 03:27 PM#10
Raptrex
Quote:
Originally Posted by Panto
Well, that's your first problem. Base them both off of Channel with Data - Options set to have Visible checked and different Data - Base order strings.

i cant find the data - base order string

i found level 1 data base order id - channel

do i change that? and to what?
01-08-2005, 05:09 PM#11
Panto
Yea, that's the one. Change it to whatever you want, just so you don't have multiple abilities with the same order id on a unit.
01-09-2005, 05:05 AM#12
Raptrex
ok do i have to use Channel because when i cast it , the options for my hero goes away (move, stop , attack ect.)

and it still doesnt work

Event: Unit Baller <gen> Begins casting ability
Condition: (Ability being cast) Equal to + Range
Event: Unit - Set Baller <gen> acquisition range to ((Current acquisition range of
Baller <gen> ) + 100

could someone check that?
01-09-2005, 03:07 PM#13
Panto
You need to edit the Channel ability to do what you want. Another option on the spell is "Disables other abilities", which you want to be false, of course. You'll also want to change the follow-through time (I think), it's originally 180.00, which means the unit will channel for three minutes.