Fallout 2 mod Help with NPC lines not displaying

Goat_Boy

Still Mildly Glowing
Hi, I'm working on a companion mod and I'm having trouble with an NPCs floats not triggering under conditions I have set with my script.

I've made multiple scripts using the same commands and they work fine so I'm not sure what's causing issues with this script.

The dialogue floats are set in critter_p_proc, map_enter_p_proc and timed_event_p_proc.
They should trigger when the party member enters certain maps (comment on the location) and/or if there are other specific companions in the party. Similar to what the vanilla companions do but by with more lines.

I based these commands on the source script for the Better Miria mod.

I'll upload both the script that isn't working properly (cmangel) and one that works fine (cmmason).

If anybody knows a more efficent way to do this, I'll love to hear it! :D
 

Attachments

Add debug messages like display_msg("my test") spread out over the code, so that you can figure out when it won't trigger something. Then you can slowly figure out which condition is the issue and then investigate why the condition is the issue. I did a quick peak at your script, but it looks like some half-decompiled sources again, which means I have no idea what's going on everywhere. Like, wtf is "has_trait(1, self_obj, 666)" supposed to mean. I'm not going to look it up.
 
That "trait 666" line is when an NPC is crippled, I copy pasted those decompiled lines but the script itself is source.

I did a very thorough search to figure out the issue but I haven't found anything, which is why I reached out here for help. Thanks for the debug linea tip though!

EDIT:
I take back the "thorough search" bit :razz: issue was the float lines being triggered if a different companion was in the party instead of the one the script is for.
 
Last edited:
Back
Top