Skip to content
ASArcaneMP Scripting APIScripting reference
Data shapeClient APIGenerated

HerbPlotInfo

Defined in: client/api.d.ts:3130

One loaded herb plot as THIS client sees it. An unregistered one (state null) carries only template, dbId and its position, and only plots() adds index, name, path and dist.

optional completionInSec?: number

Defined in: client/api.d.ts:3259

CompletionTime minus the nurture clock; 0 when no deadline is set.


dbId: string

Defined in: client/api.d.ts:3169

ObjectStateManager::GetDbId — reflected per-actor persistence name.


optional dist?: number

Defined in: client/api.d.ts:3279

Distance from the local player in cm; -1 if unknown.


optional fertilizerId?: string

Defined in: client/api.d.ts:3189

Fertilizer applied; independent of growth state.


optional growing?: boolean

Defined in: client/api.d.ts:3214

IsGrowing.


optional growthTimeSec?: number

Defined in: client/api.d.ts:3224

Copied off the plant definition when it was planted.


optional herb?: string

Defined in: client/api.d.ts:3239

Name of the spawned AHerb actor, empty if none.


optional index?: number

Defined in: client/api.d.ts:3134

Position in plots(); order is not stable between calls.


optional inSanctuary?: boolean

Defined in: client/api.d.ts:3219

Whether the plot is in the Room of Requirement.


optional multiHarvestable?: boolean

Defined in: client/api.d.ts:3234

Whether it regrows instead of being consumed.


optional name?: string

Defined in: client/api.d.ts:3139

Actor name.


optional path?: string

Defined in: client/api.d.ts:3144

Full object path; no PersistentLevel means a Blueprint archetype.


optional plantId?: string

Defined in: client/api.d.ts:3184

Plant occupying the plot.


optional plotId?: string

Defined in: client/api.d.ts:3154

GetPlotID — a PlotDefinition row, i.e. a plot SIZE, not a unique key.


optional plotUid?: number

Defined in: client/api.d.ts:3159

Persistence UID; CRC32 of the plot’s world position.


optional progress?: number

Defined in: client/api.d.ts:3194

0..1 growth progress.


optional regrowthRatio?: number

Defined in: client/api.d.ts:3199

0..1 regrowth progress for a multi-harvest plant.


optional regrowthTimeSec?: number

Defined in: client/api.d.ts:3229

Copied off the plant definition when it was planted.


optional remainingSec?: number

Defined in: client/api.d.ts:3204

Only meaningful while Growing(1) or Regrowing(4).


optional stage?: number

Defined in: client/api.d.ts:3244

The herb mesh stage; it animates, so a read right after a write shows the old one.


optional stages?: number

Defined in: client/api.d.ts:3249

GetNumStages — the stage count for this plant.


state: number | null

Defined in: client/api.d.ts:3174

EHerbGrowthState: 0 None, 1 Growing, 2 Grown, 3 Harvested, 4 Regrowing. Null if unregistered.


optional stateName?: string

Defined in: client/api.d.ts:3179

State as a name.


optional stationUid?: number

Defined in: client/api.d.ts:3164

Parent station UID; stale on a plot whose state was rebound.


template: boolean

Defined in: client/api.d.ts:3149

Whether it is a class archetype rather than a placed actor.


optional timerHandle?: number

Defined in: client/api.d.ts:3254

Growth timer handle; 0 means nothing is armed.


optional x?: number

Defined in: client/api.d.ts:3264

World position.


optional y?: number

Defined in: client/api.d.ts:3269

World position.


optional yield?: number

Defined in: client/api.d.ts:3209

Byproducts a harvest would grant.


optional z?: number

Defined in: client/api.d.ts:3274

World position.