Thanks! This will help me for sure.
I also followed some other tutorials and used a script from the tutorial to check if i got a specific item. I used this:
begin rd_lost_bookshort doneif ( done == 1 ) returnendifif (GetItemCount rd_destruction = 1) Journal rd_lostbook 20 set done to 1 activateendifend rd_lost_book
But it didn't work, someone know why?
I see two issues with that script, but I'm tired... if anyone else comes along I'm sure they can do a better job.
Both of them are tied to the same line. Instead of "if (GetItemCount rd_destruction = 1)", try the following line:
if ( Player -> GetItemCount "rd_destruction" == 1 )
Post back whether it works or not. The two issues my changed line should resolve are that you need a double equals sign for equivalence comparisons, and that (presumably) you are trying to check how many of rd_destruction the
player has, not the book the script is attached to. When you don't specify a fix (the ID to the left of the ->), the scripting language assumes you are using the operation upon the object the script attaches to -- in this case I assume it is a book based on your labels. By specifying the player, you check the player's inventory for rd_destruction instead.
And welcome to the wonderful world of scripting; Morrowind's scripting engine is sometimes frustratingly limited, and wasn't meant to be taken to the extremes that some people use it for, but once you get the hang of it scripting can feel very rewarding.