Tell me what am I doing wrong please

Post » Sun May 05, 2013 3:34 pm

So I made a Trigger Event Box and an object in a scene. Now I just added this script to the box:

Scriptname TestingBastionScr extends ObjectReference  ObjectReference Property BastionTestDel Auto Event OnTriggerEnter(ObjectReference akActionRef)		Debug.MessageBox("Yippee!")		BastionTestDel.Disable()EndEvent

Two things should happen here when I walk into the trigger:

- a text displays (Yippee)

- the specified object should get disabled (Ref Name: BastionTestDel)

The problem: the object doesn't go away but the text shows up. What is wrong with my script, because it saves and compiles but does not take effect on the referenced object!? By the way, I have the latest updates of Skyrim and I use SKSE.

Thanks in advance.

User avatar
Darren Chandler
 
Posts: 3361
Joined: Mon Jun 25, 2007 9:03 am

Post » Sun May 05, 2013 7:15 am

Have you chosen the right property for your Bastion?

User avatar
Kelly Osbourne Kelly
 
Posts: 3426
Joined: Sun Nov 05, 2006 6:56 pm

Post » Sun May 05, 2013 12:25 pm

Make sure you filled the property. If you don't have a clue what that means or how to do it, I strongly suggest you do the tutorial on scripting, it will help you out a lot. You can find it here: http://www.creationkit.com/Bethesda_Tutorial_Papyrus_Hello_World

Two other minor things:

1. When you create a thread, name it something descriptive of your problem. Not just 'Help me'. The fact you're posting here implies you'll need help. A lot of the helpful people don't have a lot of time, so telling the problem from the topic name may get you more attention from those who can help. :)

2. When you say scene what do you mean? Do you mean in the environment you have set up? In Skyrim scenes are a very specific thing, so using that term to describe something else could become confusing.

Just some quick tips. :)

User avatar
Laura Tempel
 
Posts: 3484
Joined: Wed Oct 04, 2006 4:53 pm

Post » Sun May 05, 2013 6:29 am

You can call Disable() on the self reference. If you want to disable the trigger box itself just put Disable() instead of YourProperty.Disable().
User avatar
Conor Byrne
 
Posts: 3411
Joined: Wed Jul 11, 2007 3:37 pm

Post » Sun May 05, 2013 9:19 am

Sorry, let me rephrase my issue: I have a trigger box and Barrel (object/item). All I need to do is walk into the trigger and disable the Barrel, but how do I do that with the mentioned script?

User avatar
cutiecute
 
Posts: 3432
Joined: Wed Sep 27, 2006 9:51 am

Post » Sun May 05, 2013 3:28 am

Your posted script should work. Make sure you set up the property properly and directed it to the barrel's ref in the level. Again, I recommend you do the tutorial I posted above if you're confused by any of that, as it will give you a great understanding of the basics of scripting with Papyrus and using properties. :)

User avatar
Lory Da Costa
 
Posts: 3463
Joined: Fri Dec 15, 2006 12:30 pm

Post » Sun May 05, 2013 8:31 am

Bah, no one remembered to mention that you have to select the reference with the "Set Value" option. This is what helped me: youtube .com/watch?v=rfx8hEl7KEw . Hope it helps others, with the same issue, as well!

User avatar
Mandi Norton
 
Posts: 3451
Joined: Tue Jan 30, 2007 2:43 pm

Post » Sun May 05, 2013 4:48 pm

AV has already said "directed it to the barrel's ref in the level.", what I mean is the same thing.

User avatar
Alba Casas
 
Posts: 3478
Joined: Tue Dec 12, 2006 2:31 pm

Post » Sun May 05, 2013 2:48 am



:)

- Hypno
User avatar
jaideep singh
 
Posts: 3357
Joined: Sun Jul 08, 2007 8:45 pm

Post » Sun May 05, 2013 1:11 pm

Meh, yeah that is true I misread the information, but still it's hard to interpret what you said for a person like me that never scripted in CK :) You know that tutorials such as the one mentioned by me are kind of scarce.

User avatar
A Boy called Marilyn
 
Posts: 3391
Joined: Sat May 26, 2007 7:17 am

Post » Sun May 05, 2013 6:44 pm

But tutorials like the one I linked are right there and help you gain an understanding of the subject at hand. Like I said they would... Which is why I linked you that tutorial... :P

User avatar
CHARLODDE
 
Posts: 3408
Joined: Mon Apr 23, 2007 5:33 pm

Post » Sun May 05, 2013 9:04 am

If somebody gives you an answer that you do not understand you need to ask us to explain what we mean.

All we can do is assume you already know what we mean until you say you don't.

It helps those giving the answers to be more specific if you question what you don't understand about our replies.

User avatar
^~LIL B0NE5~^
 
Posts: 3449
Joined: Wed Oct 31, 2007 12:38 pm

Post » Sun May 05, 2013 7:02 pm

Don't.

User avatar
Ladymorphine
 
Posts: 3441
Joined: Wed Nov 08, 2006 2:22 pm

Post » Sun May 05, 2013 3:52 am

I don't have time to type out detailed explanations and then have people complain that they 'know that' already. (yes, that has happened many times in the past to me.)

So please, ask if you don't understand. We are all busy and since you are asking, its up to you to question an answer you don't understand.

User avatar
Rachie Stout
 
Posts: 3480
Joined: Sun Jun 25, 2006 2:19 pm

Post » Sun May 05, 2013 8:20 am

Oh I see, "Damned if you do, Damned if you don't".

User avatar
Sunnii Bebiieh
 
Posts: 3454
Joined: Wed Apr 11, 2007 7:57 pm

Post » Sun May 05, 2013 3:00 pm

I can see Willie's point. If someone needs help wanting to do some simple scripting, you wouldn't go into detail about how to navigate the CK, how papyrus works, etc etc. You'd simply say add the following script to your object. Done.

It's at this point that the user may say they don't know how to add a script, or they don't know what a property is...
User avatar
TRIsha FEnnesse
 
Posts: 3369
Joined: Sun Feb 04, 2007 5:59 am

Post » Sun May 05, 2013 6:12 am

Personally if I'm offering help, I try to gauge the persons experience by the wording they use in the OP.

If they sound like they already know their way around the CK, then a concise response is usually sufficient. But on the flip side, I have no problem with typing out every click and have done so many times.

Everybody has to start somewhere, there's nothing wrong with not understanding. But because the only way we can communicate is through text, then a short statement of one's current experience can really speed things up. It helps everybody involved if everyone's on the same page

- Hypno
User avatar
Jason Wolf
 
Posts: 3390
Joined: Sun Jun 17, 2007 7:30 am


Return to V - Skyrim