Plugged in your code and works as expected. You da man.
I did however encounter an unexpected anomaly. Settlements with + or ++ or (or more) after them get read out as "Cenker Gateway Plus Plus"
I'd like to remove (filter) out the occurrences of "+" whether its one, two, three or more?
Ah yeah, sorry about that. I rarely go to settlements with security, so I'd forgotten about those. I had meant to do something about removing them from my original script too, but just forgot.
Anyway, it's an easy fix. Replace your Settlement Approached script with the following:-
Code:
{set settlement to event.name}
{while slice(settlement, len(settlement)-1) = "+" || slice(settlement, len(settlement)-1) = " ":
{set settlement to slice(settlement, 0, len(settlement)-1)}
}
{SetState('settlement_approached', settlement)}
{SetState('settlement_approach_time', SecondsSince(0))}
-=] Darkcyde [=-
EDIT: I've tested it in game now, and it works fine.
Last edited: