im currently working on a point 2 point jump system (actually its one created by paulP). Ive modified it to suite the needs of the bsg mod, however i havent been able to figure out how to introduce a delay into the script. Basically this is supposed to mimic an ftl system spooling up. Therefore i would like to introduce a 1 minute time delay (or something around this time) after the hotkey has been pressed and the jump location has been chosen. This is the code bellow, where and what do i have to add in to create such an effect? im at a loss
if not [PLAYERSHIP]-> get true volume of ware {Jumpdrive} in cargo bay
= speak text: page=17 id=3983 priority=0
= speak text: page=13 id=24 priority=0
return null
end
if not [PLAYERSHIP]-> get true volume of ware {Navigation Command Software MK1} in cargo bay
= speak text: page=17 id=5673 priority=0
= speak text: page=13 id=24 priority=0
return null
end
if not [PLAYERSHIP]-> get true volume of ware {FTL Coils} in cargo bay
= speak text: page=17 id=50690 priority=0
= speak text: page=13 id=24 priority=0
return null
end
$jump.location = [PLAYERSHIP]-> get user input: type=[Var/Sector Position], title='Select Jump Location'
skip if $jump.location
return null
$current.sector = [PLAYERSHIP]-> get sector
$x = $jump.location[0]
$y = $jump.location[1]
$z = $jump.location[2]
$target.sector = $jump.location[3]
$tyfuel = [PLAYERSHIP]-> get true volume of ware {Tylium fuel} in cargo bay
$fuel = [PLAYERSHIP]-> needed jump drive energy for jump to sector $target.sector
* BW: ==============================
$fuel = $fuel
* $fuel = $fuel * 2
* BW: ==============================
if not $tyfuel >= $fuel
= speak text: page=13 id=1100056 priority=0
return null
end
$followers = [PLAYERSHIP]-> get formation follower ships
if $followers
if [PLAYERSHIP]-> get user input: type=[Var/Boolean], title='Should followers jump too?'
for each $follower in array $followers using counter $total
$follower-> interrupt with script 'plugin.paulp.gatelessjump.follow' and priority 25: arg1=$jump.location arg2=null arg3=null arg4=null
end
end
end
= [PLAYERSHIP]-> use jump drive: target=$target.sector
[PLAYERSHIP]-> set position: x=$x y=$y z=$z
$fuel = -$fuel / 2
= [PLAYERSHIP]-> add $fuel units of {Tylium fuel}
return null
PS: @roguey, i sent you a similar message on the egosoft forum, but thought it would be interesting for other people do understand how to create an effect like this.