Standard Library & Environment
BigC uses use to unlock engine features and attach to load pre-written logic from the Standard Environment (env_lib/).
1. Feature Modules (use)
Unlocks internal engine capabilities.
use sql: Unlocks SQLite database support.use web: Unlocks the BigWeb server engine.use lab "[file.big]": Executes another BigC script as a sub-process.
2. Standard Environment (attach)
Load these libraries to add new "Chapters" (functions) to your script.
📢 attach statement
Provides professional logging and status reporting.
addrun LogInfo: Prints[INFO] $Msgaddrun LogWarning: Prints[WARNING] $Msgaddrun LogError: Prints[ERROR] $Msgaddrun LogSuccess: Prints[SUCCESS] $Msgaddrun LogStatus: Dumps core system variables for debugging.
🎲 attach picker
Simplifies random number generation.
addrun Random: Generates a number between$Minand$Maxand saves it to{Result}.
🛠️ attach gethor
Handles environment setup and configuration checks.
addrun EnsureConfig: Checks ifconfig.txtexists. If not, it creates a default one.
3. Storage & Lockers (Maps)
Maps are dynamic "Lockers" for storing data by name.
# Create
get map & set as {Session}
# Set
map set "UserID" as "123" @{Session}
# Get
map get "UserID" of {Session} & set as {ID}
# Check
map check "UserID" of {Session} & set as {IsLoggedIn}