Jump to content

Recommended Posts

Posted

Howdy

 

 

Writing (cough) a script

 

simply to make a activator move on its y axis if the player has a specific item in inventory

 

and though I have no errors in the CS or in game, it doesn't work

 

it's probably all wrong but either way hoping someone can get me on the correct path

 

Thanks

 

Enjoy

Dietbob

Posted

The line if ( timer , 3) should be if ( timer < 3 )

 

I'd me more comfortable with "db_chest_top_00"->Move Y 20

 

We can't copy the text out of an image, so in the future it would be helpful to paste the code rather than an image of it.

Posted

Thanks for the suggestion

 

Changing it did not work, so far nothings worked I have even tried a switch activator that I know works elsewhere

I need to look at it another way

 

 

Enjoy

Dietbob

  • 1 month later...
Posted

Script issues again

 

Expression error : can not find reference object ( xxxxxxxx ) in script ( xxxxxxxx )

 

The only time I get this error is when using the Ghost Gate Script

 

This is a Mod I am working on: I have nothing selected other then Morrowind, Tribunal and Bloodmoon

 

#1 I add the Activator to the CS and place it

#2 I add the Object (which is going to move) to the CS and place it

Using the Ghost Gate switch script as a reference

#3 I write the same script as the vanilla version adjusting the object ID accordingly, and attach that script to the activator

 

Save it, all good !

 

go in game to test it, new game or saved game makes no difference

 

I get the expression error

 

ANYONE know why this would happen

 

Thanks

Enjoy

Dietbob

  • 2 weeks later...
Posted (edited)

the object you want to move must be unique and marked as persistent (there is a checkbox in the object properties window) for the script to find the object real time reference

Edited by abot
Posted

thank you Sir I knew someone would remind me of things I know and forget to do....old age

I looked at my previously written scripts and they are all checked as required.. I failed to do it in this case (Homer Moment) DOUH

 

Enjoy

Dietbob

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...