Aug 16, 2011 at 1:03 PM
Join Date: Jun 28, 2010
Location: Scotland
Posts: 205
Age: 35
LunarSoul said:It seems you found one of my discarded sidequests for MS. Heh.
Actually no, i dont know what that is. The dream sequence idea came from my own real life experiences from a practice called lucid dreaming.
LunarSoul said:You'll need some ASM for this. I'm not even sure myself how to do this, but it should be at 419910 - that's the take damage function. You need to put a PUSH equaling the TSC flag and then a CALL to the flag check function which I don't know off the top of my head. That sets either 0 (if it's not set) or 1 (if it is) to EAX I believe. Then you can CMP EAX,1 before the explosion, and JE to another location for the other sequence.
Lace said:Yeah what's happening is that when you die, FIRST your character is removed from existence, and THEN the tsc event is called. I'm not sure I would mess with this because it would look wacky if you made him exist always, but if you want to, that code lune posted is the right place to look.
Edit: Also it would be easier/more space efficient just to and the flag offset by the right mount then to call the function and cmp that. Anyways, that could be used to easily circumvent the problem I just brought up - just make it so you die if the flag isn't set.
It sounds alot more complicated that i anticipated. I dont want to end up doing more harm than good for the sake of style. Thankyou both for your reply though.