Punkland
English
English
  • PUNKLAND
    • Introduction to Punkland
    • 🔔Update History
      • Studio
      • APP
      • Server
  • Punkland Studio
    • 📖Getting Started
      • How to Download Punkland Studio
      • Checking Version and Updates
      • New Project
      • Map Making
        • Add Map
        • Sub Map Creation
        • Edit Map
      • Studio Interface
        • [File] Tab
        • [Edit] Tab
        • [View] Tab
        • [Game] Tab
        • [Tool] Tab
      • Test Play
      • Publish Game
    • 💻Basic Guide
      • Database
      • MP3 to OGG Converter
      • Translation Export
        • Translation Import
      • Script
      • Resource Market
      • Data Export
        • Data Import
      • Help
      • Project Management
      • Text Commands
      • GM Commands
      • Stats
      • Damage Formula
      • Item Formula
      • QnA
    • 👑Advanced Guide
      • Resource Manager
      • Sprite Manager
      • Layout Manager
      • Top Menu Manager
      • Event page Manager
      • Spine
    • Script Tutorial
      • Use Script
      • Script Docs
      • Server Script
        • ScriptClan
        • ScriptColor
      • Client Script
      • Sample Script
        • UI
        • Monster AI
        • Pet AI
        • Particle
    • Web3 Tutorial
      • Minting and Connection NFT
      • Connectiong ERC-20 Token
    • Effective Punkland
      • Communicating with the Server
      • RunLater
      • HTTP Requests
  • Official Link
    • Punkland Studio Download
    • Website
    • Discord
    • Korea community
Powered by GitBook
On this page
  1. Punkland Studio
  2. Basic Guide

Item Formula

The list of items displayed in the popup when selecting an item can be filtered using conditional expressions. You can display items based on whether they meet the specified conditions!

  • item refers to the item (TItem) object.

  • unit refers to the user's ScriptUnit object.

Variable

Varialbe
Description

item.level

Item Level (Enhancement Count)

item.id

Item ID

item.count

Item Quantity

item.dataID

Item dataID

item.index

Item Index

item.inTrade

Item Trade Status

item.exp

Item Experience

item.locked

Item Lock Status

item.nftTokenID

Item NFT Token ID

item.options

Item Option List

Example: Filtering Items with Level 1 or Higher

item.level >= 1

Example: Filtering Items with IDs Between 1 and 20

item.dataID >= 1 and item.dataID <= 20

Example: Filtering Items with the Name "Sword"

Server.GetItem(item.dataID).name == “검”

PreviousDamage FormulaNextQnA

Last updated 5 months ago

💻