Hey,
Couple of questions
is the a statement which returns the owner of a sector, something like
<retvar> = owner of sector <select sector>
and is there a statement which forces a ship to eject a certain amount of a ware?
Thanks.
Two scripting questions.
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
Re: Two scripting questions.
Flic wrote:Hey,
Couple of questions
is the a statement which returns the owner of a sector, something like
<retvar> = owner of sector <select sector>
and is there a statement which forces a ship to eject a certain amount of a ware?
Thanks.
Code: Select all
$orace = $attacker -> get owner race
first you need to get the maintype and the subtype of the ware (SE Trade Menu) then create a flying ware (General Menu) at the position you want
Code: Select all
027 $main = $ware -> get maintype
028 $sub = $ware -> get subtype
031 $box = create flying ware: maintype=$main subtype=$sub count=1 sector=$sec x=$x y=$y z=$z selfdestruct=[TRUE]