When "Take" is chosen, it teleports the player to a specific area and makes sure the book stays in the player's inventory. How do I make that happen?
.
Apparently, MW ignores leading empty lines. So you'll have to place some text on the very first line (I just used a period) and then put in your BR tags.
Begin Linking_Book_Scriptshort Statusshort Buttonfloat Timerif ( OnActivate == 1 ) Player->AddItem BookID 1 Player->Equip BookID ;This makes the Take option unavailable. Set Status to 1endifif ( Status == 1 ) Set Timer to ( Timer + GetSecondsPassed ) if ( Timer > 1 ) ;A slight delay to make sure the message is displayed over the book. MessageBox "Place your hand on the image?" "Yes" "No" Set Timer to 0 Set Status to 2 endifendifif ( Status == 2 ) Set Button to GetButtonPressed if ( Button == 0 ) ;Yes was chosen Set Status to 3 endif if ( Button == 1 ) ;No was chosen Set Status to 6 endifendifif ( Status == 3 ) FadeOut 2.0 Set Status to 4endif;An annoying requirement is for the player to click Close before teleported.if ( Status == 4 ) Set Timer to ( Timer + GetSecondsPassed ) if ( Timer > 2 ) if ( MenuMode == 1 ) MenuTest else Player->RemoveItem BookID 1 Set Timer to 0 Set Status to 5 endif endifendifif ( Status == 5 ) FadeIn 2.0 Set Status to 0 PlaySound ID Player->PositionCell "etc"endifif ( Status == 6 ) if ( MenuMode == 1 ) MenuTest else Player->RemoveItem BookID 1 Set Status to 0 endifendifEnd
Begin Linking_Book_Scriptshort Statusshort Buttonfloat Timerif ( OnActivate == 1 ) Activate Set Status to 1endifif ( Status == 1 ) Set Timer to ( Timer + GetSecondsPassed ) if ( Timer > 1 ) MessageBox "Place your hand on the image?" "Yes" "No" Set Timer to 0 Set Status to 2 endifendifif ( Status == 2 ) Set Button to GetButtonPressed if ( Button == 0 ) Set Status to 3 endif if ( Button == 1 ) Set Status to 6 endifendifif ( Status == 3 ) FadeOut 2.0 Set Status to 4endif;At this point,If the player chooses to Close the book rather than Take the book, s/he will be teleported without it, and may get trapped.if ( Status == 4 ) Set Timer to ( Timer + GetSecondsPassed ) if ( Timer > 2 ) if ( MenuMode == 1 ) MenuTest else Set Timer to 0 Set Status to 5 endif endifendifif ( Status == 5 ) FadeIn 2.0 Set Status to 0 PlaySound ID Player->PositionCell "etc"endifif ( Status == 6 ) if ( MenuMode == 1 ) MenuTest else Set Status to 0 endifendifEnd