Compiling error in Topic Info window

Post » Wed Jun 20, 2012 12:36 pm

The topic's title is misleading, creating a new topic: http://www.gamesas.com/topic/1359378-script-automatically-acquiring-unwanted-properties/

Mods, please remove this topic.
User avatar
Rozlyn Robinson
 
Posts: 3528
Joined: Wed Jun 21, 2006 1:25 am

Post » Wed Jun 20, 2012 7:28 am

You need to add properties to your script fragment. And I'm also not sure whether or not you can use ".value".

Anyway, delete the code you have and replace it with a single semicolon. Press OK and save. You should have a new script attached to your topic now. Edit that script and put in a property:

Door property HDWhiteRunDoor auto

Save and compile it. Close the script, and then right-click it and edit its properties. Assign the property HDWhiteRunDoor to HDWhiteRunDoor, or you can just click the auto-fill button.

Now delete the semi-colon in your script fragment, and put back what you had before. You should now be able to compile it, assuming HDWhiteRunDoor.value is a valid function.
User avatar
Rachael
 
Posts: 3412
Joined: Sat Feb 17, 2007 2:10 pm

Post » Wed Jun 20, 2012 2:17 am

You can't use Value on a Door property, the compiler won't accept it.

Also, you need to assign Gold and the Decorate Marker as properties, too. Every in-game object you reference must be registered in your script as a property.
User avatar
SexyPimpAss
 
Posts: 3416
Joined: Wed Nov 15, 2006 9:24 am

Post » Wed Jun 20, 2012 5:49 am

You need to add properties to your script fragment. And I'm also not sure whether or not you can use ".value".

Anyway, delete the code you have and replace it with a single semicolon. Press OK and save.

When I do that, it automatically creates a HDWhiterunLoft property. Why was it created and how do I remove it? Is HDWhiterunLoft in one of my conditions?
Also, I'm pretty sure I can use .value because I copied it from a different topic.

You can't use Value on a Door property, the compiler won't accept it.

Also, you need to assign Gold and the Decorate Marker as properties, too. Every in-game object you reference must be registered in your script as a property.
When I compile, it automatically adds those to the properties. (although I'm not sure how)
User avatar
Louise
 
Posts: 3407
Joined: Wed Nov 01, 2006 1:06 pm

Post » Wed Jun 20, 2012 6:57 am

If you can compile it, why are you getting errors?

Maybe you should post some screenshots of how your topic info looks like as well as your script.
User avatar
darnell waddington
 
Posts: 3448
Joined: Wed Oct 17, 2007 10:43 pm

Post » Wed Jun 20, 2012 3:01 am

I'm not sure what I should take a screenshot of. I'm concerned with the properties, and believe they are the issue here. Why is an HDWhiterunLoft property being added to my script, if there's nothing referencing it in my conditions? (As far as I'm aware)

Am I wrong to assume that properties come from the conditions?
User avatar
Melanie Steinberg
 
Posts: 3365
Joined: Fri Apr 20, 2007 11:25 pm

Post » Wed Jun 20, 2012 12:14 pm

I don't know why you have that property. Are you sure you didn't add that in yourself by accident? You could try removing it and see what happens. As for the screenshot, I just wanted to see what you had in your properties.

I guess you can just copy + paste what's in the topic info script, your dialogue topic script fragment, and what the compiler gives you as errors.
User avatar
Rinceoir
 
Posts: 3407
Joined: Thu Jun 29, 2006 1:54 am

Post » Wed Jun 20, 2012 3:41 pm

I already posted the errors the compiler gives in the first post.

Properties:
http://i109.photobucket.com/albums/n60/eagledude4/properties.png

All of those properties are automatically generated.
User avatar
Harry Hearing
 
Posts: 3366
Joined: Sun Jul 22, 2007 6:19 am

Post » Wed Jun 20, 2012 1:15 pm

Those are the properties for TIF__000C6E23, or the script that's attached to the dialogue topic for when you buy the loft decorations for Breezehome.

Are you modifying that topic? Or did you attach that script to your topic by mistake?
User avatar
Adam Porter
 
Posts: 3532
Joined: Sat Jun 02, 2007 10:47 am

Post » Wed Jun 20, 2012 10:25 am

I initially copied the conditions from the loft decoations topic, and it must be attaching the loft decoration script automatically. How do I stop it from doing this without redoing the whole topic?

Is there no way for me to modify the properties?
User avatar
Veronica Flores
 
Posts: 3308
Joined: Mon Sep 11, 2006 5:26 pm

Post » Wed Jun 20, 2012 2:03 am

You could highlight the script and then click the remove button to remove the script. Then like ThomasKaira said, you need to add all those properties to a new topic info script.

Or you can reuse the old one and add your properties there I guess. It shouldn't matter what other properties are on it, it won't break your dialogue. But HDWhiterunLoft is a global variable. Is your HDWhiterunDoor the same?
User avatar
Sarah Knight
 
Posts: 3416
Joined: Mon Jun 19, 2006 5:02 am

Post » Wed Jun 20, 2012 10:07 am

I want the engine to create an empty script so I can assign my own properties. (There must be SOME way to do it)
I tried creating a script called SpawnDoor, but it said it already existed, even though I searched for it in the filter and it didn't come up with results.

I remember trying to make a new script before with the same name, but now I dont know where to find it or how to delete it (it's not in my scripts folder)

Yes my HDWhiterunDoor is also a global variable.
User avatar
A Boy called Marilyn
 
Posts: 3391
Joined: Sat May 26, 2007 7:17 am

Post » Wed Jun 20, 2012 11:36 am

So like I said, you select the copied script, and then you click the remove button to remove it from your topic.

Then in your script fragment, start out with just a semicolon ";" and save it. That should generate a new script for you. Then you can select that script and add your own properties to it.
User avatar
Emma-Jane Merrin
 
Posts: 3477
Joined: Fri Aug 08, 2008 1:52 am

Post » Wed Jun 20, 2012 12:23 am

I did that when you said to the first time and it's auto generating the properties I posted.
The semi colon may be generating a new script, but it's using properties from a different topic for reasons I don't know.
User avatar
Inol Wakhid
 
Posts: 3403
Joined: Wed Jun 27, 2007 5:47 am

Post » Wed Jun 20, 2012 3:01 pm

I'm sorry then, I've never run into that problem before. Maybe someone else can help. :confused:
User avatar
BRIANNA
 
Posts: 3438
Joined: Thu Jan 11, 2007 7:51 pm

Post » Wed Jun 20, 2012 8:22 am

Mods please remove this topic.
User avatar
Adriana Lenzo
 
Posts: 3446
Joined: Tue Apr 03, 2007 1:32 am


Return to V - Skyrim