| 05-01-2004, 12:40 PM | #1 |
-How can i cast Spells with triggers??- i want to cast my new created spells like: order <MyUnit> to cast A001 <- in jass ?? help me :( |
| 05-01-2004, 11:17 PM | #2 |
Just enter it in WE as trigger and then convert it to custom text. You will need either the order id or the order string. The ability id is not enough. |
| 05-05-2004, 02:56 PM | #3 |
what i did is that: call IssueImmediateOrderBJ( gg_unit_Hmkg_0000, "A000:AEfk" ) /|\ i changed "thunderclap" into the id of my spell and it doesnt work :( |
| 05-05-2004, 06:41 PM | #4 |
No, becouse that function expects a order-string. Look up your spell in the object editor, scroll down a bit, below "stats - " I think, there are the order-fields, all castable spells have a order assigned to them. So you use the name of the order listed there in that function to make the unit cast it. This is also why you can't put multiple skills based of the same skill on the same unit, becouse then the two skills have the same orderstrings. And, AIAndy do the ById functions then not take the ability-ID? but..a Order-ID? Are these not the same? :O Cubasis |
| 05-05-2004, 07:12 PM | #5 |
if only they were if only they were. For good reference why don't you take a look at Order("attack") and the int value of 'Aatk' |
| 05-05-2004, 07:48 PM | #6 |
... ... ... ... sigh, :( |
| 05-06-2004, 01:26 PM | #7 | |
Quote:
i dont understand what u mean.. :( can u attach an example map where u can cast a spell when u press esc? please in jass plz thx |
| 05-06-2004, 02:31 PM | #8 |
Eh, do this: 1 Open the Object-Editor 2 Go to the Abilities Tab 3 Find and select your spell that you want to cast (A000?) 4 Be sure to not be in Raw Mode (press Ctrl+D if you are) 5 Scroll down...and exactly below the "Text - Name" field of the skill are 4 fields related to "Order String" 6 Write down if neccesary (or just copy) the word that appears in the "Text - Order String - Use/Turn On" field... That's your order... 7 In your trigger, in the IssueOrder line...write this word inside quotations where it expects the orderstring, so it looks like this: call IssueImmediateOrderBJ( gg_unit_Hmkg_0000, "flamestrike" ) // or whatever your field said That's it!, and don't panic at seeing a orderstring of, something else than your super 1337 Dimension Attack skill, as Custom Abilities use the order-strings of the skill you based them off. So if you make a SheepFall of StarFall, then the orderstring of the SheepFall skill will still be "starfall" Cubasis |
| 05-07-2004, 11:22 AM | #9 |
THANKS A LOT!! this was the best explainiation (dont know the spelling^^) of all the posts THANK YOU CUBASIS!! :D :D :D ^_^ :D ^_^ :> |
