Aller au contenu

Photo

XP/GP Penalty on Respawn


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

#1
Bazilbrush

Bazilbrush
  • Members
  • 28 messages
Does anyone out there know of a simple script or death system that would allow me to change the amount of XP/GP (%) a player loses when they respawn? I have looked everywhere but cannot find one and I cannot write scripts myself. Any help would be greatly appreciated. :D

#2
GhostOfGod

GhostOfGod
  • Members
  • 863 messages
The simplest way is just to slightly alter the default respawn script "nw_o0_respawn".

It kinda depends on how you want the respawn to work. Do you want them to respawn right where they are and they take the penalty or when they respawn do they port to a place and then take the penalty?

As is, the default script works like this:
If the player respawns and you have an object in your mod with tag "NW_DEATH_TEMPLE" they will respawn at that object and take the penalty. If you do not have an object with that tag the player just respawns where they are they get no penalty.

You can alter the script to take the penalty either way though.

Modifié par GhostOfGod, 29 juin 2011 - 05:30 .


#3
Bazilbrush

Bazilbrush
  • Members
  • 28 messages
Thank you Ghost, i have worked out how to alter the nw_o0_respawn script. Thanks for taking the time to reply.