~ubuntu-branches/ubuntu/precise/egoboo-data/precise

« back to all changes in this revision

Viewing changes to modules/catacomb2.mod/objects/bookstand.obj/script.txt

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2010-04-25 10:20:11 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100425102011-1aosouybjkexdg9v
Tags: 1:2.7.7-1
* New Upstream Release
* Switch to debhelper

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
IfBumped                                          //PlayerBumpsBookStand
 
2
  SetTargetToWhoeverBumped          //Targets the Bumper
 
3
  IfTargetIsAPlayer                                  //Is the Bumper a player?
 
4
    SetTargetToSelf                                      //If He is then look at yourself
 
5
    tmpargument = 1
 
6
    IfContentIs                                       //is the content 1?
 
7
      KeepAction                                    //then keep doing the same action
 
8
    Else                                              //otherwise
 
9
      SetTargetToSelf
 
10
      tmpargument = [BOOK]                   //has the bookstand got a book?
 
11
      IfTargetHasItemID                          //if it has then
 
12
        DropItems                                      // drop the book
 
13
        tmpargument = ACTIONJA             //and show the empty bookstand anim
 
14
        DoAction
 
15
        KeepAction                                      //FOREVER MUAHAHA
 
16
        tmpargument = 8                            //tell the player the book was dropped
 
17
        SendMessageNear
 
18
      Else
 
19
        tmpargument = ACTIONDB         //open the book and play a random message
 
20
        DoAction
 
21
        KeepAction
 
22
        tmpargument = rand % 6
 
23
        SendMessageNear
 
24
      tmpargument= 1
 
25
      SetContent              //set content to one so that anims, and messages aren't repeated!
 
26
End
 
27
 
 
28
//if you want to put a book in the bookstand set the Dir to "I" dont put it in L or anything.
 
29
//This Object was bought to you by ptapasu in association with the Bishopia Literacy Society!
 
 
b'\\ No newline at end of file'