# int cmdcost_gold()

[Family: Global](/imperivm/en/CKS/familias/global/)

## Exact signature

```text
int cmdcost_gold()
```

## Description

Returns the cached gold cost or obtains it from the current script command context.

## Parameters and return type

**Return type:** `int`

This signature takes no additional arguments.

## Read and share

- [Markdown](/imperivm/exports/en/cks/api-8608fcfdacd60f.md)
- [JSON](/imperivm/CKS/api/entries/api-8608fcfdacd60f?lang=en)

Keep the notes and limitations when reusing this description. Do not infer undocumented parameter meanings, units or effects.
