HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Probably asked before... (Morphing)

10-30-2007, 12:44 AM#1
Deathlust
... but I just searched for 5+ minutes and couldn't find a thread on this sooooooo:

I have a skill where a character morphs and he acquires mana degeneration while morphed. When he hits 0, guess what? He is forced to morph back!... only the problem is I can't seem how to figure out how to do this without a timer checking his energy every second.

Any other way besides a timer to do this?
10-30-2007, 01:00 AM#2
Castlemaster
Only way I know of--that doesn't use timers--is World Editor Unlimited which has an event called "Event Unit State".

Honestly timers wouldn't be that difficult to code or take up alot of processing, even in GUI.
10-30-2007, 02:10 AM#3
Deathlust
WEU works fine, I just don't know what units to put, since it needs to be multi-instanceable. (This is the only type of unit on the map with energy anyways.)
10-30-2007, 02:42 AM#4
MaD[Lion]
timer or periodic event is the only way to do this
10-30-2007, 04:07 AM#5
Deathlust
WEU has a method to detect the energy, just I'm not sure which unit variable stuff to use. Help would be great =)