NEW UPDATED VERSION CODE BELOW 13/9/2016
I'm tying to have a single command for SAY ' JUMP '. I need to have my Afterburner below keep tabs of those states, that is,
Start my route into hyperspace 'JUMP' to the next system, and continue 'JUMP' to each to system on route and finally when approaching a station ( blue safe to disengage ), saying 'JUMP' to enter normal space.
Supercruise command , has only two states , so works, but the JUMP hyperjump is the problem.
My Vap profile , is nearly finished but this one JUMP command does all , has eluded me for ages
I hoping with the new function in VA , it may now be possible or am I dreaming.
Afterburner command , it works well.
((power to flight)) all power too engines rest too systems ,it only fires once as the afterburner ( key pressing ) keeps boosting.
Begin Small Integer Compare : [docking] Equals 0
Begin Small Integer Compare : [supercruise] Equals 0
Begin Small Integer Compare : [jump-drive] Equals 0
Begin Small Integer Compare : [cargo-scoop] Does Not Equal 0
Execute command, 'Retract scoop;Retract cargo scoop (and wait until it completes)
Set small int (condition) [cargo-scoop] value to 0
Begin Small Integer Compare : [landing-gear] Does Not Equal 0
Execute command, 'Retract landing gear (and wait until it completes)
Set small int (condition) [landing-gear] value to 0
End Condition
End Condition
Begin Small Integer Compare : [flight] Equals 0
Execute command, '((Power to Flight))' (and wait until it completes)
Say, 'PIPS'
Set small int (condition) [flight] value to 1
End Condition
Execute command, '((100%))' (and wait until it completes)
Execute command, '((Afterburners))' (and wait until it completes)
Execute command, '((RS- Afterburners))' (and wait until it completes)
End Condition
End Condition
End Condition - Exit when condition met
Begin Small Integer Compare : [docking] Equals 1
End Condition - Exit when condition met
UPDATED 13 of SEPT ..
Ok this is what I have now , took ages for the penny to drop, did try using EDDI before, but thanks to
TetleyK and his Elite EDDI-VA Jump Counter profile, it gave me an idea ! of how to manipulate VA via EDDI and not the other way around, as in my previous attempts , below
((EDDI: event handler for change of environment))
Begin Text Compare : [Environment] Equals 'Normal space'
Set Text [EDDI environment script] to '$= is [entering;dropping to] normal space.'
Set small int (condition) [jump-drive] value to 0
Set small int (condition) [supercruise] value to 0
Set small int (condition) [flight] value to 0
Set small int (condition) [power-fsd] value to 0
Else If Text Compare : [Environment] Equals 'Supercruise'
Set Text [EDDI environment script] to '$= is [entering;jumping to] supercruise.'
Execute command, '((Power to fsd))' (and wait until it completes)
Set small int (condition) [power-fsd] value to 1
Set small int (condition) [flight] value to 1
Set small int (condition) [supercruise] value to 1
Set small int (condition) [jump-drive] value to 0
End Condition
Execute external plugin, 'EDDI 1.4.0'
Set Text [EDDI environment script] to [Not Set]
((EDDI: event handler for change of system))
Set Text [EDDI system script] to 'Destination confirmed. $= '
Set Text [EDDI system script] to '[Destination confirmed;Jump in progress;Telemetry obtained]. $= is [heading; on route;travelling;in transit] to [the {TXT:System name (sp...
Set small int (condition) [supercruise] value to 1
Set small int (condition) [jump-drive] value to 1
Set small int (condition) [power-fsd] value to 1
Begin Text Compare : [Home system] Has Been Set
Begin Text Compare : [System name] Equals [Home system]
Set Text [EDDI system script] to '{TXT:EDDI system script} Welcome home[, {TXT:System rank};].'
Execute external plugin, 'EDDI 1.4.0' and wait for return
Set Text [EDDI system script] to [Not Set]
End Condition - Exit when condition met
End Condition
Begin Decimal Compare : [System population] Is Greater Than 0
Begin Text Compare : [Last system allegiance] Has Been Set
Begin Text Compare : [System allegiance] Does Not Equal [Last system allegiance]
Set Text [EDDI system script] to '{TXT:EDDI system script} You [are now in;have entered] {TXT:System allegiance} space.'
Begin Text Compare : [System rank] Does Not Equal 'Commander'
Set Text [EDDI system script] to '{TXT:EDDI system script} Welcome back {TXT:System rank}.'
End Condition
End Condition
End Condition
End Condition
Begin Integer Compare : [System visits] Equals 1
Set Text [EDDI system script] to '{TXT:EDDI system script} This is your first visit to this system.'
Set small int (condition) [jump-drive] value to 0
Set small int (condition) [supercruise] value to 1
Set small int (condition) [power-fsd] value to 1
Else If Integer Compare : [System visits] Equals 2
Set Text [EDDI system script] to '{TXT:EDDI system script} This is your second visit to this system.'
Set small int (condition) [jump-drive] value to 0
Set small int (condition) [supercruise] value to 1
Set small int (condition) [power-fsd] value to 1
Else If Integer Compare : [System visits] Equals 3
Set Text [EDDI system script] to '{TXT:EDDI system script} This is your third visit to this system.'
Set small int (condition) [jump-drive] value to 0
Set small int (condition) [supercruise] value to 1
Set small int (condition) [power-fsd] value to 1
Else If Integer Compare : [System visits] Equals 4
Set Text [EDDI system script] to '{TXT:EDDI system script} This is your fourth visit to this system.'
Set small int (condition) [jump-drive] value to 0
Set small int (condition) [supercruise] value to 1
Set small int (condition) [power-fsd] value to 1
Else
Set Text [EDDI system script] to '{TXT:EDDI system script} You have visited this system {INT:System visits} times.'
Set small int (condition) [jump-drive] value to 0
Set small int (condition) [supercruise] value to 1
Set small int (condition) [power-fsd] value to 1
End Condition
Execute external plugin, 'EDDI 1.4.0' and wait for return
Set Text [EDDI system script] to [Not Set]
Begin Decimal Compare : [System population] Is Greater Than 0
Pick a system report; quicker is more likely
Set integer [EDDI system blurb roll] value as random from 1 to 20
Set integer [EDDI system blurb roll] to [EDDI system blurb roll] plus [{INT:System visits}]
Begin Integer Compare : [EDDI system blurb roll] Is Less Than Or Equals 20
Execute command, '((EDDI: star system report))' (and wait until it completes)
Else If Integer Compare : [EDDI system blurb roll] Is Less Than Or Equals 40
Execute command, '((EDDI: star system summary))' (and wait until it completes)
Else
Execute command, '((EDDI: star system overview))' (and wait until it completes)
End Condition
Set integer [EDDI system blurb roll] value to [Not Set]
Execute command, '((EDDI: security presence report))' (and wait until it completes)
End Condition
Begin Text Compare : [EDDI plugin EDSM status] Equals 'Enabled'
Begin Decimal Compare : [System X] Has Not Been Set
Set Text [EDDI system script] to 'The co-ordinates for this system are unknown.'
Execute external plugin, 'EDDI 1.4.0' and wait for return
Set Text [EDDI system script] to [Not Set]
End Condition
End Condition
Begin Text Compare : [System comment] Has Been Set
Set Text [EDDI system script] to 'You made a [note;comment;remark] [on;for;about] this system. It said {TXT:System comment}'
Execute external plugin, 'EDDI 1.4.0' and wait for return
Set Text [EDDI system script] to [Not Set]
End Condition
Jump Drive;Jump
Begin Small Integer Compare : [jump-drive] Equals 0
Set small int (condition) [jump-drive] value to 0
Set small int (condition) [supercruise] value to 0
Execute command, '((Retract All))' (and wait until it completes)
Pause 0.3 seconds
Begin Small Integer Compare : [power-fsd] Equals 0
Execute command, '((Power to fsd))' (and wait until it completes)
Set small int (condition) [power-fsd] value to 1
Set small int (condition) [flight] value to 1
End Condition
Execute command, '((100%))' (and wait until it completes)
Pause 0.3 seconds
Set small int (condition) [jump-drive] value to 1
Set small int (condition) [supercruise] value to 1
Set small int (condition) [power-fsd] value to 1
Execute command, '((Jump Drive))' (and wait until it completes)
Play random sound (6 items)
End Condition - Exit when condition met
Begin Small Integer Compare : [jump-drive] Equals 1
Begin Small Integer Compare : [power-fsd] Equals 0
Execute command, '((Power to fsd))' (and wait until it completes)
Set small int (condition) [power-fsd] value to 1
Set small int (condition) [flight] value to 1
End Condition
Execute command, '((100%))' (and wait until it completes)
Pause 0.3 seconds
Execute command, '((Jump Drive))' (and wait until it completes)
Play random sound (6 items)
End Condition
This is all working , well so far ..lol .. the 'ONE' Jump Command
* Power to FSD [power-fsd] is all Pips to Systems rest Engines
* Power to flight [flight] is all all Pips to Engines rest Systems