HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Help with conversion....

04-12-2007, 10:51 AM#1
Nave47
Anyone can help me on how to convert ability names to strings?

Sorry, I don't know jass only basics.
04-12-2007, 11:04 AM#2
akolyt0r
what do you need those strings for ??
hmm

Trigger:
Example
Events
Conditions
Collapse Actions
Set YourString = (Name of (Ability being cast))
Set YourString = (Name of Big Bad Voodoo)

dunno if its that what you need ...if not ...give more details
04-12-2007, 06:41 PM#3
Nave47
Actually will it work with custom spells?


Because What I'm trying to do is. Make a tower cast spells on his own whenever he attacks enemies with his normal attack.

I wish I can show you my trigger. But I don't know how to use that function.

Edit : Thanks I'll go try this now.
04-12-2007, 08:23 PM#4
akolyt0r
hmm you could look at skibis castle td ..it uses that a lot...(find it in your "**\Warcraft III\Maps\FrozenThrone\Scenario\" directory)

but what has this to do with the ability names ?!
04-12-2007, 10:41 PM#5
Nave47
I already looked at skibi's triggers. The towers really don't cast those custom spells but default blizzard spells WITH THE SAME ability ID(the 'AD02' codes). So it would look like it casted the custom spell that the tower has.

Here is my trigger:
Trigger:
Example
Collapse Events
Unit - A owned by player 12 (Dark Green) Is attacked
Collapse Conditions
(Unit-type of (Attacking Unit)) Equal to Tower1
Collapse Actions
Unit - Order (Attacking unit) to <-Here is my Custom Spell-> (Attacked unit)

Ok, Actually the "Unit - Issue Order to attacking unit" is limited to default blizzard abilities. New problem is :

How can I make a tower cast a spell whenever it attacks a unit normaly?

will this work?

Trigger:
Example
Collapse Events
Unit - A owned by player 12 (Dark Green) Is attacked
Collapse Conditions
(Unit-type of (Attacking Unit)) Equal to Tower1
Collapse Actions
Set YourString = (Name of <-Insert Custom spell->)
04-13-2007, 01:37 AM#6
Pyrogasm
Oh! I see what you're not understanding:

When you create a custom spell, to order a unit to use it, you simply order it to use the spell it was based off of.

If, for example, you make a custom spell based off of slow that speeds up the target instead, you would do this:
Trigger:
Collapse Events
Unit - A owned by player 12 (Dark Green) Is attacked
Collapse Conditions
(Unit-type of (Attacking Unit)) Equal to Tower1
Collapse Actions
Unit - Order (Attacking unit) to (Human Sorceress - Slow) (Attacked unit)
04-13-2007, 04:20 AM#7
Nave47
But still... that option will still be limited. but thanks anyway.
04-13-2007, 04:31 AM#8
Toink
What do you mean limited?
04-13-2007, 07:53 AM#9
Nave47




And this is the reason why I wanted to know how to convert ability names to strings.



Edit : I'm using WEU btw
04-13-2007, 08:06 AM#10
akolyt0r
you dont need the ability names for that, but the order strings...(for example ...the oder string of "dispel magic" is "dispel". those order-strings are displayed in the object-editor)

the first possibility does exactly the same !
04-13-2007, 08:50 AM#11
Toink
You don't need those shit, just checkout the ability data fields and you'll see a 'String - OrderId' or something like that. Spells based off storm bolt will use the 'stormbolt' orderstring, spells based of shockwave will use 'shockwave'.
04-13-2007, 09:09 AM#12
Pyrogasm
Quote:
Originally Posted by Toink
spells based off storm bolt will use the 'stormbolt'
Actually... the orderid for Stormbolt is "thunderbolt".
04-13-2007, 12:36 PM#13
Nave47
Thanks, Sorry for being a newb.