Potential Bug: I think this started with the latest release, but EDDI now tells me that every planet I scan is unsuitable for landing, even if it has planetary bases on it, let alone others that clearly show as landable in the game. Kind of miss getting all the extra info it gives with landable planets.
Here is an example of an occasionally script that works:
{Occasionally(4, "You now have {Humanise(cmdr.credits + (event.amount * event.price))} credits.")}
From the Help Button:
Occasionally()
This function will take its argument 1/nth of the time, the rest of time discarding it.
Occasionally() takes two arguments: n, and the text argument.
Common usage of this is to provide additional text that is said now and again but would become irritating if said all the time, for example:
Boost engaged. {Occasionally(7, "Hold on to something.")}
Note that Occasionally() works on random numbers rather than counters, so in the above example the additional text will not show up every 7th time you boost but will show up on average 1/7 of the times that you boost.
{if system.distancefromhome:
{Occasionally(7, "{OneOf(\"You are\", \"Current location is\", \"You are now\")} {Humanise(system.distancefromhome)} lightyears from {OneOf(\"home\", \"{P(homesystem.name)}\")}.")}
}
{if system.distancefromhome:
{OneOf("","","","","","","","","","","","","","", "{OneOf(\"You are\", \"Current location is\", \"You are now\")} {Humanise(system.distancefromhome)} lightyears from {OneOf(\"home\", \"{P(homesystem.name)}\")}.")}
}
{Occasionally(7, "{OneOf(\"You are\", \"Current location is\", \"You are now\")} {Humanise(system.distancefromhome)} lightyears from {OneOf(\"home\", \"{P(homesystem.name)}\")}
Hi there, I start to try to look inside the EDDI scripts and I have some little questions
I have also problems with the Occasionally, for exemple when I put
{Occasionally(2, "test occasionally.")}
I have never the speech "test occasionally."
when i put
{OneOf("","test occasionally.")}
I have the speech test around 50% of the time
I don't understand my mistake with the Occasionnaly
Another problem is with the script FSD engaged. With the problem i have with the Occasionally, i replace the lines
ByCode:{if system.distancefromhome: {Occasionally(7, "{OneOf(\"You are\", \"Current location is\", \"You are now\")} {Humanise(system.distancefromhome)} lightyears from {OneOf(\"home\", \"{P(homesystem.name)}\")}.")} }
Code:{if system.distancefromhome: {OneOf("","","","","","","","","","","","","","", "{OneOf(\"You are\", \"Current location is\", \"You are now\")} {Humanise(system.distancefromhome)} lightyears from {OneOf(\"home\", \"{P(homesystem.name)}\")}.")} }
but the distance never come, so, I replace by just (remove the if)
Code:{Occasionally(7, "{OneOf(\"You are\", \"Current location is\", \"You are now\")} {Humanise(system.distancefromhome)} lightyears from {OneOf(\"home\", \"{P(homesystem.name)}\")}
The {P(homesystem.name)} return correctly the Sol name i put on Commander Details, but the {Humanise(system.distancefromhome)} return always 0
Any clues about that?
The landable status in the body report script is using the reportbody function. This function relies on the data that is on EDDB. I've found reportbody to not be reliable. I've switched to using the body scanned script and a combination of using event and reportbody to get the details I want.
Here is my body scanned script:
https://forums.frontier.co.uk/showt...mands-Thread?p=5714701&viewfull=1#post5714701
Your script seems to be working fine for the most part, as I'm getting a lot more information about planets, but still getting "the landable status of this planet is unable to be detected" on landable planets (and all other planets), instead of just "Unsuitable for landing". Any ideas how to get that info pulled in?
test value is {Humanise(system.distancefromhome)}
{if system.distancefromhome:
{Occasionally(2, "{OneOf(\"You are\", \"Current location is\", \"You are now\")} {Humanise(system.distancefromhome)} lightyears from {OneOf(\"home\", \"{P(homesystem.name)}\")}.")}
}
{_ Context }
{SetState('eddi_context_last_subject', 'fsd')}
{SetState('eddi_context_last_action', 'engage')}
{SetState('eddi_context_system_name', event.system)}
{SetState('eddi_context_system_system', event.system)}
{if event.target = 'Hyperspace':
{_ Rewrite context to represent a jump }
{set MyDistance to system.distancefromhome)}
{SetState('eddi_context_last_subject', 'jump')}
{SetState('eddi_context_last_action', 'start')}
{set system to SystemDetails(event.system)}
{_ Wait for the FSD countdown and initial jump}
{Pause(6000)}
{OneOf("Destination confirmed","Jump in progress","Telemetry obtained")}.
{ShipName()} is {OneOf("heading to", "on route to", "travelling to", "in transit to")} the {P(system.name)} system.
{if system.name = homesystem.name:
Welcome home, {F("Honorific")}
|else:
{if event.stellarclass = "D":
Caution: white dwarf detected.
|elif event.stellarclass = "N":
Caution: neutron star detected.
|elif event.stellarclass = "H":
Caution: black hole detected.
|elif event.stellarclass != 'F' && event.stellarclass != 'O' && event.stellarclass != 'G' && event.stellarclass != 'K' && event.stellarclass != 'B' && event.stellarclass != 'A' && event.stellarclass != 'M':
Information: arrival star is not scoopable.
}
{if lastsystem.allegiance && lastsystem.allegiance != "None" && lastsystem.allegiance != "Independent" && (!system.allegiance || system.allegiance = "None" || system.allegiance = "Independent"):
You {OneOf("are leaving", "have left", "are no longer in")} {lastsystem.allegiance} space.
|elif lastsystem.allegiance && lastsystem.allegiance != system.allegiance && system.allegiance && system.allegiance != "None":
You {OneOf("are now in", "have entered", "are entering")} {system.allegiance} space.
{if cmdr.title != "Commander":
Welcome back {F("Honorific")}.
}
}
{if system.visits = 0:
This is your first visit to this system
|elif system.visits = 1:
This is your second visit to this system
|elif system.visits = 2:
This is your third visit to this system
|elif system.visits = 3:
This is your fourth visit to this system
|else:
You have visited this system {system.visits} times
}.
{if !system.population:
{OneOf("This system is unpopulated","There is no human presence here", "Humans have yet to colonise this system")}.
|else:
{F("System report")}
}
test value is {Humanise(MyDistance)}
{if MyDistance :
{Occasionally(7, "{OneOf(\"You are\", \"Current location is\", \"You are now\")} {Humanise (MyDistance)} lightyears from {OneOf(\"home\", \"{P(homesystem.name)}\")}.")}
}
{if system.comment:
You made a {OneOf("note", "comment", "remark")} {OneOf("about", "for", "on")} this system. It {OneOf("is as follows", "says", "reads", "is")} {system.comment}.
}
}
}
Hello cmdrs and scripters! Any fix possible for this?
https://github.com/cmdrmcdonald/EliteDangerousDataProvider/issues/253#issuecomment-319975418
It's rly annoying and saddens me mucho...![]()
I have only a passing acquaintance with the C# and .NET side of things.
That said, I figure jgm may have some stuff going on IRL.
I've noticed that if I do a Wake Scan , and find something I can't say TARGET to Voice attack and have it respond to the next wake , if EDDI is telling me about the last Wake Scan I just found
( also posted in the other thread as not sure where the issue is)
I just double checked the player journal to be sure. There is no 'wake scanned' event in the player journal or accessible by EDDI. Do you mean a body scan?