API substitute vars: Difference between revisions

From Vendetta Lua
Jump to navigationJump to search
Remen (talk | contribs)
added new % macros
Remen (talk | contribs)
No edit summary
 
Line 4: Line 4:
<br>
<br>
'''Description:'''<br>
'''Description:'''<br>
replace variables like:
replace variables like:<br>
%target%<br>
%target%<br>
%hailmsg%<br>
%hailmsg%<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