Are there any changes to the scripts in the speech responder in 2.0.10 version?
Want to use my altered EDDI personality.
The only changes are for new scripts, so using your existing modified personality will be fine.
Are there any changes to the scripts in the speech responder in 2.0.10 version?
Want to use my altered EDDI personality.
The only changes are for new scripts, so using your existing modified personality will be fine.
Yes you need to use "{if event.iscommander" rather than "{if event.iscommander = true}
It would take a fair bit of time for me to build out a full event input, I'm afraid. I'll have a think if there is a simple way of doing this.
[B]event.rating.name = master;[/B]
Interdicted by
{if event.iscommander:
commander
|else:
npc
}
{P(event.interdictor)} whos combat rank is {P(event.rating.name)}.
{P(event.interdictor)} is aligned to Faction {P(event.faction)} within the {P(event.power)}
It's in as part of the Ship Refuelled event. There's now a 'source', which can be 'Market' (for purchased fuel) or 'Scoop' (for scooped fuel).
Be aware that for some reason this event takes a while to show up in the journal, usually 5-10 seconds after scooping has completed.
so does that mean 5 to 10 secs after you've refuelled you trigger the ship refuelled event? and if it does, will it trigger if you do not fully refuel from a scoop?
In the short term, is it possible to set/test an event key/value in the script edit block itself?
Below are my updated Fuel scripts for anyone interested:
Jumped Event
Code:{set currentfuel to (event.fuelremaining / ship.fueltanktotalcapacity)} {Pause(2000)} {if icurrentfuel < 0.08: Warning! Ships Fueltank depleted! Running on reserves. Shutdown of non-essential Systems and sending out a Distress-call is recommended for survival, if no scoopable Star or refuelling Station in reach. |elif currentfuel < 0.16: Warning: Ships Fueltank almost depleted. Immediate course correction to a System with scoopable Stars or Refueling Stations is required. {Humanise(event.fuelremaining)} Tons of Fuel remaining. |elif currentfuel <= 0.25: Attention, Ships Fueltank more than 75% depleted. Fuelscooping the next viable Star is Advised. {Humanise(event.fuelremaining)} Tons of Fuel remaining. |elif currentfuel <= 0.5: Attention, Ships Fueltank more than 50% depleted. {Humanise(event.fuelremaining)} Tons of Fuel remaining. |elif currentfuel > 0.5: Postjump Fuel reserves within specified safety parameters.}
Ship refuelled event
Code:{set currentfuel to (event.total / ship.fueltanktotalcapacity)} {if event.source = "Scoop": {ShipName()} refueled with {event.amount} Tons, |else {set currentfuel to ship.fueltanktotalcapacity} {ShipName()} refuelled with {event.amount} Tons for {event.price} Credits.} {if currentfuel < 0.08: Warning! Ship running on Fueltank-external reserves. Fuelscooping is required for further Ship operations. Shutdown of non-essential Systems is advised until Fuel is replenished. |elif currentfuel < 0.16: Warning: Fuel reserves still at minimum. Leaving without Fuelscooping is not advised! Current amount: {Humanise(event.total)} of {ship.fueltanktotalcapacity} Tons. |elif currentfuel <= 0.25: Attention, Fuel reserves still below 75%. Additional Fuelscooping is Advised. Current amount: {Humanise(event.total)} of {ship.fueltanktotalcapacity} Tons. |elif currentfuel <= 0.5: Attention, Fuel reserves still below 50%. Current amount: {Humanise(event.total)} of {ship.fueltanktotalcapacity} Tons. |elif currentfuel < ship.fueltanktotalcapacity: and within specified safety parameters. Current amount: {Humanise(event.total)} of {ship.fueltanktotalcapacity} Tons. |elif currentfuel = ship.fueltanktotalcapacity: Fueltank at maximum capacity.}
If there are any errors or other improvements i couldn't think of, pm me. Albeit scripting being alot of fun it is totally new to me and most of the time i trial-and-error my way through until it works![]()
{set currentfuel to (event.fuelremaining / ship.fueltanktotalcapacity)}
{Pause(2000)}
{if icurrentfuel < 0.08:
Danger! {P(ShipName())}s Fueltanks depleted! Running on reserves. Shutdown of non-essential Systems is adviced!. Emergency call transmitter standing by.
|elif currentfuel < 0.16:
Warning! {P(ShipName())}s Fueltanks almost depleted. Refueling is strongly recommended. {Humanise(event.fuelremaining)} Tons of Fuel remaining.
|elif currentfuel <= 0.25:
Attention! Fuel reserves below 25%. {Humanise(event.fuelremaining)} Tons remaining.
|elif currentfuel <= 0.5:
Attention! Fuel reserves below 50%. {Humanise(event.fuelremaining)} Tons remaining.
|elif currentfuel > 0.5:
Fuel reserves within safety parameters.}
{set currentfuel to (event.total / ship.fueltanktotalcapacity)}
{if event.source = "Scoop":
{ShipName()} refueled with {event.amount} Tons,
|else
{set currentfuel to ship.fueltanktotalcapacity}
{ShipName()} refuelled with {event.amount} Tons for {event.price} Credits.}
{if currentfuel < 0.08:
Danger! {P(ShipName())} running on Fueltank external reserves. Shutdown of all non-essential Systems is advised!. Look for refueling possibilities immediately!
|elif currentfuel < 0.16:
Warning: Fuel reserves at minimum! Currently {Humanise(event.total)} of {ship.fueltanktotalcapacity} Tons. Refueling is adviced.
|elif currentfuel <= 0.25:
Attention, Fuel reserves below 25%. Currently {Humanise(event.total)} of {ship.fueltanktotalcapacity} Tons.
|elif currentfuel <= 0.5:
Attention, Fuel reserves below 50%. Currently {Humanise(event.total)} of {ship.fueltanktotalcapacity} Tons.
|elif currentfuel < ship.fueltanktotalcapacity:
and within safety parameters. Currently {Humanise(event.total)} of {ship.fueltanktotalcapacity} Tons.
|elif currentfuel = ship.fueltanktotalcapacity:
Fueltanks at maximum capacity.}
I'll see what I can do to add this.
This is already available as the MaterialDonated event.
There is a MaterialDetails() function which allows you to obtain more information about a material, including rarity and category.
This is one event I haven't seen a lot of in terms of examples. I'll try to track some down and see what they say.
Thanks a lot!
If you dont mind.
I did shorten the whole thing a little bit as i felt it took to long when traveling fast from system to system.
Jumped event:
Code:{set currentfuel to (event.fuelremaining / ship.fueltanktotalcapacity)} {Pause(2000)} {if icurrentfuel < 0.08: Danger! {P(ShipName())}s Fueltanks depleted! Running on reserves. Shutdown of non-essential Systems is adviced!. Emergency call transmitter standing by. |elif currentfuel < 0.16: Warning! {P(ShipName())}s Fueltanks almost depleted. Refueling is strongly recommended. {Humanise(event.fuelremaining)} Tons of Fuel remaining. |elif currentfuel <= 0.25: Attention! Fuel reserves below 25%. {Humanise(event.fuelremaining)} Tons remaining. |elif currentfuel <= 0.5: Attention! Fuel reserves below 50%. {Humanise(event.fuelremaining)} Tons remaining. |elif currentfuel > 0.5: Fuel reserves within safety parameters.}
Ship refuelled event:
Code:{set currentfuel to (event.total / ship.fueltanktotalcapacity)} {if event.source = "Scoop": {ShipName()} refueled with {event.amount} Tons, |else {set currentfuel to ship.fueltanktotalcapacity} {ShipName()} refuelled with {event.amount} Tons for {event.price} Credits.} {if currentfuel < 0.08: Danger! {P(ShipName())} running on Fueltank external reserves. Shutdown of all non-essential Systems is advised!. Look for refueling possibilities immediately! |elif currentfuel < 0.16: Warning: Fuel reserves at minimum! Currently {Humanise(event.total)} of {ship.fueltanktotalcapacity} Tons. Refueling is adviced. |elif currentfuel <= 0.25: Attention, Fuel reserves below 25%. Currently {Humanise(event.total)} of {ship.fueltanktotalcapacity} Tons. |elif currentfuel <= 0.5: Attention, Fuel reserves below 50%. Currently {Humanise(event.total)} of {ship.fueltanktotalcapacity} Tons. |elif currentfuel < ship.fueltanktotalcapacity: and within safety parameters. Currently {Humanise(event.total)} of {ship.fueltanktotalcapacity} Tons. |elif currentfuel = ship.fueltanktotalcapacity: Fueltanks at maximum capacity.}
Hope you like it.
EDDI passes the event as soon as it sees it. The event is triggered whenever fuel scooping finishes.
Is the MaterialDetails() function also accessible via VoiceAttack? Can you give an example of how it'd be used?
'Docked' event appears to be broken in 2.0.10.
I've tested it thoroughly at multiple stations. I'm consistently receiving a 'Docked' timestamp in my Journal log, but not hearing the 'Docked' speech responder script nor is ((EDDI docked)) being called.
That nuisance event fixed a bit too well, maybe? ;-)
{set currentfuel to (event.total / ship.fueltanktotalcapacity)}
{if ((event.total - event.amount) / ship.fueltanktotalcapacity) < 0.5:
{set safetycheck to 0}
|elif ((event.total - event.amount) / ship.fueltanktotalcapacity) >= 0.5:
{set safetycheck to 1}}
{if event.source = "Scoop":
{if safetycheck = 0:
{ShipName()} refuelled with
{if round(event.amount) < 1:
less than 1 Ton,
|else approximately {round(event.amount)} Tons.}}
|else {set safetycheck to 1}
{set currentfuel to ship.fueltanktotalcapacity}
{ShipName()} is being refuelled with
{if round(event.amount) < 1:
less than 1 Ton
|else approximately {round(event.amount)} Tons for {event.price} Credits.}
}
{if currentfuel < 0.08:
Warning! Ship running on Fueltank-external reserves. Fuelscooping is required for further Ship operations. Shutdown of non-essential Systems is advised until Fuel is replenished.
|elif currentfuel < 0.16:
Warning: Fuel reserves still at minimum. Leaving without Fuelscooping is not advised! Current amount: {Humanise(event.total)} of {ship.fueltanktotalcapacity} Tons.
|elif currentfuel <= 0.25:
Attention, Fuel reserves still below 75%. Additional Fuelscooping is Advised. Current amount: {Humanise(event.total)} of {ship.fueltanktotalcapacity} Tons.
|elif currentfuel < 0.5:
Attention, Fuel reserves still below 50%. Current amount: {Humanise(event.total)} of {ship.fueltanktotalcapacity} Tons.
|elif safetycheck = 0:
Fuel reserves now within specified safety parameters.}
{if event.total = ship.fueltanktotalcapacity:
{if event.source = "Scoop":
{if safetycheck = 0:
Scoop reports Tank at maximum capacity.}}
|elif event.source = "Market":
Station reports refuelling complete.
}
Great tool, by far my favorite 3rd party one. It makes space a heck of a lot less lonely, especially when exploring.
One thing I've noticed is that EDDI's voice gets a lot louder once I'm docked in a station. I apologize if this has been brought up already, I didn't look through all 52 pages of this thread. Anyway, keep up the great work!
jgm, as not everybody has access to fdev's api, would it be possible for you to update the docs to indicate where you get the details from for the non journal variables?
I'm specifically wanting to know right now where {DEC:Ship total fuel tank capacity} gets it's info from?