[Script question]How to change race notoriety?
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
[Script question]How to change race notoriety?
Hi.
So, I'm toying with the idea of having my character stranded in an entirely hostile universe, where everyone is my enemy and I have to rely on whatever I have available to get by. I have most of it set up via scripts and mods that are already available, but I need something that will change my starting race to hostile as well. That is, if I start as Terran, I want to change my notoriety to, for example, -333 for Terran (and ATF) after I've set everything up. How do I do this?
Also, since my scripting experience is limited to bumbling my way through a script of about three lines five years ago, please explain like I'm five. I can open the script editor and set it up to make a new script, but that's about it.
So, I'm toying with the idea of having my character stranded in an entirely hostile universe, where everyone is my enemy and I have to rely on whatever I have available to get by. I have most of it set up via scripts and mods that are already available, but I need something that will change my starting race to hostile as well. That is, if I start as Terran, I want to change my notoriety to, for example, -333 for Terran (and ATF) after I've set everything up. How do I do this?
Also, since my scripting experience is limited to bumbling my way through a script of about three lines five years ago, please explain like I'm five. I can open the script editor and set it up to make a new script, but that's about it.
I'm sorry, I can't hear you over the sound of how awesome I am
DiDs:
Eye of the storm Completed
Eye of the storm - book 2 Inactive
Black Sun - Completed
Endgame - Completed
DiDs:
Eye of the storm Completed
Eye of the storm - book 2 Inactive
Black Sun - Completed
Endgame - Completed
1/ When you create a script prefixed by "setup.", this script will automatically be triggered every time you load or start a game. For instance: "setup.Mayhem".
2/
That's the command you need. It's a good habit to make it both ways, even though it's useless for the player.
2/
Code: Select all
set notoriety between [Player] and [Terran] to -333 points
set notoriety between [Terran] and [Player] to -333 points
I'm not as knowledgeable as these guys but I remember that the friend/foe status of an NPC ship doesn't just change suddenly because your notoriety has changed but it gets applied when it spawns so some people ran scripts that killed the whole universe so it ships respawns with the right friend/foe status. Also happens for stations I think. But I could be wrong.
X3LU 1.5.2/1.7.0 Youtube series with: IEX 1.5b + LUVi, SIaF r7 (previously also used Phanon Plus 4.02, Revelation Plus 1.04, Diverse Game Starts - LU Edition)
[ external image ]
[ external image ]
Just tested this and it worked like a charm, although I was a bit confused for a sec since Betty didn't tell me I had lost recognition.Joubarbe wrote:1/ When you create a script prefixed by "setup.", this script will automatically be triggered every time you load or start a game. For instance: "setup.Mayhem".
2/
That's the command you need. It's a good habit to make it both ways, even though it's useless for the player.Code: Select all
set notoriety between [Player] and [Terran] to -333 points set notoriety between [Terran] and [Player] to -333 points
Anyway, since it means I can now bust my character down from the second highest rank to something that's more fitting for someone who's just been accused of stealing a Kyoto, I'm a very happy camper. Thanks a lot, guys.
I'm sorry, I can't hear you over the sound of how awesome I am
DiDs:
Eye of the storm Completed
Eye of the storm - book 2 Inactive
Black Sun - Completed
Endgame - Completed
DiDs:
Eye of the storm Completed
Eye of the storm - book 2 Inactive
Black Sun - Completed
Endgame - Completed
It gets a little bit more complicated then:
id=54 -> "you have gained recognition"
id=55 -> "you have lost recognition"
Code: Select all
SetBountyRep:
$oldRep = $currentRace-> get notoriety title to race [Player]: text=[FALSE]
$oldRep.raw = get notoriety from race $currentRace to race [Player]
$newRep.raw = $oldRep.raw + $currentRep
set notoriety between $currentRace and [Player] to $newRep.raw points
$newRep = $currentRace-> get notoriety title to race [Player]: text=[FALSE]
if $oldRep != $newRep
$t = $currentRace-> get notoriety title to race [Player]: text=[TRUE]
$t = $currentRace + ': ' + $t
display subtitle text: text=$t duration=12000 ms
START speak text: page=13 id=54 priority=10
end
endsub
id=55 -> "you have lost recognition"