As in thread, since I'm literally fresh to scripting, i have little knowledge on getting the Fo2 Syntax right (as I know neither of the programing languages) i just took things on a hunch, and would like someone to convert this to proper fallout syntax..
this would be a rope script in the section: use_object_on_p_proc
I would like to have this consultated with Fo2 scripting experts, i may in the future add to the script, so it may require further refining, all would be kept in the same thread.
oh yeah almst forgot to write what i wanted to achive:
after using rope on an unconsious ( yeah i used prone as there is no unconsious state according to what i know), the script would check if dude has at least two ropes. end script if not, or destroy two ropes and add the unconsious critter to dude's party. two ropes would then spawn on the unconsious critter, one in left hand slot one in right hand slot, and condition would be set so that when trying to remove the ropes from one the other or both handslots would turn the critter hostile, I'm trying to achive this from outside of a given critter script, as i want it to work on any given critter at least for now, for the sake of simplicity.
this would be a rope script in the section: use_object_on_p_proc
Code:
procedure use_obj_on_p_proc
begin
if combat_is_initialized then terminate_combat else if target_obj(not in(party_member_list ,0) and if (critter_state(target_obj) bwand CRITTER_IS_PRONE) then begin
if pid_item_rope qty<2 end else if pid_item_rope qty>=2 then destroy_mult_objs(pid_item_rope, 2) party_add(target_obj);
add_obj_to_inven(target_obj,pid_item_rope) critter_inven_obj(target_obj, INVEN_TYPE_RIGHT_HAND);
add_obj_to_inven(target_obj,pid_item_rope) critter_inven_obj(target_obj, INVEN_TYPE_LEFT_HAND);
end
if target_obj(is in(party_member_list,0) and
pid_item_rope is_not_in critter_inven_obj(target_obj, INVEN_TYPE_RIGHT_HAND) and or in critter_inven_obj(target_obj, INVEN_TYPE_LEFT_HAND) then set( target_obj) agression level 100%;
start combat
end
I would like to have this consultated with Fo2 scripting experts, i may in the future add to the script, so it may require further refining, all would be kept in the same thread.
oh yeah almst forgot to write what i wanted to achive:
after using rope on an unconsious ( yeah i used prone as there is no unconsious state according to what i know), the script would check if dude has at least two ropes. end script if not, or destroy two ropes and add the unconsious critter to dude's party. two ropes would then spawn on the unconsious critter, one in left hand slot one in right hand slot, and condition would be set so that when trying to remove the ropes from one the other or both handslots would turn the critter hostile, I'm trying to achive this from outside of a given critter script, as i want it to work on any given critter at least for now, for the sake of simplicity.
Last edited: