
ich hab mal ne frage zu sogenannten "setup"-scripts, die beim start des spiels automatisch ausgeführt werden:
Wenn das setup-script ne endlosschleife beinhaltet, wird es dann nach dem speichern des spiels und erneutem Laden neu gestartet?
also läuft es dann 2 mal parallel?
hier mein code zur Verdeutlichung:
Code: Select all
Description
Adds some Hackerchips to cargobay of target
Arguments
Source Text
001 * playertrackingaimcheck
002 targetcheck:
003 $aimtarget = get player tracking aim
004 $targetClass = $aimtarget -> get object class
005
006
007 * check target if its a pirateship
008 if $targetClass -> is of class Bewegliches Schiff
009 |$targetRace = $aimtarget -> get owner race
010 |if $targetRace == Piraten
011 * random if target will get some chips
012 ||$RNDchance = = random value from 0 to 4 - 1
013 ||if $RNDchance >= 2
014 * check if it has already chips in cargobay
015 |||$chipAmt = $aimtarget -> get amount of ware Hackerchips in cargo bay
016 * if lower than 1 chip in cargobay - add some
017 |||if $chipAmt < 1
018 ||||$RND = = random value from 0 to 21 - 1
019 ||||= $aimtarget -> add $RND units of Hackerchips
020 * ------------debug-----------
021 ||||write to player logbook: printf: fmt='aimtarget: %s , targetClass: %s , Hackerchips: %s', $aimtarget, $targetClass, $RND, null, null
022 * ------------debug-----------
023 |||end
024 ||end
025 |end
026 end
027 @ = wait randomly from 2000 to 10000 ms
028 goto label targetcheck
029
030
031 return null
LG
-o1