8 years ago
Autosolve for needs (trying to figure out how to reference it elsewhere)
What I essentially want is at the end of a (successful) interaction, the TargetSim queues up an interaction and goes and does it (in this particular case, I'm looking for queuing up Sleep, but there are others I'd like to get working as well).
I looked at the code for "Dare to Streak" and "Woohoo" and copied the general scheme of "continuation," but my problem seems to be that the interactions I'm choosing simply aren't the right ones (I did get one SI to work, Push Ups). I tried "generic_Bed_Sleep" as well as "energy-route-fail", but neither is actually doing anything. I also tried giving the continuation a target (Object), giving it no target code at all, and giving it "Invalid", like in Dare to Streak.
Ideally, what I want it to do is use whatever scheme the autosolve button does... which in the case of Energy, I assume looks around for places to sleep and picks something from what's available/nearest (or fails if there is nothing nearby). I can't seem to find any reference to it in the XML though. There's the autosolve failure ("energy-route-fail") but that doesn't seem to work, for one, and it looks like it's for when you fail to the point that autonomy does an auto-override and forces your sim to do something (not the same as clicking autosolve in the interface, which can be canceled). So maybe it's all scripting?
I looked at the code for "Dare to Streak" and "Woohoo" and copied the general scheme of "continuation," but my problem seems to be that the interactions I'm choosing simply aren't the right ones (I did get one SI to work, Push Ups). I tried "generic_Bed_Sleep" as well as "energy-route-fail", but neither is actually doing anything. I also tried giving the continuation a target (Object), giving it no target code at all, and giving it "Invalid", like in Dare to Streak.
Ideally, what I want it to do is use whatever scheme the autosolve button does... which in the case of Energy, I assume looks around for places to sleep and picks something from what's available/nearest (or fails if there is nothing nearby). I can't seem to find any reference to it in the XML though. There's the autosolve failure ("energy-route-fail") but that doesn't seem to work, for one, and it looks like it's for when you fail to the point that autonomy does an auto-override and forces your sim to do something (not the same as clicking autosolve in the interface, which can be canceled). So maybe it's all scripting?