API substitute vars

From Vendetta Lua
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