Aller au contenu

Photo

Dead Effect - Character to Spectator


  • Veuillez vous connecter pour répondre
5 réponses à ce sujet

#1
WhiteTiger

WhiteTiger
  • Members
  • 479 messages

In a multiplayer game, when a PC dies, I would like to make the pc dead to be a SPECTATOR (the dead player is able to see other players playing but can not cause anything in the game).

 

 Right now I used CopyObject() when pc dies, ressurrect the original PC applying polymorph to WISP, adding EffectEtheral() for Greater Sanctuary and done.

 

I have 1 problem: the PC is able to attack monsters/placeables and is losing Greater Sanctuary Effect.

 

Ideas?



#2
Proleric

Proleric
  • Members
  • 2 356 messages

I guess you want the player to be able to move around, but not do anything else?

 

SetCommandable(FALSE, oPC) is a good way of stopping the player from doing anything.

 

For movement in those circumstances, you can use a player tool that targets locations. When the player clicks a location, SetCommandable TRUE, ActionMoveToLocation, SetCommandable FALSE. You could have the tool start automatically, and restart itself on use, so that it appears to the player that they always have a cursor. That way, the player never needs to know they are using a tool, and never has to give up a quickslot.

 

Not sure why you need Greater Sanctuary - maybe just make all factions friendly? Make the PC immortal? Make it a supernatural effect? Other people know more than I do about that stuff.


  • WhiteTiger aime ceci

#3
Proleric

Proleric
  • Members
  • 2 356 messages

Regarding the above link, I notice that the example was slightly corrupted when migrated from my work to the Lexicon. Having trouble signing on there right now, so here's what it should say:

Spoiler

  • WhiteTiger aime ceci

#4
WhiteTiger

WhiteTiger
  • Members
  • 479 messages

That's what I wanted. Many thanks, Proleric



#5
Shadooow

Shadooow
  • Members
  • 4 470 messages

try give the polymorph bow/sling/crossbow but no ammo, that should prevent from atacking :)


  • WhiteTiger aime ceci

#6
WhiteTiger

WhiteTiger
  • Members
  • 479 messages

Brilliant idea Shadooow!