Author Topic: Dark Souls Bonfire system?  (Read 306 times)

Legacy_HugoLuman

  • Jr. Member
  • **
  • Posts: 52
  • Karma: +0/-0
Dark Souls Bonfire system?
« on: April 04, 2014, 05:22:27 pm »


               

I'm working on a DS-inspired module for me and my friends to play, but the Bonfire system is giving me some trouble. I know how to teleport people after death, but I'm not sure how to mark a bonfire as the last place of rest for a specific player only, and am not sure how to do the bloodstain that gets left behind on death for people to retrieve their XP.


 


To clarify, there are 2 main things I want to do:


 


1) I want to have bonfires throughout the module, where players can rest. Upon death they respawn at the last one they rested at


 


2) When players die, the XP they lose should be retrievable. A bloodstain should show up where they died, from which they can retrieve their points if they can reach it without dying again.



               
               

               
            

Legacy_MagicalMaster

  • Hero Member
  • *****
  • Posts: 2712
  • Karma: +0/-0
Dark Souls Bonfire system?
« Reply #1 on: April 05, 2014, 01:53:18 am »


               

Probably the easiest way for you is to use some local ints.


 


1, give each bonfire a unique local int and when a player rests there set that local int on a permanent item in the player's inventory.  Then you can retrieve that to know where to respawn.  Can also do the same with local strings/objects if you prefer.


 


2, when they die figure out how much XP you can take (not sure if you want them to avoid losing levels), create the bloodstrain, and set a local int on it with the XP stripped.  Then when they click on the bloodstain destroy it and grant the XP.  The other issue presumably is making sure only the PC who died can trigger the bloodstain -- so you might do a few things.  One, set a local string on the bloodstain with the name of the PC.  Two, set a unique local int on a permanent item in the player's inventory and do the same for the bloodstain to link them.  Can start at 1 for the first death, 2 for the second, etc.  Can track the total deaths as a local int on the module itself -- and then could eventually loop that using % if you're seriously worried about potentially having more than 2 billion deaths.



               
               

               
            

Legacy_HugoLuman

  • Jr. Member
  • **
  • Posts: 52
  • Karma: +0/-0
Dark Souls Bonfire system?
« Reply #2 on: April 05, 2014, 05:03:38 am »


               

Hmm, I have the perfect idea for what item to use: the Estus flask. It will function as a refillable health potion, which might also be tricky but probably not so much,