Lucidx Posted December 12, 2009 Share Posted December 12, 2009 I'm having trouble with the Aundae in cyrodiil mod. I have a problem where whenever I wait or sleep no matter how long it shows those vampire dream popup things when I wake up in a loop. When I click done it shows another one and it keeps showing another one forever. Where are these dreams located in the editor and how do I completely remove them? Link to comment Share on other sites More sharing options...
David Brasher Posted December 13, 2009 Share Posted December 13, 2009 I don't have that mod, but it sounds like they failed to put a "Do Once" setup in the script. It should be sort of like: SCN AANoRestfulSleepForYouWickedVampire Short DoOnce Begin Gamemode If [Dream Conditions] == XX && DoOnce == 0 MessageBox "[Gruesome and disturbing vampire dream.]" Set DoOnce to 1 EndIf End Begin [Variable Reset Block] Set DoOnce to 0 End If you don't want dreams at all, you could find the object or quest the dreams are attached to and change that object or quest so that no script is attached. In "Scripts" which is accessed in the CS by clicking the pencil icon, look for a script with MessageBox "[Vampire Dreams]" in its structure. The naming conventions are such that most mod authors prefix all their new objects, scripts, quests etc. with the same letters such as AA, AAA, 001, VAMP, AUN, AAVAMP, AAAUN. Look for asterisks to see what has been changed. If you can figure out how the mod author is naming stuff, it should be easy to find his or her scripts. Have you sent a personal message to the mod author yet? Many mod authors really like to know when their mods are utterly broken and need to be fixed. Link to comment Share on other sites More sharing options...
Ekzz Posted February 14, 2012 Share Posted February 14, 2012 I don't have that mod, but it sounds like they failed to put a "Do Once" setup in the script. It should be sort of like: SCN AANoRestfulSleepForYouWickedVampire Short DoOnce Begin Gamemode If [Dream Conditions] == XX && DoOnce == 0 MessageBox "[Gruesome and disturbing vampire dream.]" Set DoOnce to 1 EndIf End Begin [Variable Reset Block] Set DoOnce to 0 End If you don't want dreams at all, you could find the object or quest the dreams are attached to and change that object or quest so that no script is attached. In "Scripts" which is accessed in the CS by clicking the pencil icon, look for a script with MessageBox "[Vampire Dreams]" in its structure. The naming conventions are such that most mod authors prefix all their new objects, scripts, quests etc. with the same letters such as AA, AAA, 001, VAMP, AUN, AAVAMP, AAAUN. Look for asterisks to see what has been changed. If you can figure out how the mod author is naming stuff, it should be easy to find his or her scripts. Have you sent a personal message to the mod author yet? Many mod authors really like to know when their mods are utterly broken and need to be fixed. Thank you very much. Im trying to stay beautiful as a vampire and I'm using Jarod's Vampire Script A which basically just reverses vampirism in oblivion so that you get stronger when you feed and loose abilities if you dont feed. What I wanted to do is change it so that the vampirism effect wouldnt apply because I am already using a vampire race mod (bella's) which makes me look absolutely stunning and vampir-ish enough imo. So i used CS to change the vampirism effect to 0 on all levels of vamp. This removed the gaunt face, aging, sun-glare vision and NPC's no longer ask you if you're not feeling well. Exactly what I wanted except for one tinsy problem - when I sleep WHENEVER i sleep or wait i get the endless dream loop and cant continue through the game unless i change my vampirism attribute to 0 (player.setav vamprirism 0) and then i no longer have the ability to feed. SO I am going to try and fix or remove the dreams altogether. Thanks for your info! (This is my first attempt at scripting yikes) Link to comment Share on other sites More sharing options...
Ekzz Posted February 14, 2012 Share Posted February 14, 2012 (edited) hmmmm well I tried adding that in but it didnt let me save. I must warn you i am a complete newbie at this... i dont really understand a lot of the script. I am going to post it up so you know what im talking about. anyway when i try to save after editing i get this message: Script 'VampireScript', line 70:Mismatched if/else/endif block starting on line 70 Ok this is the ORIGINAL Jarod vamp A script before ive even touched it Scriptname VampireScript short hasdisease short daycount short vampday short vampupdate short randomdream short doonce short UOPdoonce float vamphour float fQuestDelayTime Begin GameMode if ( PCVampire == -1 ) ; Moved to top by UOP to minimize unnecessary processing if player has already been cured set fQuestDelayTime to 99 return endif if ( doonce == 0 ) set randomdream to -1 set fQuestDelayTime to 0.5 set doonce to 1 endif ; This will run only when UOP is just loaded and will reset erroneous variables if ( UOPdoonce == 0 ) if ( PCVampire == 0 ) && ( hasdisease == 1 ) set daycount to 0 ; Player has Porphyric Hemophilia but hasn't rested yet; clear off bad daycount so player doesn't become a vampire on first rest set vampday to GameDaysPassed ; Use GameDaysPassed instead of GameDay as it resets when the month changes set vamphour to GameHour ; Clear off the hour as well so full 3 days given endif if ( PCVampire >= 1 ) set vampday to GameDaysPassed set vamphour to GameHour set vampupdate to 0 ; Clear off possibly broken vampirism advancement so it can progress normally endif set UOPdoonce to 1 endif ;SCRIPTING FOR ACQUIRING VAMPIRISM ;--------------------------------------------------------------------------------------------------------------------- If ( hasdisease == 0 ) if ( Player.IsSpellTarget VampDisease == 1 ) set hasdisease to 1 endif endif ;If player has been cured of disease, reset 'hasdisease' var if ( hasdisease == 1 ) if ( Player.IsSpellTarget VampDisease == 0 ) set hasdisease to 0 endif endif if ( hasdisease == 1 ) if ( ((( GameDaysPassed - vampday ) == 1 ) && ( GameHour > vamphour )) || (( GameDaysPassed - vampday ) > 1 ) ) set daycount to ( daycount + 1 ) set vampday to GameDaysPassed set vamphour to GameHour endif endif ;If hasdisease still == 1, this is the first time the player has been in this state ;give him introductory messagebox (TEMP) and reset hasdisease var if ( PCVampire == 1 ) if ( hasdisease == 1 ) if ( GetPCIsSex Male == 1 ) Messagebox "You dream of someone sleeping peacefully in his bed, when a shadowy, gaunt figure silently enters the room. Approaching the bed, the figure leans down and sinks its fangs into the sleeping person. After a few moments, the pale figure rises, blood dripping down his chin. As color flows back into the vampire's face, and his features fill out, you recognize the face as your own. You awake screaming." else Messagebox "You dream of someone sleeping peacefully in his bed, when a shadowy, gaunt figure silently enters the room. Approaching the bed, the figure leans down and sinks its fangs into the sleeping person. After a few moments, the pale figure rises, blood dripping down her chin. As color flows back into the vampire's face, and her features fill out, you recognize the face as your own. You awake screaming." endif set hasdisease to -1 Player.addspell Vampirism25 Player.addspell Vampirism25Att Player.addspell Vampirism25Skills Player.addspell VampireHuntersSight Player.addspell VampireSeduction Player.addspell VampireReignofTerror Player.addspell VampireEmbraceofShadows Player.removespell VampDisease Player.setfactionrank playervampirefaction 0 addtopic CureforVampirism StartQuest MS40 set vampday to GameDaysPassed set vamphour to GameHour endif endif ;SCRIPTING FOR STATE CHANGES AS A VAMPIRE ;-------------------------------------------------------------------------------------------------------------------- ;First things first. If player has fed, reset Vampirism level to 25 and start the counters over again If ( PCVampire >= 1 ) if ( Player.HasVampireFed == 1 ) Set PCVampire to 1 ;remove any spell from higher states ;UOP added set vampupdate to 0 to prevent bug where resting right after feeding would result in state change set vampday to GameDaysPassed set vamphour to GameHour set vampupdate to 0 set fQuestDelayTime to 0.5 Player.removespell Vampirism50 Player.removespell Vampirism50Att Player.removespell Vampirism50Skills Player.removespell Vampirism75 Player.removespell Vampirism75Att Player.removespell Vampirism75Skills Player.removespell Vampirism100 Player.removespell Vampirism100Att Player.removespell Vampirism100Skills ;re-add state 1 spells Player.addspell Vampirism25 Player.addspell Vampirism25Att Player.addspell Vampirism25Skills Player.addspell VampireSeduction Player.addspell VampireReignofTerror Player.addspell VampireEmbraceofShadows set vampday to GameDaysPassed set vamphour to GameHour MessageBox "Your hunger for blood has been satisfied... for now." endif endif ;Run a timer, checking for 24 hour intervals. If 24 hours have passed, increment vampupdate and reset hour/day vars ;Updated by UOP to prevent bug where sleeping after 22h00/10pm would not advance vampirism stage if ( PCVampire >= 1 ) if ( ((( GameDaysPassed - vampday ) == 1 ) && ( GameHour > vamphour )) || (( GameDaysPassed - vampday ) > 1 ) ) set vampupdate to 1 endif endif ;When VampireState doesn't match Vampirism Effect, update effects if ( PCVampire == 2 ) if ( Player.getav vampirism == 25 ) Player.removespell Vampirism25 Player.removespell Vampirism25Att Player.removespell Vampirism25Skills Player.addspell Vampirism50 Player.addspell Vampirism50Att Player.addspell Vampirism50Skills Player.removespell VampireEmbraceofShadows set randomdream to GetRandomPercent set fQuestDelayTime to 0.01 endif elseif ( PCVampire == 3 ) if ( Player.getav vampirism == 50 ) Player.removespell Vampirism50 Player.removespell Vampirism50Att Player.removespell Vampirism50Skills Player.addspell Vampirism75 Player.addspell Vampirism75Att Player.addspell Vampirism75Skills Player.removespell VampireReignofTerror set randomdream to GetRandomPercent set fQuestDelayTime to 0.01 endif elseif ( PCVampire == 4 ) if ( Player.getav Vampirism == 75 ) Player.removespell Vampirism75 Player.removespell Vampirism75Att Player.removespell Vampirism75Skills Player.Addspell Vampirism100 Player.addspell Vampirism100Att Player.addspell Vampirism100Skills Player.removespell VampireSeduction set randomdream to GetRandomPercent set fQuestDelayTime to 0.01 endif endif ;Pick dream text based on randomdream var if ( randomdream >= 0 ) if ( randomdream <= 9 ) MessageBox "You dream of long days spent basking in the sunlight of your native lands. You feel the warmth and the heat, and feel your body become refreshed. Then you awaken, knowing it was but a dream." set randomdream to -1 elseif ( randomdream <= 19 ) MessageBox "In your dream, you see a beautiful young woman holding an infant to her breast. It is only as you draw near that you realize that the woman is a desiccated corpse and the child is purple and bloated, dying of plague. As mother and child crumble to dust, you awaken. " set randomdream to -1 elseif ( randomdream <= 29 ) MessageBox "In your dream, an old wise-woman treats you for burns on your hands. As she applies a salve to your skin, you feel the tingle of magic as the pain begins to subside. But as you watch, the flesh of your hands begins to bubble, crack, and split, falling in chunks to the floor of her hut. As the wise-woman smiles, you wake up." set randomdream to -1 elseif ( randomdream <= 39 ) MessageBox "In a dream from your childhood you remember playing hiding games with your young friends on a warm summer afternoon. You hide in your parents’ barn, sure you will not be found. Soon, the sweet smell of hay is replaced by a darker, sickly smell. You move deeper into the barn, only to stumble on the rotting corpses of your parents, their throats ripped out. You try to scream as your parents rise and pull you into an embrace." set randomdream to -1 elseif ( randomdream <= 49 ) MessageBox "You dream of a sumptuous banquet spread out before you. You feast on a particularly choice cut of roasted meat, and its aroma makes your mouth water. It is only as you cut into the last portion that you see the larvae squirming inside. You cough blood as the larvae begin eating their way out of your stomach." set randomdream to -1 elseif ( randomdream <= 59 ) MessageBox "You lay on your back, with a blissful feeling of peace swirling through your brain. Your every muscle is relaxed. There is no tension in any part of your body. You feel completely at ease. As your vision comes into focus, you notice others standing around you. As a man leans towards you, you recognize the robes of the Necromancer, and you see a glint of light from his scalpel as it begins to cut through your flesh." set randomdream to -1 elseif ( randomdream <= 69 ) MessageBox "A warm, gentle breeze causes a tickle on your face, but as you go to brush it off, you find you cannot move your arms. Looking at your skin, you realize that it has turned to a brittle, green glass. Standing perfectly still, you breathe in shallow gulps of air, knowing that moving would cause your skin to shatter into thousands of pieces. The tickle on your face worsens, and you know that you are about to sneeze. As your skin shatters, you wake up sweating." set randomdream to -1 elseif ( randomdream <= 79 ) MessageBox "In your dream, you open your eyes to a beautiful blue sky. The sun is bright, but you feel cool, even a bit damp. You draw a breath but begin to cough, as you expel blood and dirt that you’ve inhaled into your lungs. As you try to draw another, you see a shovel of dirt being emptied onto your face. The sunlight grows fainter as you view it through the soil that covers your body. You would scream, but your mouth fills with dirt before you can make a sound." set randomdream to -1 elseif ( randomdream <= 89 ) MessageBox "In your dream, you approach a vampire ancient. Having just completed a perilous task for him, you swell with pride, sure that he will now bestow even greater power upon you. The entire clan’s eyes are upon you. Walking towards the dais where he stands, you realize that your task for him is actually unfinished, and that all of your vampiric powers have left you. You cry out as the clan descends upon you, and the ancient’s fangs rip into the flesh of your throat." set randomdream to -1 elseif ( randomdream <= 99 ) MessageBox "You dream of walking through the cool night air. Your body cries for blood, having not fed for days. Weakly, you stumble to a small pool. As you bend down to it, you see that it is not water in the pool, but warm, fresh blood, steam rising off of it. You lower your head to drink, but cannot open your mouth. As you realize in horror that your lips have been sewn shut, a pair of cold, white hands reach out from the pool and draw you under." set randomdream to -1 endif endif End Begin MenuMode ;If player is resting after 3 days with disease, increment PCVampire and wake 'im up ;This section fixed by the UOP to correct PC becoming a vampire when resting immediately after infection ;with Porphyric Hemophilia, rather than after 3 days if ( hasdisease == 1 ) if ( daycount >= 3 ) if ( IsPCSleeping == 1 ) WakeUpPC set PCVampire to 1 endif endif endif ;If player is ready for state change, check for time passing and increment PCVampire if ( PCVampire >= 1 ) && ( PCVampire < 4 ) if ( vampupdate == 1 ) if ( IsTimePassing == 1 ) set PCVampire to ( PCVampire + 1 ) set vampupdate to 0 set vampday to GameDaysPassed set vamphour to GameHour endif endif endif End Edit: is this the thing thats doing it?? ;When VampireState doesn't match Vampirism Effect, update effects Big thankyous to anyone who can help me! Edited February 14, 2012 by Ekzz Link to comment Share on other sites More sharing options...
Recommended Posts