Staredit Network

Staredit Network -> Modding Assistance -> Iscripts and Morphing
Report, edit, etc...Posted by O)FaRTy1billion on 2005-11-13 at 15:44:37
In the mod I am working on, I need to find a way to run a specific animation script; like when you press "Lift off" on a command center, it runs that iscript to show it lifting off instead of it just magically appearing in the air. (But what I need is not lifting off, just running an animtion script).

If that is impossible... making the unit morph would work (Just make the animation in that unit's init).

If that wont work I could just use triggers... ermm.gif (This mod is run with a spefic map.. or a custom map biggrin.gif)

... Thinking about it Morph would be best.
Report, edit, etc...Posted by Voyager7456(MM) on 2005-11-13 at 21:08:27
I think the 1.13 series patches put a lot of restrictions on the Morph Unit action, so you may be better off using Burrow instead.
Report, edit, etc...Posted by O)FaRTy1billion on 2005-11-14 at 13:35:34
But I need multiple animations for specific things... (Havn't I told you what this mod is? shifty.gif)
Report, edit, etc...Posted by DiscipleOfAdun on 2005-11-14 at 15:23:57
Do you need all the normal spells? If not, there might be a way.
Report, edit, etc...Posted by Voyager7456(MM) on 2005-11-14 at 15:24:13
Yes, I know what the mod is for... shifty.gif [/conspiracy]

I didn't say it was a perfect solution, just might be the best you can get for now.
Report, edit, etc...Posted by O)FaRTy1billion on 2005-11-14 at 17:11:34
I don't need any spells.

Are you suggesting redo all the unit's spells to do the animations I want?
Report, edit, etc...Posted by DiscipleOfAdun on 2005-11-14 at 17:19:10
Well, if you don't know already, the TYPE variable in orders .dat has 2 values normally. Most orders have it at 28, but some have it as 7. That is actually a pointer to a specific Iscript command to run when that order(which all are spells) are being used. So, if you had 1 spell you didn't need, you could make it point to a different Iscript(the other two spell ones are unused, they'd work fine). Then, use memgraft to give a unit a button where that spell is cast, and it will run the animation which is put in that entry. So, to get it to work, you will have to:

Find a spell
Change the Type variable in orders.dat for that spell
Edit Iscript for unit, giving it an animation.
Add button for that spell w/ Memgraft for that unit.
Report, edit, etc...Posted by O)FaRTy1billion on 2005-11-15 at 22:28:08
Can you give commands to a unit while it is in the middle of a spell? (like they are using it then in the middle of it you tell them to move, would they finish the spell then use... or would they use it in the middle of the spell/cancel it?)

I guess what I need mostly is a morph...

(Maybe I should post about my mod wink.gif)
Report, edit, etc...Posted by DiscipleOfAdun on 2005-11-16 at 09:37:59
If you make your code unbreakable, it won't.

You're right, if you tell me a little more, I might be able to explain how to do it better. (You can PM me if you want to.)
Next Page (1)