Silgrad Tower from the Ashes

Full Version: 'To Do' thread for Ibsen's Ghost
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Hi IG, I was browsing your post and figured you could use this. Of course you can alter to your needs but the basics are there.
Good! :goodjob: I am having a break with interiors, and I'm trying to get my White Spider in-game.
Thanks a lot, Zurke. That's exactly what I'm looking for! :goodjob:

Good idea, Doz. It can get dull if you have to do the same thing all the time...
I'm having problems with the script using the tutorial: http://cs.elderscrolls.com/constwiki/ind...m_Tutorial .

I have a version of the Bruma Mages Guild that I'm using as an Inn so there are two days that are locked that can be opened by the publican. Here is the script I created:

Quote:ScriptName BMIGPublican_1BMIGSlitEyeKasura

short rent
short rentday
short cleanup
short setup

begin gamemode

If ( rent == 1 )

If ( setup == 0 )
set rentday to gamedayspassed
set setup to 1
1BMIGHuntersRentDoorRef.unlock
1BMIGHuntersRentBedRef.SetOwnership

else

If ( gamedayspassed != rentday )
set cleanup to 1
endif
endif

If ( Player.GetInCell 1BMIGTenmarHuntersLodge == 0 )
If ( Cleanup == 1 )
set cleanup to 2
endif
endif

If ( cleanup == 2 )
set rent to 0
set setup to 0
set rentday to 0
set cleanup to 0

1BMIGHuntersRentDoorRef1.SetOpenState 0
1BMIGHuntersRentDoorRef.Lock 40
1BMIGHuntersRentBedRef.SetOwnership 1BMIGSlitEyeKasura
endif
endif

end

The error I keep getting is Script 'BMIGPublican_1BMIGSlitEyeKasura', line 15:
Script command: "ScriptBMIGHuntersRentDoorRef1.unlock" not found.

I originally tried using the actual room door as a reference but, seeing as it wasn't in the same cell as the publican NPC, I thought that maybe this had something to do with it so I referred to the residential area as a whole instead. But it's still not working....? ?(
Quote:Originally posted by Ibsen's Ghost
Code:
ScriptName BMIGPublican_1BMIGSlitEyeKasura

short rent
short rentday
short cleanup
short setup

begin gamemode

If ( rent == 1 )

    If ( setup == 0 )
        set rentday to gamedayspassed
        set setup to 1
        1BMIGHuntersRentDoorRef.unlock
        1BMIGHuntersRentBedRef.SetOwnership

    else

        If ( gamedayspassed != rentday )
            set cleanup to 1
        endif
    endif

    If ( Player.GetInCell 1BMIGTenmarHuntersLodge == 0 )
        If ( Cleanup == 1 )
            set cleanup to 2
        endif
    endif

    If ( cleanup == 2 )
        set rent to 0
        set setup to 0
        set rentday to 0
        set cleanup to 0

        1BMIGHuntersRentDoorRef1.SetOpenState 0
        1BMIGHuntersRentDoorRef.Lock 40
        1BMIGHuntersRentBedRef.SetOwnership 1BMIGSlitEyeKasura
    endif
endif

end

The error I keep getting is Script 'BMIGPublican_1BMIGSlitEyeKasura', line 15:
Script command: "ScriptBMIGHuntersRentDoorRef1.unlock" not found.
Is the Ref. Editor ID of the door exactly the same as the ID in the script?

Additional info.
Hang on a minute - is the reference of this door ScriptBMIGHuntersRentDoorRef or ScriptBMIGHuntersRentDoorRef1?

In line 15 - the one with the syntax error you've put it as 1BMIGHuntersRentDoorRef but in your syntax error quote you've called it ScriptBMIGHuntersRentDoorRef1

In line 38 you've called it 1BMIGHuntersRentDoorRef1

And in line 39 you've called it 1BMIGHuntersRentDoorRef


In short it sounds like you've been accidentally using the wrong reference in the script.
Gah! I hadn't updated my notepad doc that I'm working from. What the script actually says is this:

Quote:ScriptName BMIGPublican_1BMIGSlitEyeKasura

short rent
short rentday
short cleanup
short setup

begin gamemode

If ( rent == 1 )

If ( setup == 0 )
set rentday to gamedayspassed
set setup to 1
1BMIGHuntersRentDoorRef1.unlock
1BMIGHuntersRentDoorRef2.unlock
1BMIGHuntersRentBedRef.SetOwnership

else

If ( gamedayspassed != rentday )
set cleanup to 1
endif
endif

If ( Player.GetInCell 1BMIGTenmarHuntersLodge == 0 )
If ( Cleanup == 1 )
set cleanup to 2
endif
endif

If ( cleanup == 2 )
set rent to 0
set setup to 0
set rentday to 0
set cleanup to 0

1BMIGHuntersRentDoorRef1.SetOpenState 0
1BMIGHuntersRentDoorRef1.Lock 40
1BMIGHuntersRentDoorRef2.SetOpenState 0
1BMIGHuntersRentDoorRef2.Lock 40
1BMIGHuntersRentBedRef.SetOwnership 1BMIGSlitEyeKasura
endif
endif

end

And yes, the Reference Editor ID that I gave the doors is exactly the same as in the script. FYI, my earlier version didn't use the double doors that allowed access to the residential area and just made reference to a single 1BMIGHuntersRentDoorRef. As I was trying to explain earlier, this door is in the residential area of the basement so I figured there might have been some problem with the fact that the NPC didn't occupy the same cell.
I still haven't sorted out the script above so that's my next job. In the meantime, I've been adding some creatures tonight and creating levelled lists for them. We should have Argonian Zombies and Durzog by the time we get our next esm...! =)

I'm working on bringing in more...
Sounds good. Are the argonian Shaman going to be able to summon the zombies?
Quote:Originally posted by Ibsen's Ghost
I still haven't sorted out the script above so that's my next job.

That's why I'm here isn't it? Big Grin

Not quite sure what the issue is here, but I do have a fix for you from my quick glance.

You have references linke so 1BMIGHuntersRentDoorRef, they have the 1 followed by BM.

You would think this is not an issue but it is, the CS does not like IDs starting with numbers, that includes References. So what I suggest is you get rid of the 1 in the ID and make them like this:

BMIGHuntersRentDoorRef
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16