Moktah Posted February 10, 2018 Share Posted February 10, 2018 By the way,I "might" have thought of a way to use your script with a spelland not have the stutter step action going on. If my theory is correct,you cast a spellit does the animation of casting a spell upon yourselfthen fires off your messagebox Never did find out how you initiated the call for your script to run.For all I know, you have it firing off after entering a door or something.IF thats the case, then you surely don't need the casting animation hehe. Link to comment Share on other sites More sharing options...
Ordeiberon Posted February 10, 2018 Author Share Posted February 10, 2018 The spell is fired off by a casting and it executes this script SCN AASHhomeMS begin gamemode set AASHhomeMQ.Start to 1 end The AASHhomeMQ quest script is the script we have been working on. By the way,I "might" have thought of a way to use your script with a spelland not have the stutter step action going on. If my theory is correct,you cast a spellit does the animation of casting a spell upon yourselfthen fires off your messagebox Never did find out how you initiated the call for your script to run.For all I know, you have it firing off after entering a door or something.IF thats the case, then you surely don't need the casting animation hehe. Link to comment Share on other sites More sharing options...
Moktah Posted February 10, 2018 Share Posted February 10, 2018 ah.... thats where Start gets set to 1now it makes since. and since you already have a spell setupthis should be pretty easy to test outAt the same time, gonna give ya something else toponder upon.A quest script keeps running over and over and overwhether you need it or not.Something you could do is turn it off and on as needed.This way, you're only running that quest when you need toand freeing up resources for the rest of the game. Don't know the name of your Questlets call it TeleportXYou can then turn it off and on with startquest.TeleportXorstopquest.TeleportX Going back to the spell animation.You've already got a spell setup andits already got a script that fires off.. Sweet If my theory is correct,all you should have to do with your spell's questis to set it up like so. SCN AASHhomeMS Begin ScriptEffectFinish set AASHhomeMQ.Start to 1 endAnd you can turn your quest on and off as well.Where you set your questdelaytimeadd a command to stop the quest.it should finish out the script then pause the quest. You can also put a stopquest command whereyou checked to see if its NOT OK to run the teleportand another if someone cancels the spell. Then add a startquest in the spells code. if start == 1 if GetPlayerInSEWorld MessageBox "You are in Realm of Sheogorath, and must return to Cyrodiil first.", "I'll find a way back" set start to 0 stopquest.TeleportX return else MessageBox "AraSelMathi Estates Tel...... <snipped for easier view> set start to 2 endif endifIf I'm on the right track.You cast spellit gets to the end of the spellstarts the questsets start to one now that quest is running againyour quest script fires off and sees that start is oneand pops up the messagebox One drawback I can think of.when your quest starts backit might default it to the normal 5 second que(quests that don't have fquestdelaytime set are defaulted to 5 second refresh rate)but I got a feeling it won't since you set your fquestdelay time when you initialized your script. if it does that delay when you cast your spell, then you could add the command right after starting the questagain in your spell's script. SCN AASHhomeMS Begin ScriptEffectFinish startquest.TeleportX set AASHhomeMQ.fQuestDelayTime to 0.2 set AASHhomeMQ.Start to 1 endSpeaking of which, you may notice a delay sometimes when you go to test your script.It'll make you think somethings broke when it takes a few seconds to finally kick in.Something I did in the mod I'm working on is to let me know when its ready. in the spot where you set the fquestdelaytime, you can addmsgex "Teleport spell added"or whatever you want it to saythen it'll pop up a msg in the upper left for a few secondsthe moment it actually fires off Link to comment Share on other sites More sharing options...
Recommended Posts