| 04-12-2007, 10:51 AM | #1 |
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 |
| 04-12-2007, 06:41 PM | #3 |
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 |
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 |
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: 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? |
| 04-13-2007, 01:37 AM | #6 |
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: |
| 04-13-2007, 04:20 AM | #7 |
But still... that option will still be limited. but thanks anyway. |
| 04-13-2007, 04:31 AM | #8 |
What do you mean limited? |
| 04-13-2007, 07:53 AM | #9 |
![]() 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 |
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 |
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 | |
Quote:
|
| 04-13-2007, 12:36 PM | #13 |
Thanks, Sorry for being a newb. |
