Getd

From Hercules Wiki
Revision as of 18:04, 3 October 2013 by Dastgirpojee (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Syntax

  • getd("<variable name>");

Description

Returns a reference to a variable, the name can be constructed dynamically. Refer to setd for usage.

This can also be used to set an array dynamically:

 setarray getd(".array[0]"), 1, 2, 3, 4, 5;

Examples

set .@mob_id, 1002;
dispbottom getd(".prize_" + .@mob_id); // displays the value of .prize_1002