OK, how do I make an attack code were it is dbl click and if you lose all your health you become a ghoast and you can see you but others can't unlesss there a ghost too.
and you can not attack people if you are a ghost
ID:164344
![]() Jun 24 2007, 8:32 am
|
|
Spartagus wrote:
OK, how do I make an attack code were it is dbl click and if you lose all your health you become a ghoast and you can see you but others can't unlesss there a ghost too. So you want to make a "ghost" person when you die. This ghost cannot interact with it's environment but may freely talk with other ghosts. Hmm. The best way to do this would be to create a new type for the ghost, and then switch mobs upon death. The original mob can be saved in a variable on the ghost mob, if it is later revived. You could use the invisibility variable to make the ghost invisible, but a better method would be to avoid this variable until you absolutely need it and rely on images for now. mob -- Data |
- For whatever that needs to be double clicked, set up whatever you want [health subtraction and such] with the procedure opf the double click, DblClick()
- Set the persons invisible > 0 and enable sight to see self for ghost
- Remove the attack verb(s) from the ghost person
That's merely ONE way of doing what you were asking for.