[skip|else] if [not]|while [not]| = Possible 'conditional' statements that can be used, no real practical use.
<RetVar> = variable where the requested information is put
<RefObj> = The object you want to check
Every space object has an associated ware that can be said to reflect the type of object it is. This command returns the ware type associated with <RefObj>. If you use this command on a ship, you'll get its ship type. Same for stations. If you use it one a flying missile you will get the corresponding ware.
If the <RefObj> doesn't exist the result is Unknown Object
Example
- $missile = [PLAYERSHIP] -> find nearest missile aiming to me
if $missile -> exists
| $ware = $missile -> get ware type code of object
| = [PLAYERSHIP] -> add 1 units of $ware
| $missile -> destruct: show no explosion= [TRUE]
end
Command Location:
- »» General Object Commands
<RetVar><RefObj> get ware type code of object