Author Topic: Dead Effect - Character to Spectator  (Read 342 times)

Legacy_WhiteTiger

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +0/-0
Dead Effect - Character to Spectator
« on: May 19, 2015, 03:26:32 am »


               

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?



               
               

               
            

Legacy_Proleric

  • Hero Member
  • *****
  • Posts: 1750
  • Karma: +0/-0
Dead Effect - Character to Spectator
« Reply #1 on: May 19, 2015, 09:13:32 am »


               

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.



               
               

               
            

Legacy_Proleric

  • Hero Member
  • *****
  • Posts: 1750
  • Karma: +0/-0
Dead Effect - Character to Spectator
« Reply #2 on: May 19, 2015, 09:38:43 am »


               

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
   



               
               

               
            

Legacy_WhiteTiger

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +0/-0
Dead Effect - Character to Spectator
« Reply #3 on: May 19, 2015, 05:00:30 pm »


               

That's what I wanted. Many thanks, Proleric



               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Dead Effect - Character to Spectator
« Reply #4 on: May 19, 2015, 05:08:11 pm »


               

try give the polymorph bow/sling/crossbow but no ammo, that should prevent from atacking '<img'>



               
               

               
            

Legacy_WhiteTiger

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +0/-0
Dead Effect - Character to Spectator
« Reply #5 on: May 19, 2015, 05:29:46 pm »


               

Brilliant idea Shadooow!