User Tag List

Results 1 to 5 of 5

Thread: Script Request: Shutters at Item Quantity

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    The Timelord
    QDB Manager
    ZC Developer

    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    1,396
    Mentioned
    112 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    4,765
    Level
    21
    vBActivity - Bars
    Lv. Percent
    69.8%
    D0: Item ID. Use a negative value for a counter ID.
    D1: Counter minimum if D0 is < 0.
    D2: Door direction to open. Uses standard direction values (see std_constants.zh)

    Code:
    ffc script OpenShutters
    {
         void run(int itm, int quantity, int direction)
         {
              bool do_open;
              while(1)
              {
                   if ( itm < 0 ) //counter
                   {
                        if ( Game->Counter[itm*-1] >= quantity )
                        {
                             do_open = true;
                        }
                   }
                   else if ( itm > 1 && itm < 256 )
                   {
                        if ( Link->Item[itm] )
                        {
                             do_open = true;
                        }
                   }
                   if ( do_open )
                   {
                        Screen->Door[direction] =D_OPEN;
                        Game->PlaySound(SFX_SHUTTER);           
                        this->Data = 0; Quit();
                   }
                   Waitframe();
              }
         }
    }

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Armageddon Games is a game development group founded in 1997. We are extremely passionate about our work and our inspirations are mostly drawn from games of the 8-bit and 16-bit era.
Social