How do I change "money:" to something else?

Hi so I want there to be currency in my game but I don't want it to show up as "Money:" in the status bar. I've tried changing what comes after the ":" but that doesn't change the "Money:". How do I change this?


create your own 'currency' Integer Attribute:

'player' Player Object -> 'Attributes' Tab -> Attributes (the bottom box) -> Add -> (see below)

Attribute Name: currency
Attribute Type: int (integer)
Attribute Value: 0

in code, as scripting, it looks like this:

player.currency = 0
// or:
set (player, "currency", 0)

as a code tag block, it looks like this:

<object name="player">

  <inherit name="editor_object" />
  <inherit name="editor_player" />

  <attr name="currency" type="int">0</attr>

</object>

and for the status attribute (displayment of the attribute in the status pane on the right side during game play):

'player' Player Object -> 'Attributes' Tab -> Status Attributes (the top box) -> Add -> (see below)

Status Attribute item:

Status Attribute Name (it's key): currency
Status Attribute's Value ("Please enter the format string -- blank for default"): Currency: !

output/displayment during game play in the status pane on the right side (initial vallue, it'll update as you change the 'player.currency' Integer Attribute's Value):

Status Pane (right side):

Currency: 0


as a code tag block, it looks like this:

<object name="player">

  <inherit name="editor_object" />
  <inherit name="editor_player" />

  <attr name="currency" type="int">0</attr>

  <statusattributes type="stringdictionary">

    <item>

      <key>currency</key>
      <value>Currency: !</value>

    </item>

  </statusattributes>

</object>

here's more detailed guide of Attribute and the 'if' Script usage, and also a step by step demo game creation guide of basic Attribute usage (includes status attributes):

http://textadventures.co.uk/forum/samples/topic/5559/attributes-and-if-script-guide-by-hk
http://textadventures.co.uk/forum/quest/topic/5387/i-really-need-help#37375

ask if you need help with anything


Log in to post a reply.

Support

Forums