HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Go back in time?

07-27-2007, 02:13 PM#1
Adi_Nemesis
I was wondering which is the best way to move a unit " back in time", i.e simply make it go back to the position and hp and mana it was a specific amount of time ago, though cooldowns will remain the same. I was thinking a very small duration, something like .50 seconds. Also could someone please tell me what is the lowest value i can use for this? is it something like .25 seconds?.

Thanks in advance
07-27-2007, 02:48 PM#2
Naakaloh
Um... do you mean a periodic event that stores the units position health and mana then restores them when the ability is used? There isn't really a "lowest time" to use, just choose a reasonable time.
07-27-2007, 04:44 PM#3
Pyritie
I believe Jesus For Lyf created such a spell at war3.incgamers.com. You'll have to navigate to the trigger forum, and it's under that challenge thread, somewhere in there.

It's very laggy though.
07-27-2007, 05:17 PM#4
Dark.Revenant
You should try to get Rising_Dusk to help you; a spell very similar to this is in AotZ iirc.
07-27-2007, 05:27 PM#5
Rising_Dusk
It's pretty easy, depending on how in-depth you want to do it.
Virtually all you do is set to some variables the life/mana/coordinates/facing angle of the unit, then after X seconds restore the unit to those coords, that facing, and those life/mana properties.

You can make this more complicated with added visuals, trying to bring back units that might have died over the duration, etc.
It all depends on your goal with the spell.

And there really isn't a limit to "how low you can go with a timer."
Just don't try anything less than 0.0 and you're fine.
07-27-2007, 07:54 PM#6
Pyrogasm
Want to see an example? This spell of mine summons yourself from the future and eventually sends you back in time to become your future self: Temporal Fluxuation

Feel free to look at the code and see how I did it. You would, however, need a periodic event as opposed to my 1 second detection.