User Tag List

Results 1 to 2 of 2

Thread: Action is item is equiped.

  1. #1
    Octorok
    Join Date
    Oct 2006
    Age
    47
    Posts
    116
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    969
    Level
    10
    vBActivity - Bars
    Lv. Percent
    78.83%

    Question Action is item is equiped.

    I'm using version 2.11.14,
    Ok I have two questions:
    1) I'm using Link->Item[IT_xxx] to determine if Link has an item in his inventory and doing something if it's true, something like this:
    ffc script SomeName
    {
    run()
    {
    while(true)
    {
    if ( Link->Item[IC_CANDLE] )
    {
    ...do something here.
    }
    Waitframe();
    }
    }
    }
    The code inside the if is only executed when the selected item changes (it seems) rather then all the time once the item is acquired. Without the if the code works correctly. What am I doing wrong?

    2) Is it possible to detect whether an active item is actually equipped rather then just in the inventory?

    Thanks.

  2. #2
    Administrator DarkDragon's Avatar
    Join Date
    Oct 2001
    Posts
    6,228
    Mentioned
    70 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    11,028
    Level
    31
    vBActivity - Bars
    Lv. Percent
    8.51%

    Re: Action is item is equiped.

    1. One thing I can see is that you shouldn't be using IC_CANDLE, as that's an itemclass constant and not an item. But otherwise the code should execute every frame you possess the candle, I have no idea why it's linked to item switching.

    2. Currently not.

Thread Information

Users Browsing this Thread

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

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