In autotrade/automine scripts we have this mechanic when first the player enters params of maximum buy\sell\mine\sell distances which are based on the pilot's skill
Code: Select all
<input_param name="max" value="[@this.ship.commander.tradenpc.skill.management, @this.ship.pilot.skill.piloting].max / 3"
Code: Select all
<set_value name="$maxrange" exact="[@this.assignedcontrolled.commander.tradenpc.skill.management, @this.skill.piloting].max / 3"/>
Code: Select all
[@this.ship.commander.tradenpc.skill.management, @this.ship.pilot.skill.piloting].max / 3"
Code: Select all
[@this.assignedcontrolled.commander.tradenpc.skill.management, @this.skill.piloting].max / 3"/>
why we need this check at all, can't we just limit max sell radius in the params?