Jump to content

Some help with scripting needed, again!


ZansoHel

Recommended Posts

Hey!

 

I tried to create a script which removes one dragon soul when you "meditate" aka sit on certain chair and adds a magic effect to you. It works fine except that the message box pops up when going down on the chair (sitting) and again when standing up. I would like it to pop out only once when sitting down. Below is the script. Any suggestion how I could make that happen?

 

 

 

  Reveal hidden contents

 

 

I would appreciate any help! :)

Edited by Pusin
Link to comment
Share on other sites

Try this.

 

Also, what happens if a player is not using the default timescale of 20? For example, I like to play with the timescale always set to 5. Your script resets it back to 20, tsk tsk.

 

 

  Reveal hidden contents

 

 

Alternatively, incorporating Ghaunadaur's suggestion:

 

 

  Reveal hidden contents

 

Edited by steve40
Link to comment
Share on other sites

Strange...

 

the both give the same error message (some functions doesn't compile with actionRef?)

 

  Reveal hidden contents

 

 

However, the below one works if I change the actionRef to Game.GetPlayer() on the error giving functions, but the above one does nothing (the player just sits there).

 

 

  Reveal hidden contents

 

 

Any idea what the problem might be?

Link to comment
Share on other sites

Oops, the ActionRef needed to be cast as an Actor.

 

 

  Reveal hidden contents

 

 

 

  Reveal hidden contents

 

Edited by steve40
Link to comment
Share on other sites

  • Recently Browsing   0 members

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