how to get dude_obj real one,always

Nirran

Vault Senior Citizen
Modder
seems this doesnt work

Code:
if (has_trait(0, sfall_func0("real_dude_obj"), 73)) then begin
         if ((obj_art_fid(arg0) % 512) == 67) then begin
            item := create_object_sid(276, 0, 0, -1);

and this causes the engine to check the wrong dude obj

Code:
   if (((obj_art_fid(arg0) % 512) == 13) or ((obj_art_fid(arg0) % 512) == 6) or ((obj_art_fid(arg0) % 512) == 45) or ((obj_art_fid(arg0) % 512) == 34) or ((obj_art_fid(arg0) % 512) == 95)) then begin
      if ((has_skill(dude_obj, 13) >= 50) or has_trait(0, dude_obj, 44)) then begin
         random_roll := random(1, 100);
         if (random_roll < (100 - (3 * get_critter_stat(dude_obj, 6)))) then begin
            add_obj_to_inven(arg0, create_object_sid(74, 0, 0, -1));
         end
         else begin
            add_obj_to_inven(arg0, create_object_sid(265, 0, 0, -1));
         end
      end
   end

just want a way of returning stats from the real dude obj,even in 'control party members' mode
 
The engine is not designed to control party members, even after the introduction of a crutch (mod) to control party members, and there are a lot of problems with this.
therefore, I urge everyone not to use control of other NPCs for regular play. :)
 
Last edited:
i generaly dont,im chasing a bug in my mod that occurres when control is active
 
for now it is impossible.
Any request to get dude statistics, while controlling another NPC will return incorrect values.:)
 
Last edited:
Back
Top