Difference between revisions of "API substitute vars"
From Vendetta Lua
(split) |
|||
(One intermediate revision by the same user not shown) | |||
Line 4: | Line 4: | ||
<br> | <br> | ||
'''Description:'''<br> | '''Description:'''<br> | ||
− | replace variables like %target% in | + | replace variables like:<br> |
+ | %target%<br> | ||
+ | %hailmsg%<br> | ||
+ | %sector% = ShortLocationStr(GetCurrentSectorid() or 1)<br> | ||
+ | %lastprivate% = GetLastPrivateSpeaker()<br> | ||
+ | in 'string in' | ||
<br> | <br> | ||
'''Arguments:'''<br> | '''Arguments:'''<br> |
Latest revision as of 05:44, 1 April 2020
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