HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Any ability activated from a trigger!

12-21-2002, 08:02 AM#1
Xaran Alamas
Ok yesterday I discovered something:D
I found out you cna activate ANY ability (haven't tested custom ones yet) from triggers! Ok what I did was I converted one of the existing issue order etc triggers with a normal ability and converted it to text I found in the text a bit in quotation marks which was the order (like in one of the txt files associated with custom abilities. Then I remembered that all abilities have an order setting 0_o So I then decided to test my theory, first I decided on a spell which you can't normally fire with a trigger in this case uproot. Ok I found out the order of uproot then copied it then made a trigger Unit, Issue order with no target. For this one I made the event was when I typed "uproot" it would do some dummy command. Now I converted it to text found where it said "stop" (the ability I did) and replace that with "unroot"
Then I did another one which was unit issue order targetting a unit and targetting the tree of life, this time with the event chat message "root" do the same as above but replace the dummy command with "root" ok now I test the map type uproot and the tree of life uproots, root and the tree of life roots:D

I'm not sure if this will work with custom abilities because I seem to recall they need to use an existing order but maybe as long as a unit doesn't have two spells with the same order it might work but as I said I haven't tested that yet. I will continue to experiment.

Check the attached map for the example.
12-22-2002, 08:10 AM#2
Xaran Alamas
any comments?
01-04-2003, 06:12 PM#3
Xaran Alamas
I see there are 7 downloads but no comments :abomhuh: whenever anyone else makes a discovery there seems to be lots of replies but when I discover something anything? NOOOOO :(
01-04-2003, 09:32 PM#4
Holimion
Well it's cool to know that... let's attack with our auto-uprooted ancients!!!!! :ggani:
Me: "attack"
Ancients: ok. uprooted ancients walking to the enemy... the enemy is dead now :)
:////
01-05-2003, 07:32 AM#5
Xaran Alamas
exactly, it could have loads of uses :ggani:
01-05-2003, 03:11 PM#6
ChronOmega
ya tell this to the commander mod they could probaly use it
01-05-2003, 06:29 PM#7
Xaran Alamas
will do
01-05-2003, 06:38 PM#8
Guest
I'm too lazy to download it, but does it have the golden spin stuff?
01-05-2003, 06:41 PM#9
Xaran Alamas
golden spin? nah this is just a test map which makes trees root and uproot through triggers, hmm maybe I should make one with every single ability in the game
01-08-2003, 09:06 AM#10
FM_TertiaryEye
Hey Lord Loony,

Good work, this is very useful, and its kind of sad that these guys have yet to see the value in that.

Uprooting / rooting trees for cinematic purposes is a good thing to do, you could have your ancients move in on a map and plant themselves for a starcraft style classic start. But thats just one example of course.

Btw i dont know about custom spells in this either, but i do know that the AI will use custom spells if it has to by determining the value and effects of the spell (just an unrelated tidbit).

I do have a question though, does anyone know how to detect when a custom spell was used? Im going beyond standard spell editing and trying to enhance them with triggers. If anyone has this info it would be MOST useful. :D

Basically im just trying to get custom made spells to run their own trigger in my map.

Thanks Loony, and thanks to whoever responds.

FM_TertiaryEye
01-08-2003, 09:22 AM#11
Xaran Alamas
thanks for some positive response JasonMclau
01-10-2003, 03:50 AM#12
nicoli_s
nope u cant do it for custom spells, cuz u cant change the order for a custom spell, but by editing the we dat and we strings and some other ui files, u can add in one just for yer custom spell thats in the dropdown menu
01-10-2003, 05:53 AM#13
KDEWolf
i think u've started something that VERY useful 4 custom spells... anyway ppl still modifying/creating/doing nasty things... when they start 2 use them they'll see how useful is da info here

[edit]
btw i had 2 wait 1h02min (it's truth look at it if u want!) 4 a reply when i posted da colors n glows thing.... u'r looking like wilbo:

-reply plz
-some1!
-hey there's anyone connected?
-i need help!!!!!!!!!!!

hehehehe k00!
01-10-2003, 06:43 AM#14
Xaran Alamas
sorry just got a bit frustrated
01-10-2003, 06:53 AM#15
KDEWolf
ur mum was lying when she said u r da prettiest boy in da whole world! :(
*just getting u more frustrated*