Author Topic: XP/GP Penalty on Respawn  (Read 358 times)

Legacy_Bazilbrush

  • Jr. Member
  • **
  • Posts: 56
  • Karma: +0/-0
XP/GP Penalty on Respawn
« on: June 29, 2011, 02:23:20 am »


               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. '<img'>
               
               

               
            

Legacy_GhostOfGod

  • Hero Member
  • *****
  • Posts: 1490
  • Karma: +0/-0
XP/GP Penalty on Respawn
« Reply #1 on: June 29, 2011, 06:30:05 am »


               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 .
                     
                  


            

Legacy_Bazilbrush

  • Jr. Member
  • **
  • Posts: 56
  • Karma: +0/-0
XP/GP Penalty on Respawn
« Reply #2 on: June 30, 2011, 12:50:32 pm »


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