Starbound

Starbound

Scripted Artificial Intelligence Lattice (Customisable A.I.!)
ilo mute 20 Aug, 2019 @ 9:54pm
Remove pet?
I just hate my snake getting in the way of screenshots. I assume that popping off the panel like one normally does and doing the spawnitem won't work, and I figure that there MUST be a better way anyway with this.
< >
Showing 1-2 of 2 comments
🐱  [developer] 24 Aug, 2019 @ 3:45am 
There's a few ways you could go about this; pet spawning is managed by the objects/spawner/techstation.lua script, which both handles respawning the pet if it dies, and the starter wake up dialog / 1st ship repair

So you could patch out the script entirely if you don't plan on doing that quest anymore (aka not making a new character or cheat your progression), or edit the script to remove the pet spawning part, or trick the script into thinking the pet isn't dead once you've murdered, or just hide the pet without killing it


I've been trying for one hour to do the later so that you could just pop an /entityeval command and be done with it but it seems those pests can walk around if they spawn with 0HP and I couldn't figure out how to spawn them with the invisible status effect, so I gave in and went with the 2nd option: https://steamproxy-script.pipiskins.com/sharedfiles/filedetails/?id=1843836321

There's also this mod but it kills the pet as soon as they spawn, then the techstation will respawn them, and that happens every ~0.5s or so so it was bugging me
https://steamproxy-script.pipiskins.com/sharedfiles/filedetails/?id=733729084

your pick :cozybrawlhalla6:::gun_noir::sadcat:


(for archive's sake, here's what i tried:
set an infinite spawn timer then kill off the pet, didn't work because the station re-sets it's spawnTimer to 0.5 when loading anyway
/entityeval storage.spawnTimer = math.huge /entityeval shouldDie=true
give the pet an invisible + timefreeze status effect, didn't work because stats and status effects are weird + it'd not have it when respawning later
/entityeval status.addPersistentEffects("goaway", {{stat = "invisible", amount = 1}, {stat = "timefreeze", amount = 1}})
set the pet's params to have 0 health (on techstation), pet still spawns fine
/entityeval function setPet()end;;storage.petParams.stats = {maxHealth = { baseValue = 0}, healthRegen = {baseValue = -1}};
:PuzzleBallDONT_KNOW: what can I do
Last edited by 🐱; 24 Aug, 2019 @ 9:03pm
ilo mute 24 Aug, 2019 @ 7:51pm 
Ah, if it's just an entirely separate script, that's fine: I was worried about incompatibilities :V
< >
Showing 1-2 of 2 comments
Per page: 1530 50