API substitute vars

From Vendetta Lua
Revision as of 05:44, 1 April 2020 by Remen (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

substitute_vars

Definition: substitute_vars(string in) -> string out
Description:
replace variables like:
%target%
%hailmsg%
%sector% = ShortLocationStr(GetCurrentSectorid() or 1)
%lastprivate% = GetLastPrivateSpeaker()
in 'string in'
Arguments:
int input string
Returns:
out output string