Open main menu

Difference between revisions of "AGI/Specifications/Logic"

m
Fix formatting
(Wikify and fill in differences from SGML. Work complete)
m (Fix formatting)
Line 781: Line 781:
distance(n,m,d)
distance(n,m,d)


:If both objects n and m are on the screen, then <syntax type="C++">vd = abs(x(n) - x(m)) + abs(y(n) - y(m))</syntax>, otherwise vd = 255.
:If both objects n and m are on the screen, then  
 
<syntax type="C++">vd = abs(x(n) - x(m)) + abs(y(n) - y(m))</syntax>
 
, otherwise vd = 255.


===Inventory item management commands===
===Inventory item management commands===