HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Help needed!How do i set the multi arrow ability to on and off mode?

10-04-2003, 02:58 AM#1
zerorules123
i want to set the multi arrrow ability so that it can be turned on and off.....any help is appreciated! tq:ggani:
10-04-2003, 03:05 AM#2
AllPainful
The only thing I can suggest for that is to base it off of a spell that can be turned on and off (like Searing Arrows), or if you want it to be a manual cast, base it off of Forked Lightning, but change the Sound and Projectile art.
10-04-2003, 03:34 AM#3
zerorules123
but i cant change the projectile of forked lightning..how?
and searing arrows cant fire multiple arrows...so how...?
emote_confused
10-04-2003, 04:50 AM#4
AllPainful
Are you using the TFT WE?

Searing arrows doesn't have a "Number of Targets" setting? Ok... well then that won't work.

Are you SURE you can't change the "Art - Projectile Art" setting for Forked Lightning?

How did you make the multishot ability? Did you use Barrage? Barrage is the best way to make the multishot ability.

All I can suggest is make 2 dummy spells, one for off, one for on, and then make 2 tiggers.

Code:
Trigger Turn on Multishot
Event:
  Unit cast a spell
Condition:
  Spell being cast equal to "Turn on Multishot"
Action:
  Remove ability "Turn on Multishot" from unit(casting unit)
  Add ability "Multishot" to unit(casting unit)
  Add ability "Turn off Multishot" to unit(casting unit)

Trigger Turn off Multishot
Event:
  Unit casts a spell
Condition:
  Spell being cast equal to "Turn off Multishot"
Action:
  Remove ability "Turn off Multishot" from Unit(casting unit)
  Remove ability "Multishot" from Unit(casting unit)
  Add ability "Turn on Multishot" to Unit(casting unit)

