christianerding Posted November 16, 2012 Share Posted November 16, 2012 Hello Scripters, this is my first script ever, so I am really starting from zero. I do not want a vampire to regenerate health while sleeping so: I am working on the script "PlayerSleepQuestScript" in this sction: Event OnSleepStop(bool abInterrupted) ; debug.trace(self + "Player is sleeping") If CHScript.PlayerHasBeastBlood == 1; Debug.Trace(Self + "Player is werewolf; no restedness on sleep.") RemoveRested() BeastBloodMessage.Show() I want to copy it and alter it for a vampire like that: Event OnSleepStop(bool abInterrupted) ; debug.trace(self + "Player is sleeping") If CHScript.PlayerHasBeastBlood == 1; Debug.Trace(Self + "Player is werewolf; no restedness on sleep.") RemoveRested() BeastBloodMessage.Show() If CHScript.PlayerHasVampireBlood == 1; Debug.Trace(Self + "Player is vampire; no restedness on sleep.") RemoveRested() BeastBloodMessage.Show() Will the engine understand "If CHScript.PlayerHasVampireBlood == 1" ??Or do I need to write a script "CHSript.PlayerHasBeastBlood"and where do I find the original "CHScript.PlayerHasBeastBlood" Sorry for the very basic questions, but I have to start from somewhere. ;) Greetings, Christian Link to comment Share on other sites More sharing options...
steve40 Posted November 16, 2012 Share Posted November 16, 2012 Will the engine understand "If CHScript.PlayerHasVampireBlood == 1" ?? Nope, coz there's no such property. Or do I need to write a script "CHSript.PlayerHasBeastBlood" Nope. That's a property, not a script. and where do I find the original "CHScript.PlayerHasBeastBlood" It's a property, in CompanionsHouseKeepingScript.psc Link to comment Share on other sites More sharing options...
christianerding Posted November 17, 2012 Author Share Posted November 17, 2012 Will the engine understand "If CHScript.PlayerHasVampireBlood == 1" ?? Nope, coz there's no such property. Or do I need to write a script "CHSript.PlayerHasBeastBlood" Nope. That's a property, not a script. and where do I find the original "CHScript.PlayerHasBeastBlood" It's a property, in CompanionsHouseKeepingScript.psc Hello Steve, thx for your advice. Now I am at least one step ahead. Okay, "PlayerhasVampireBlood" property is not existing and since the "PlayerhasBeastBlodd" property is in the houskeepingscript it does not look like a easy task. Is there a way to get such a property in the game, without messing everything up? Or is there a easier way to prevent a vampire from regenerating when sleeping? Thx so far. Grettings, Christian Link to comment Share on other sites More sharing options...
Recommended Posts