| How to change or turn off the Blood Timer | |
|
|
Author | Message |
---|
Zer0Morph Caine
![Caine Caine](https://2img.net/h/oi36.tinypic.com/1izfx4.jpg)
![Zer0Morph](https://2img.net/u/1311/21/52/27/avatars/1-97.jpg)
Posts : 4253 Join date : 2009-09-10 Age : 45 Location : United States
![How to change or turn off the Blood Timer Empty](https://2img.net/i/empty.gif) | Subject: How to change or turn off the Blood Timer Wed Jan 28, 2015 3:45 pm | |
| I wanted to write up a quick tutorial on how to make changes to the blood timer.
First off, the blood timer runs on a timer that fires off every 15 seconds. It counts up until it reaches 16, then it removes 1 blood point and starts over at 0. You can adjust the timer to any number you want in 15 second increments.
The file that controls the timer is called vamputil.py and is located in \Vampire\python. Open up the file with regular notepad.exe. At the very top, you will see a function called "Blood Timer". A few lines down you will see a script that looks like this... (or something similar depending on if you're playing CE or TFN)
BLOOD_MAX_COUNT = 16 + pc.stamina * 2 - 2
The number 16 is what you need to adjust. 15 (seconds) * 16 (counter) = 240 seconds or 4 minutes.
So if you wanted the timer to fire every 5 minutes, you would want to change the 16 to a 20, or if you wanted it to fire every 3 minutes, you would want to change the 16 to a 12. Here's a quick breakdown.
BLOOD_MAX_COUNT = 4 (1 Minute) 8 (2 Minutes) 12 (3 Minutes) 16 (4 Minutes) 20 (5 Minutes) etc....
To completely remove the counter you would want to add the # symbol in front of each line in the script (except the def OnBLEvent line). You want it to look something like this.
#Blood Timer (The Final Nights) def OnBLEvent(): # pc = __main__.FindPlayer() # if(pc.humanity >= 6): # BLOOD_MAX_COUNT = 16 + pc.stamina * 2 - 2 # __main__.G.BloodCounter = __main__.G.BloodCounter + 1 # elif(pc.humanity == 5): # BLOOD_MAX_COUNT = 16 + pc.stamina * 2 - 4 # __main__.G.BloodCounter = __main__.G.BloodCounter + 1 # elif(pc.humanity == 4): # BLOOD_MAX_COUNT = 16 + pc.stamina * 2 - 6 # __main__.G.BloodCounter = __main__.G.BloodCounter + 1 # elif(pc.humanity == 3): # BLOOD_MAX_COUNT = 16 + pc.stamina * 2 - 8 # __main__.G.BloodCounter = __main__.G.BloodCounter + 1 # elif(pc.humanity == 2): # BLOOD_MAX_COUNT = 16 + pc.stamina * 2 - 10 # __main__.G.BloodCounter = __main__.G.BloodCounter + 1 # elif(pc.humanity == 1): # BLOOD_MAX_COUNT = 16 + pc.stamina * 2 - 12 # __main__.G.BloodCounter = __main__.G.BloodCounter + 1 # if(__main__.G.BloodCounter >= BLOOD_MAX_COUNT): # if(not pc.HasItem("item_g_jumbles_flyer")): # if(pc.bloodpool >0): # pc.Bloodloss(1) # print "Player loses 1 Blood point" # __main__.G.BloodCounter = 0
To turn the blood timer back on, remove these # symbols.
Save the file and play the game, it will be adjusted how you wanted it.
Hope this helps!
-Zer0
Last edited by Zer0Morph on Wed Nov 25, 2015 5:24 pm; edited 2 times in total | |
|
![Go down](https://2img.net/i/empty.gif) | |
Childe of Malkav Beyond Caine
![Beyond Caine Beyond Caine](https://2img.net/h/oi59.tinypic.com/11agar5.jpg)
![Childe of Malkav](https://2img.net/u/1311/21/52/27/avatars/46-50.jpg)
Posts : 5204 Join date : 2009-11-05 Location : Gone for Good
![How to change or turn off the Blood Timer Empty](https://2img.net/i/empty.gif) | Subject: Re: How to change or turn off the Blood Timer Wed Jan 28, 2015 4:30 pm | |
| For Camarilla Edition, final version it's a bit different. If you want to shut the bloodtimer completely down, you have to edit the function def Schedule(): in vamputil.py def Schedule(): onOverfeed() __main__.ScheduleTask(0.1,"OnBLEvent()") testIdle() comment the lines onOverfeed ans ScheduleTask out. # at the beginning of the line. The bloodtimer itself is further down the file and looks like this: - Code:
-
#### CE Bloodtimer added by Zer0morph, edited by Malkav #### def OnBLEvent(): pc = __main__.FindPlayer() G = __main__.G BLOOD_MAX_COUNT = 7+pc.stamina ###edit here for rate changes### if(pc.HasItem("item_p_occult_blood_buff")): BLOOD_MAX_COUNT += 1 G.BloodCounter += 1 print "BloodCounter increased" #can be removed, except for testing while((G.BloodCounter >= BLOOD_MAX_COUNT) and (pc.bloodpool > 1)): pc.Bloodloss(1) print "Bloodloss 1 Blood point" #can be removed, except for testing G.BloodCounter = G.BloodCounter - BLOOD_MAX_COUNT if(G.BloodCounter >= 2* BLOOD_MAX_COUNT): try: __main__.ccmd.frenzyplayer() except: pass print "hunger induced autofrenzy" __main__.ScheduleTask(30.0,"OnBLEvent()")
There are some differences to the TFN version. The most important for changing the bloodloss ratio is that the CE timer only fires every 30 seconds. So 7+stamina gives 4 minutes for stamina 1, plus 30 seconds for every point of stamina beyond 1. | |
|
![Go down](https://2img.net/i/empty.gif) | |
Zer0Morph Caine
![Caine Caine](https://2img.net/h/oi36.tinypic.com/1izfx4.jpg)
![Zer0Morph](https://2img.net/u/1311/21/52/27/avatars/1-97.jpg)
Posts : 4253 Join date : 2009-09-10 Age : 45 Location : United States
![How to change or turn off the Blood Timer Empty](https://2img.net/i/empty.gif) | Subject: Re: How to change or turn off the Blood Timer Wed Jan 28, 2015 4:52 pm | |
| Thanks for fixing my original post, Malkav. I cleaned it up and edited it. ![Smile](https://2img.net/i/fa/i/smiles/icon_smile.gif) | |
|
![Go down](https://2img.net/i/empty.gif) | |
Subotai_X Fledgling
![Fledgling Fledgling](https://2img.net/h/oi37.tinypic.com/2mwgho8.jpg)
![Subotai_X](https://2img.net/u/1311/21/52/27/avatars/1712-12.png)
Posts : 6 Join date : 2015-08-09 Age : 48 Location : Lakeland, FL
![How to change or turn off the Blood Timer Empty](https://2img.net/i/empty.gif) | Subject: Re: How to change or turn off the Blood Timer Sun Aug 09, 2015 8:13 am | |
| For the life of me I can't figure this out. I have been up and down forums...Googling like a mad man...and still have no clue...I'm using the latest CQM...3.1...And am trying to do something about the bloodloss timer. Either: A) Find a way to adjust the health hit from the timer...or B) To adjust the timer. I've got a headache...I do love both the CE and the CQM though! | |
|
![Go down](https://2img.net/i/empty.gif) | |
Childe of Malkav Beyond Caine
![Beyond Caine Beyond Caine](https://2img.net/h/oi59.tinypic.com/11agar5.jpg)
![Childe of Malkav](https://2img.net/u/1311/21/52/27/avatars/46-50.jpg)
Posts : 5204 Join date : 2009-11-05 Location : Gone for Good
![How to change or turn off the Blood Timer Empty](https://2img.net/i/empty.gif) | Subject: Re: How to change or turn off the Blood Timer Sun Aug 09, 2015 3:59 pm | |
| As I told you in the other post, you can't do anything about the health hit. For adjusting the time, you need to edit the function def OnNewBLEvent(): in vamputil.py. BLOOD_MAX_COUNT defines how long until bloodloss occurs. The current setting in cqm is 4 minutes at stamina 1 plus 1/2 minute per point of stamina. (7+stamina, and the function is called every 30 seconds) | |
|
![Go down](https://2img.net/i/empty.gif) | |
Subotai_X Fledgling
![Fledgling Fledgling](https://2img.net/h/oi37.tinypic.com/2mwgho8.jpg)
![Subotai_X](https://2img.net/u/1311/21/52/27/avatars/1712-12.png)
Posts : 6 Join date : 2015-08-09 Age : 48 Location : Lakeland, FL
![How to change or turn off the Blood Timer Empty](https://2img.net/i/empty.gif) | Subject: Re: How to change or turn off the Blood Timer Sun Aug 09, 2015 10:16 pm | |
| - Childe of Malkav wrote:
- As I told you in the other post, you can't do anything about the health hit. For adjusting the time, you need to edit the function def OnNewBLEvent(): in vamputil.py.
BLOOD_MAX_COUNT defines how long until bloodloss occurs. The current setting in cqm is 4 minutes at stamina 1 plus 1/2 minute per point of stamina. (7+stamina, and the function is called every 30 seconds) Thanks. I'll just have to work with that then and see what kind of tweeks I can make. Either way, It all makes the game play better I think. Thanks for all the great work all of you have been doing and for keeping this game immortal! Because of this CE and CQM, I got my friend into VtMB again...he hadn't played it since the first year it was out! | |
|
![Go down](https://2img.net/i/empty.gif) | |
Sponsored content
![How to change or turn off the Blood Timer Empty](https://2img.net/i/empty.gif) | Subject: Re: How to change or turn off the Blood Timer ![How to change or turn off the Blood Timer Empty](https://2img.net/i/empty.gif) | |
| |
|
![Go down](https://2img.net/i/empty.gif) | |
| How to change or turn off the Blood Timer | |
|