Search results

  1. Z

    Item weight and inventory stats - Wants to make item weigh less than 1 lbs.

    Thanks Mr. Stalin and Cyrus for explaining. It works! One more question, and this is entirely for the sake of understanding for the future: How come this code works? procedure delete_extra_weights(variable weight_amount) begin hook_stop := true; if (weight_amount<1) then begin...
  2. Z

    Item weight and inventory stats - Wants to make item weigh less than 1 lbs.

    procedure start begin variable orig_owner; variable the_item; variable num_removed_objects; variable reason_removed; variable dest_obj; // variable item_extra_weight; variable extra_weight_ground_obj; variable amount_to_destroy; variable stimpaks_amount_before...
  3. Z

    Item weight and inventory stats - Wants to make item weigh less than 1 lbs.

    Update. I got the loop to work(with destroy_object), I think. The game got stuck, so I guess the loop is working and my function is buggy. The debug screen says: "[sfall] the hook id 9 could not be executed"
  4. Z

    Item weight and inventory stats - Wants to make item weigh less than 1 lbs.

    I tried scripting a loop, but it's not working. procedure delete_extra_weights(variable weight_amount) begin if (weight_amount<1) then begin return; end while(weight_amount!= 0) do begin if obj_carrying_pid_obj(dude_obj, PID_EXTRA_WEIGHT) >0 then begin...
  5. Z

    Item weight and inventory stats - Wants to make item weigh less than 1 lbs.

    For now, only thing I get is this spam massage: https://ibb.co/Pc7TdLW
  6. Z

    Item weight and inventory stats - Wants to make item weigh less than 1 lbs.

    So what does it mean? I can't use this function? should I have done something different? BTW, I tried using destroy_mult_objs, but I can't get it to work (expecting";" error). Also, I tried using loops to use the regular remove action, but I don't know how to run a simple loop. So what should I...
  7. Z

    Item weight and inventory stats - Wants to make item weigh less than 1 lbs.

    My intention is to add "real" items, that weigh 1 lbs., to the dude's inventory. The number of added items will depend on the number of stimpaks you have in your inventory. So if you have 1 stimpak, it will add 1 "real" item to your inventory, and it will weigh 1 lbs.. If you get one more...
  8. Z

    Item weight and inventory stats - Wants to make item weigh less than 1 lbs.

    Cool. So how would I do it if these are two variables? display_msg("number" + ceil(a / b));
  9. Z

    Item weight and inventory stats - Wants to make item weigh less than 1 lbs.

    About "ceil", "round", "floor" - Do they even work? I tried these simple lines: display_msg("number" + ceil(4 / 5)); display_msg("number" + round(4 / 5)); display_msg("number" + floor(4 / 5)); All displayed "number0".
  10. Z

    Item weight and inventory stats - Wants to make item weigh less than 1 lbs.

    Okay, you guys.. I need your help again. My current script is causing me issues. procedure start begin variable orig_owner; variable the_item; variable num_removed_objects; variable reason_removed; variable dest_obj; // variable item_extra_weight; variable...
  11. Z

    Item weight and inventory stats - Wants to make item weigh less than 1 lbs.

    I'm sooo jealous right now.. Anyway, is there any chance this might get fixed? :-P Thanks for the suggestion, Cyrus. I'll try it out.
  12. Z

    Item weight and inventory stats - Wants to make item weigh less than 1 lbs.

    Gotcha. I tried it out a few times, and it doesn't seem to work. Is it possible it isn't actually implemented in the engine or something?
  13. Z

    Item weight and inventory stats - Wants to make item weigh less than 1 lbs.

    The claw is not flagged as hidden item. Plus, I think the "no steal" flag prevents from looting, isn't it? So it suppose to not be shown in my inventory if flagged? Because it doesn't work for me.
  14. Z

    Fallout 2 utility sfall script editor - dialog functions config?

    I personally don't use this editor (maybe next version will change that?), but I can tell you what each of those mean probably. This is a standard conversation node: #define NAME SCRIPT_ACKLINT procedure Node003 begin Reply(mstr(110)); NOption(135,barter1,004)...
  15. Z

    Item weight and inventory stats - Wants to make item weigh less than 1 lbs.

    An update for those who are interested. Following burn's suggestion, I've decide that the most practical solution would be to add a proto item called "extra weight", which weighs 1 lbs. and to script adding it (them) to dude's inventory whenever a certain amount of items is in dude's inventory...
  16. Z

    Item weight and inventory stats - Wants to make item weigh less than 1 lbs.

    Yes, of course. I'm trying to work with the engine limitations and to script a work around.
  17. Z

    Item weight and inventory stats - Wants to make item weigh less than 1 lbs.

    Also, the most important reason I want it to be done is it could drastically effect ammo in its entirety. I want ammo to come in smaller cartridges, so u can make merchants have ammo, but not as much ammo, since there is no feeling of scarcity for ammo. Also if u loot bodies, u can find less...
  18. Z

    Item weight and inventory stats - Wants to make item weigh less than 1 lbs.

    Thanks. I like the idea of the inventory item which gets deleted. Though I disagree about it being niche. This will prevent stimpak/nuka cola hoarding, etc. Which is not that big of a deal in and of itself, but is prevalent in most walkthroughs, and kind of silly IMO.
  19. Z

    Item weight and inventory stats - Wants to make item weigh less than 1 lbs.

    Thanks for thinking along. I am basically stuck at the same point you wrote about. About this: I think that shouldn't be a problem, since the proto's weight will always be lower than the modified weight, therefore no engine/unmodified script limitations on inventory's weight should be applied...
Back
Top