You can even condense those 2 triggers into 1 trigger using IF/Then statements.
10-04-2003, 05:29 AM#5
311
its impossible. Look at my topic adding mana through triggers. Its all about making multi arrow, yet nobody has found a way yet :(. Based of barrage = crap cuz u cant set mana or cool down. My best char. in the game is going to have to be removed cuz shes to overpowerd :(
10-04-2003, 06:06 AM#6
Supra God CrK
sigh 311 i just finished pm-ing you how to make mana. basically it is a very hard process and if you want to know how ask 311 if he still has my pms to him. if so tell him just send them all to you. it was quite a few because my first couple were just guesses and my last one that is correct builds on those so you will need them all.

basically you can do what he said up above but if you want ur spell to have levels you will need a little bit more. and if you don't have we unlimited than it will get hard and you will have to edit custom text which might confuse you but i did it all for 311 in my last pm. just pm him asking for my pms to him. and if that isn't confusing enuff than iu don't know what is.
10-04-2003, 07:24 AM#7
Supra God CrK
ok basically this are some things i sent to 311 on how to make the multi shot have a mana cost and a cool down too, but you have to cast them manually it is not a turn on and off type of thing. you have to press the button to cast. if you would like to do this all you do is give the dummy spell the cooldown and mana cost and do these triggers....

btw i would not recommend basing the dummy spell off of immolation. i'm not sure if it would work that way. that was 311's idea. i say go with a spell that requires a target like firebolt.

event: unit learns skill
condtion: learnd skill = to immolation dummy spell
action: set multiarrow = multiarrow +1

^see it only adds plus 1 when you level the spell up. not when u use it. than it will keep all spells at this level untill you level it up again. than it will add one more point and so on.

trigger2

event: unit begins casting ability
conditon: ability = to immolation dummy spell
action: remove immolation dummy spell from casting unit
action: modfiy hero skill points add (multi arrow points)


action: add multi arrow skill to casting unit
^this should be blizzard not multi arrow you will change it to multi arrow through custom text


action: for each interger from 1 to multi arrow do learn blizzard
action: order casting unit to attack ?????? (who do i put here)
^random unit within range 600

action: remove multiarrow from casting unit
^this should also be blizzard and will be changed throgu h custom text

action: add immolation dummy spell
action: modify hero skill points add (multi arrow points)
action: for each inter from 1 to(multi arrow) do learn immolaton dummy spell


and after you do these changes it should be perfect. but basically i don't know how you could have even put multi arrow in those places in the first place because that is the whole reason we are doing the custom text thing in the first place.

this is how do change the spell with custom text...

step 1-
SAVE!!!!

Step 2-
create the trigger i gave you previously with everything the same except make it learn the hero spell blizzard instead of you multi arrow. DO ALL OTHER STEPS THE SAME AND MAKE THE LOOPS AND ALL OF THIS AS IF MULTI ARROW WAS BLIZZARD. basically make your unit have the dummy spell and replace it with blizzard but just make the trigger as if blizzard is multi arrow.

step 3-
edit a hero unit to only have one spell which is ur multi arrow and highlight the hero abilites field

step 4-
go to the top of you unit editor and select view. go all the way to the bottom and you will see it say display as raw data and that will be unchecked. click it.

step 5-
ok now go to the field you have highlighted which is your hero ability and there should be 4 letters there. write them down you will need them.

step 6-
go back to view and uncheck the view as raw data by selecting it again. everything should now be back to normal.

step 7-
now repeat the steps for the spell blizzard...give it to a hero and write down the letters just in case you get confused. make sure you know which is multi arrow and which is blizzard.

step 8-
here comes the very hard part. your trigger MUST be already created and finished by now. if it is not you will screw everything up. first select your trigger and highlight the line where it has the blizzard spell in it so you don't lose track of it. now go to the top of your trigger editor and select edit. scroll down untill you see convert to custom text and select that. ok i know everythnig looks really crazy but dun worry u got it all done already.

step 9-
find the 4 letters that match your blizzard spell that you have written down. i think they should be 'AHbz' but i don't know for sure so its a good thing you wrote them down. now that you have found those letters replace them with the 4 letters of your multishot spell and you are all set. make sure you get rid of all the blizzard letters because you don't want to actually have a blizzard spell instead of multishot.

step 10-
jump up and down and up and down because you finally did it. and now you can tell people **** i can do jass so i know you can. enjoy and tell me if it doesn't work. it damn well better this was no easy solution.

IF ANYTHING IS UNCLEAR ASK ME TO CLEAR IT UP...THIS WAS JUST A COPY OF MY PMS AND MAY NOT MAKE SENSE
11-15-2003, 09:59 PM#8
RicFaith
Hi, I've been reading through the posts related to the multi-arrow topic, and I do understand the flow of the code, but I can't seem to get it to work.

The gist of it is:

<when player uses dummy skill (I used fireshot as you mentioned)>
- remove dummy
- add X points
- give real skill and give X levels

- attack random char in range matching IsUnitEnemy

- remove real skill
- add X points
- give dummy and give X levels

Did I get it right? I did the 1st trigger where you store X into a variable too.

A few questions then:
1) The real skill is barrage right? Do i have to do any thing to it?
2) There's no cooldown because when the dummy skill is returned, the skill is active and available.
3) My Archer doesn't attack, instead she just walks in the direction of the unit she was targeted at. And that's not a wise thing when there's a bunch of monsters oui, non?

3) I was thinking, would it be possible if:

- Creating the barrage skill as a hidden skill that is given and taken away, just allowing you to attack once with it. This way we don't have to remove the dummy at all, and the cooldown should stay? (er. how do I do that anyhow? :D)

- If all this works, I'd like to make a on-off version of multi-arrow as well and I figure the only thing is "What is the event & condition that we should use to check if the dummy spell is turned on/off?" I think I've tried all of the different events but didn't get triggered. (Instead, it triggered when I selected a target) Oh btw, I was using Searing Arrows for this.

Thanks for your response(s) in advance :D