Staking not working in Vampire Realism mod

Post » Thu Jul 15, 2010 1:55 pm

for some reason the staking in vampire realism is not working. when i knock a vampire down i switch to the steel-tiped stake stab till they get back up. Is there a way to fix this? maybe counsel commands? i thought maybe it reinstalling would work but i reinstalled and that didn't help.
% tes3cmd dump --list --type scpt --match getsoundplaying Vampire\ Realism\ II.esp

Plugin: Vampire Realism II.esp
SCPT: mararascript
SCPT: mastriusscript
SCPT: vamp_ancient_aundae
SCPT: vamp_ancient_berne
SCPT: vamp_ancient_quarra
SCPT: vamp_special_aundae
SCPT: vamp_special_berne
SCPT: vamp_special_quarra
SCPT: vamp_standard_aundae
SCPT: vamp_standard_aundaestake
SCPT: vamp_standard_berne
SCPT: vamp_standard_bernestake
SCPT: vamp_standard_quarra
SCPT: vamp_standard_quarrastake
SCPT: vamp_wandering_aundae
SCPT: vamp_wandering_berne
SCPT: vamp_wandering_quarra
SCPT: vamp_wild_aundae
SCPT: vamp_wild_berne
SCPT: vamp_wild_quarra
SCPT: vampire_aundae
SCPT: vampire_berne
SCPT: vampire_quarra
User avatar
luis dejesus
 
Posts: 3451
Joined: Sun Aug 19, 2007 7:40 am

Post » Thu Jul 15, 2010 2:47 pm

i have hit some roadblocks.

First:
i believe i found the correct script (called stake_script*). however there is no GetSoundPlaying segment in the script. do i have the right one?

Second:
Assuming stake_script* is the correct script, i figured i would delete it. However, the CS won't let me save the changes i have made! When i try to save this warning pops-up: "unable to complete operation due to failure removing previous file. Temp file remains." WTH does the that mean?
User avatar
Amiee Kent
 
Posts: 3447
Joined: Thu Jun 15, 2006 2:25 pm

Post » Thu Jul 15, 2010 12:01 pm

i believe i found the correct script (called stake_script*). however there is no GetSoundPlaying segment in the script. do i have the right one?

Nope. see my previous post. You need to find all the scripts attached to vampire NPCs that do this:
If ( Player->GetSoundPlaying, "Weapon Swish" )

and remove that. I think.

Second:
Assuming stake_script* is the correct script, i figured i would delete it. However, the CS won't let me save the changes i have made! When i try to save this warning pops-up: "unable to complete operation due to failure removing previous file. Temp file remains." WTH does the that mean?

Sound like permissions problems due to Vista/Win7. I don't use Windows, but maybe running as admin, or turning off UAC or running in compatability mode or something like that might work.
It might be best just to reinstall outside of "Program Files" to avoid any permissions problems.
That is, if that's what it's all about. Thank bog I'm on Linux.
User avatar
naomi
 
Posts: 3400
Joined: Tue Jul 11, 2006 2:58 pm

Post » Thu Jul 15, 2010 9:39 pm

ok just noticed ur post before mine and i have yet another question.

so like i said, im a total noob at coding....

if ( fallen == 2 )
if ( timer <= 5 )
If ( GetArmorType, 1 < 1 )
If ( Player->HasItemEquipped "TAU_Stake1" )
If ( HitOnMe, "TAU_Stake1" == 1 )
If ( Player->GetSoundPlaying, "Weapon Swish" )
If ( Random100 < 88 )
sethealth 0
set fallen to 0
; Messagebox, "Die"
Elseif ( Random100 >= 89 )
Messagebox, "You just miss the heart as you plunge the stake deep into the vampire's chest."
Set timer to 7
Endif
Endif
Endif
Elseif ( Player->HasItemEquipped "TAU_Stake2" )
If ( HitOnMe, "TAU_Stake2" == 1 )
If ( Player->GetSoundPlaying, "Weapon Swish" )
If ( Random100 < 80 )
sethealth 0
set fallen to 0
Elseif ( Random100 >= 81 )
MessageBox, "You just miss the heart as you plunge the stake deep into the vampire's chest."
set timer to 7
Endif
Endif
Endif
Endif
elseif ( GetArmorType, 1 == 1 )
If ( Player->HasItemEquipped "TAU_Stake1" )
If ( HitOnMe, "TAU_Stake1" == 1 )
If ( Player->GetSoundPlaying, "Weapon Swish" )
If ( Random100 < 70 )
sethealth 0
set fallen to 0
Elseif ( Random100 >= 71 )
Messagebox, "The stake glances off the vampire's armor."
set timer to 7
Endif
Endif
Endif
Elseif ( Player->HasItemEquipped "TAU_stake2" )
If ( HitOnMe, "TAU_stake2" == 1 )
If ( Player->GetSoundPlaying, "Weapon Swish" )
If ( Random100 < 80 )
Sethealth 0
Set fallen to 0
Elseif ( Random100 >= 81 )
MessageBox, "You just miss the heart as you plunge the stake deep into the vampire's chest."
set timer to 7
Endif
Endif
Endif
Endif
Elseif ( GetArmorType, 1 == 2 )
If ( Player->HasItemEquipped "TAU_Stake1" )
If ( HitOnMe, "TAU_Stake1" == 1 )
If ( Player->GetSoundPlaying, "Weapon Swish" )
MessageBox, "The wooden stake bounces off of the vampire's armor, leaving a ringing noise in the air that sounds strangely like a cry for help."
Set timer to 7
Endif
Endif
Elseif ( Player->HasItemEquipped "TAU_Stake2" )
If ( HitOnMe, "TAU_Stake2" == 1 )
If ( Player->GetSoundPlaying, "Weapon Swish" )
If ( Random100 < 80 )
sethealth 0
set fallen to 0
Elseif ( Random100 >= 81 )
Messagebox, "You just miss the heart as you plunge the stake deep into the vampire's chest."
set timer to 7
Endif
Endif
Endif
Endif
Endif
Endif
Endif

if ( fallen == 2 )
if ( timer >= 6 )
modcurrentfatigue 200000
modcurrenthealth 100000
modcurrentmagicka 100000
modfatigue 30
modhealth 30
modmagicka 30
set fallen to 0
endif



is that the section of code i need to delete from each script to remove the staking feature?

ty for handing my confused lil' hand =)
User avatar
Mistress trades Melissa
 
Posts: 3464
Joined: Mon Jun 19, 2006 9:28 pm

Post » Thu Jul 15, 2010 6:13 pm

is that the section of code i need to delete from each script to remove the staking feature?

Great Gadfrey, no.

If you just want to turn off staking, open the console, type "startscript vr_menu" and use those config menus to turn off staking as explained in the docs.

If you want to fix staking you have to edit out just the lines that call the getsoundplaying function.
User avatar
Alex Blacke
 
Posts: 3460
Joined: Sun Feb 18, 2007 10:46 pm

Post » Thu Jul 15, 2010 5:54 pm

oh ok. ill just turn off staking and not try messing with it =) thanks for all the help! u rock!
User avatar
Ross Zombie
 
Posts: 3328
Joined: Wed Jul 11, 2007 5:40 pm


Return to III - Morrowind