The Transform Trigger!
It all started when Two_ace_u showed me the console and how to use it. He told me that you could use it to bring up commands and insert them. He said that if I put in helptext(".") that I would get every command in the game. I put it in and it brought up loads of commands. I started to get excited because I realised it was likely to be how Reyk got his commands to make the new editor. Indeed, it seemed Reyk knew all about the console because he also said to put helptext(".") to get the commands. Anyway, I looked through the command list but I didn't see anything mega useful. Anyway, I was curious about something. Were there any commands in which the help text did not have a . in it? So, I tried that instead and put helptext(" "). This brought up more commands than helptext(".") because like I thought, some of the commands did not haven a . in their helptext. I was browsing though these extra commands when I found "unitTransform(proto1,proto2):replaces all of one with the other, via mutation" which as you can see does not contain a full stop which is likely to be why I was the first to find it and all because of my crazy curiosity. After several attempts - I did actually give up and came back to it later, I managed to eventually get it to work. I then made the command into a trigger and the transform trigger was born. (It is extremely lucky that it works as a trigger - very few commands do!) (1)Download my trigger here: (2)Make up the trigger using xs user code if you have it: unitTransform("proto1","proto2"); Simply type it into the trigger text box and replace the proto1 and 2 with what you want to transform from and 2. This is case sensitive! (3)If all else fails - e.g. you can't download and you don't have xs user code then there is a third way. Insert 3 trigger effects that you can type in in some way (e.g. send chat) and put the following into each of them: "); /* Like, xs user code, replace proto1 and proto2 with units of your choice. If you wish to have more that 1 transform, you only have to use the second line again which goes between the first and last command line. I.e. The first and last part is what allows you to insert the code, the lines in between are the actual lines of code. If you are random map scripting, you can add this trigger by inserting the following void command and trigger commands: void code(string xs="") { code("unitTransform(\"proto1\",\"proto2\");"); Replace proto1 and 2 with units of your choice - coding is case sensitive! How to use: Lightning Storm - Lightning sparks, Lightning scorch (G), etc And many many more! Generic Corpse - Appears when most units die - does not crash if changed into crashable units and unit cannot be selected. This is an amazing find and I am sure that you will have to agree. Feel free to experiment with the trigger and post any finds you get. Please also credit Two_ace_u because it was him who showed me the console in the first place which led onto the find of this trigger. I hope that this article will clear up any mishaps that you have about this trigger and hopefully you have learnt a lot from this trigger. I am looking forward to seeing plenty of maps from you using this trigger! - in fact, this is already happening for I have already played several maps with it on. [This message has been edited by nottud (edited 03-29-2007 @ 10:45 AM).]
A few facts which you should find useful when you want to use this trigger.
There are several ways which you can obtain or use the trigger:
*/unitTransform("proto1","proto2");/*
*/ //
rmAddTriggerEffect("SetIdleProcessing");
rmSetTriggerEffectParam("IdleProc", "true); "+xs+" trSetUnitIdleProcessing(true");
}
Any projectile can be changed from one to another using this trigger.
(1)Change the projectile to the unit you want it to be
(2)Modify the projectile's lifespan so the unit doesn't die in midair!
Here are some names of projectiles and where they come from to help you:
arrow - from buildings
arrow flaming - from archers
catapult shot - from catapults
petrobolos shot - petrobolos
lampades bolt - lampades
spear - regenlief (unsure what else)
ball of fire - fire giant
ball of fire prometheus - titan prometheus
mummy flies - mummy
balista shot - balista and balista ships
sling stone - troll and slinger
priest projectile - priest, setna, etc
Lots of exciting effects can be made by editing god powers. Below is a list of some of my favorite god powers that might be useful for you to edit. I have also provided some of the names of the bits of the god power that can be edited. If the object has a (G) it means that the unit is naturally large or will become large. Remember, it might be an idea of editing lifespans of objects to prevent them dying. However, sometimes, unit deaths are liked to the god power coding, not the lifespan and these can't be changed.
Implode - Implode sphere (G), Implode lightning, Implode pull effect, etc
Meteor/SPCMeteor - Meteor impact ground, Meteor, SPC meteor
Frost - Ice block (G), frost drift (Has fade in), Ice Sheet.
Volcano - Meteorite
As well as exploiting god powers and projectiles, there are other cool changes you can do also. Below is a list of some of the changes you can do. I will leave you to experiment and find more yourself!
Spy Eye - Using the spy god power, this can be changed so that a unit of your choice follows the unit that spy is casted on. This also does not crash the game and the unit cannot be selected.
Destruction 1x1, 2x2, etc - These appear when a building dies which can be changed into units.
Healing sfx - A fun one to change - appears above head when unit is getting healed.
Beams and lightning - you can change the beam of the mirror tower, lightning of the son of Osiris and the lightning of the implode between each other to have a different type of beam. Of can be changed into into units that will get summoned every time the tower/son of Osiris shoots!
dust - Appears from when a unit jumps, might make an interesting one to use.
Unbuilt buildings (temple, etc) - these can be changed into units with weird effects. Does not crash with crashable units. The units are invisible often but can be selected and made to do tasks. E.g. Building buildings!
Hero birth/death sfx - These can be changed into units
Death sfx - some units produce a sfx when they die that can be changed into units with interesting effects.
Gaia Flowers - Can be changed into units - the unit cannot move unless you do something that allows them to move - e.g. meteor them. These disappear if the flowers would normally die - i.e. the creep ungrows because the building is destroyed.
Heka Shockwave - This can be changed so something else shoots out of the heka when it does it's knock ability.
Attack Revealer - These are created when an enemy unit attacks you. I.e. you can gain units every time you are attacked!
Prepare for the ultimate duel!
Learn to use all my triggers and what you can do with them. Visit here.
Find out and download the transform trigger here.
Play some minigames I have created outside AOM including some 3D games here.