[Done for V0.38] Text substitution for value of items

Messages are moved here (should anyone ever want to see them again) once they are no longer applicable to the current version (e.g. suggestions that have been implemented or bugs that have been fixed).

Moderator: George Gilbert

Forum rules
Please read the Forum rules and policies before posting. You may Image to help finance the hosting costs of this forum.
Post Reply
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

[Done for V0.38] Text substitution for value of items

Post by George Gilbert »

FYI - For V0.38 I've added a new text substitution parameter of %VALUE:xxx% where xxx is the unique identifier of any item in the dungeon (e.g. %VALUE:item010203-1%).

Where that string appears in a text string, when it is used in the dungeon, it will be replaced with the "value" of the specified item. What the value is depends on the item (e.g. for a monster it will be its health, for a standard object its charge, for counters its count etc etc).

Obviously care should be taken when using this because items can be destroyed / converted etc and therefore the text may be substituted with a value for an item that you're not expecting it to if the original item has gone. Therefore I'd recommend only using it with permanent items (e.g. counters), but it will work with anything if dungeon designers want to...I'm sure you can come up with something cunning.
User avatar
Sophia
Concise and Honest
Posts: 4307
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Post by Sophia »

:shock:


:twisted:
User avatar
linflas
My other avatar is gay
Posts: 2445
Joined: Tue Nov 04, 2003 9:58 pm
Location: Lille, France
Contact:

Post by linflas »

Image
Post Reply