Deleted62667266User Posted February 21, 2020 Share Posted February 21, 2020 Hello again everyone! Told you I'd be back :laugh: I'm working on Honnith Hall, my first major player home, and inside my home is a throne once belonging to Shor. My goal is to add "Shor's Insight" player effect to the player if they sit on the throne. It's a temp (12hr) effect identical to the Doomstone Lover effect. What I have done so far, is create a new perk by copying the "doomloverperk" and renaming it. I then created the magic effect below, that points at the new perk. In the duration box below....what is the time unit used? Hours, minutes? I found the script below in the premade script list while in the edit menu of the throne itself. Is it what I need? Where do I go from here? I haven't foggiest notion on how to link the the two things together. :huh: I wandered around in here for quite awhile yesterday trying to find my answer in old posts, but being ignorant, I may have stumbled upon the answer and didn't even know... Thanks in advance...sorry to be a pain in the ass. :laugh: Dave Link to comment Share on other sites More sharing options...
maxarturo Posted February 21, 2020 Share Posted February 21, 2020 If i understand correctly you want to add a "Blessing" to the player when he sits on the throne. If this is the case, then unless you have some scripting knowledge you won't be able to accomplish this, this needs custom made script to work correctly. The main reason is that the throne furniture when sitting and standing up from it it will send 3 Activation Events and not 1 as you might think, so everytime you use the throne the blessing will be added 3 times, and there is one more issue that i cant recall right now... I'm out of town to post you my script and i'm quite busy to receate it, if you can wait a couple of days for it. * I do remember that i had post it in a similar topic a few month ago, it must be somewhere in this forum. Link to comment Share on other sites More sharing options...
Deleted62667266User Posted February 21, 2020 Author Share Posted February 21, 2020 Ahhh...ok. I was afraid that's where this was going. If you have something pre-made and are willing to share, awesome, if not...no worries. I'm in no hurry. In the meantime, this gives me something else to try & learn. Back to the CK tutorials I go. Thanks for the pointy finger! Link to comment Share on other sites More sharing options...
SurfsideNaturals Posted February 22, 2020 Share Posted February 22, 2020 Yes, You will need an on activate script to have the blessing applied. Tutorials are nice, and there are many that could help you with this, but you can also have a look in the CK at things that do something similar to what you want to do. Here is a script from an alter. You could also look at a blessing spell and magic effect to make sure you have yours set up properly. Scriptname TempleBlessingScript extends ObjectReference Conditional Spell Property TempleBlessing Auto Event OnActivate(ObjectReference akActionRef) TempleBlessing.Cast(akActionRef, akActionRef) if akActionRef == Game.GetPlayer() AltarRemoveMsg.Show() BlessingMessage.Show() endif EndEvent Message Property BlessingMessage Auto Message Property AltarRemoveMsg Auto As Maxarturo stated a throne will fire the event more than once. Scriptname ThroneScript extends ObjectReference Spell Property DavesSpell Auto Event OnActivate(ObjectReference akActionRef) If akActionRef == Game.GetPlayer() As ObjectReference ; Is this the player? Else Return Endif ; https://www.creationkit.com/index.php?title=GetSitState_-_Actor If (akActionRef as actor).GetSitState() == 2 ; Only do if the player is staring to sit. Else Return Endif DavesSpell.Cast(akActionRef, akActionRef) ; add any messages you want to display here. EndEvent Link to comment Share on other sites More sharing options...
Deleted62667266User Posted February 22, 2020 Author Share Posted February 22, 2020 Yes, You will need an on activate script to have the blessing applied. Tutorials are nice, and there are many that could help you with this, but you can also have a look in the CK at things that do something similar to what you want to do. Here is a script from an alter. You could also look at a blessing spell and magic effect to make sure you have yours set up properly. Scriptname TempleBlessingScript extends ObjectReference Conditional Spell Property TempleBlessing Auto Event OnActivate(ObjectReference akActionRef) TempleBlessing.Cast(akActionRef, akActionRef) if akActionRef == Game.GetPlayer() AltarRemoveMsg.Show() BlessingMessage.Show() endif EndEvent Message Property BlessingMessage Auto Message Property AltarRemoveMsg Auto As Maxarturo stated a throne will fire the event more than once. Scriptname ThroneScript extends ObjectReference Spell Property DavesSpell Auto Event OnActivate(ObjectReference akActionRef) If akActionRef == Game.GetPlayer() As ObjectReference ; Is this the player? Else Return Endif ; https://www.creationkit.com/index.php?title=GetSitState_-_Actor If (akActionRef as actor).GetSitState() == 2 ; Only do if the player is staring to sit. Else Return Endif DavesSpell.Cast(akActionRef, akActionRef) ; add any messages you want to display here. EndEvent Thank you! That is very helpful. :cool: I started the script tutorial this morning anyway. I should to learn to do some basic things at least. I am struggling a bit with the concepts that drive the programming, but I will get there. When I started this project, I really had no idea what I was getting myself into(I have only owned a computer for about a year). The things I thought might be difficult, turned out to be fairly straightforward and easy to figure out. Other things that I dismissed as simple early on, have proven the most challenging. Dave Link to comment Share on other sites More sharing options...
Recommended Posts