You must be logged in to post messages.
Please login or register

Scenario Design
Moderated by Yeebaagooon, nottud

Hop to:    
loginhomeregisterhelprules
Bottom
Topic Subject: Another piece in the puzzle for the transform trigger
posted 01 June 2007 08:43 AM EDT (US)   
I think I have figured out why when something transforms that it does what it does. What I mean is that I think I can explain why some units crash, why some disappear and why some just don't act normal.

The secret:

When a unit transforms, it keeps the animation command of the previous unit.

What I mean is if a unit transforms when it is idle, the transformed unit will play the idle animation, or if a unit in it's birth animation transforms, the new unit will appear in it's birth state.


Crashes most commonly occur when an IDLE unit transforms into another unit that does not have the idle animation. Because of this the game cannot cope and it crashes. If you search the editor for relic for example, it does not have an idle animation.

Invisible objects (Disappearing rather than being there) from transforms happen because of the same reason except that instead of crashing, the game simply renders the object invisible.


For those who want proof of this, transform meteor to meteorite. (Meteor from the god power starts in a birth state) When the lifespan for the meteor runs out, the meteorite explodes and dies. Now try transforming a projectile into meteorite. It won't appear because the projectile is in idle state when it transforms and meteorite does not have an idle state.

I hope this clears things up because it seems to explain everything at the moment. You might even be able to start haveing uses out of this - e.g. make a unit play an animation that it can't normaly by transforming something playing an animation of the same name into it.

The boy with the mad imagination
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.
Replies:
posted 01 June 2007 10:32 AM EDT (US)     1 / 8  
Now I understand why it happens was quite a mistery

Reconcile not with the fear of the snake, but embrace it as your own...
posted 01 June 2007 12:06 PM EDT (US)     2 / 8  
I already knew this and I thought you did! It's obvious!

MEPH
[Insert amazingly witty signature here.]

Me and Yeebaagooon's scenarios | Download The Corruptor
posted 02 June 2007 09:16 AM EDT (US)     3 / 8  
There is however something that doesn't fit - cows and pigs crash it, why?

The boy with the mad imagination
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.
posted 02 June 2007 11:56 AM EDT (US)     4 / 8  
Because they contain food perhaps... Most units don't contain food.

MEPH
[Insert amazingly witty signature here.]

Me and Yeebaagooon's scenarios | Download The Corruptor
posted 02 June 2007 12:24 PM EDT (US)     5 / 8  
@Gbtwatever
Mystery

Why do you use this trigger? Can't the ghost armies do that for you or the change unit type?


3.141592653589793238462...
Join the Pi club today!

Ironsoul:judge of the quotegame, proffesional Blackjack player, PImortal
posted 02 June 2007 12:29 PM EDT (US)     6 / 8  
Well for once it is easier than making a ghost army then converting them

Reconcile not with the fear of the snake, but embrace it as your own...
posted 02 June 2007 05:43 PM EDT (US)     7 / 8  
Most other animals and stuff work fine. Gold mines also work fine.

The boy with the mad imagination
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.
posted 03 June 2007 03:44 AM EDT (US)     8 / 8  
Try having a look in the protox.xml

MEPH
[Insert amazingly witty signature here.]

Me and Yeebaagooon's scenarios | Download The Corruptor
Age of Mythology Heaven » Forums » Scenario Design » Another piece in the puzzle for the transform trigger
Top
You must be logged in to post messages.
Please login or register
Hop to:    
Age of Mythology Heaven | HeavenGames