/tg/ Station 13 - Modules - TypesVar Details - Proc Details

big_manipulator

Manipulator Core. Main part of the mechanism that carries out the entire process.

Vars

allowed_priority_settingsWhat priority settings are available to use at the moment. We also use this list to sort priorities from ascending to descending.
allowed_types_to_pick_upList where we can set selected type. Taking items by Initialize.
containment_objObj inside manipulator.
drop_hereDir to get turf where we drop items.
drop_item_after_useHere some ui setting we can on/off: If activated: after item was used manipulator will also drop it.
drop_turfTurf where we drop items.
filter_objObj used as filter
manipulate_modeHow will manipulator manipulate the object? drop it out by default.
manipulator_handOther manipulator component.
manipulator_throw_rangeVar for throw item mode: changes the range from which the manipulator throws an object.
onActivate mechanism.
on_workWhen manipulator already working with item inside he don't take any new items.
only_highest_priorityIf acrivated: will select only 1 priority and will not continue to look at the priorities below.
power_use_lvlUsing high tier manipulators speeds up big manipulator and requires more energy.
priority_settings_for_dropPriority settings depending on the manipulator mode that are available to this manipulator. Filled during Initialize.
selected_typeSelected type that manipulator will take for take and drop loop.
selected_type_by_numberJust a lazy number to change selected_type type in array.
take_hereDir to get turf where we take items.
take_turfTurf where we take items.
working_speedHow many time manipulator need to take and drop item.

Procs

change_modeProc called when we changing item interaction mode.
check_next_move2.5 take and drop proc from [take and drop procs loop]: Choose what we will do with our item by checking the manipulate_mode.
check_similaritiesUsing on change_priority: looks for a setting with the same number that we set earlier and reduce it.
create_manipulator_handCreat manipulator hand effect on manipulator core.
do_rotate_animationRotates manipulator hand 90 degrees.
drop_thing3.1 take and drop proc from [take and drop procs loop]: Drop our item. Checks the priority to drop item not only ground but also in the storage.
end_workFourth and last take and drop proc from [take and drop procs loop]: Finishes work and begins to look for a new item for [take and drop procs loop].
finish_manipulationEnd of thirds take and drop proc from [take and drop procs loop]: Starts manipulator hand backward animation.
finish_rotate_animationRotates manipulator hand from 90 degrees to 180 or 0 if backward.
is_work_checkPre take and drop proc from [take and drop procs loop]: Check if we can start take and drop loop
manipulator_lvlCheck servo tier and change manipulator speed, power_use and colour.
on_hand_qdelDeliting hand will destroy our manipulator core.
press_onProc call when we press on/off button
rotate_big_handChanging take and drop turf dirs and also changing manipulator hand sprite dir.
search_type_by_priority_in_drop_turfProc thet return item by type in priority list. Selects item and increasing priority number if don't found req type.
set_up_priority_settingsInit priority settings list for all modes.
start_workSecond take and drop proc from [take and drop procs loop]: Taking our item and start manipulator hand rotate animation.
take_and_drop_turfs_checkChanging take and drop turf tiles when we anchore manipulator or if manipulator not in turf.
throw_thing3.3 take and drop proc from [take and drop procs loop]: Throw item away!!!
try_take_thingFirst take and drop proc from [take and drop procs loop]: Check if we can take item from take_turf to work with him. This proc also calling from ATOM_ENTERED signal.
update_priority_listUpdate priority list in ui. Creating new list and sort it by priority number.

Var Details

allowed_priority_settings

What priority settings are available to use at the moment. We also use this list to sort priorities from ascending to descending.

allowed_types_to_pick_up

List where we can set selected type. Taking items by Initialize.

containment_obj

Obj inside manipulator.

drop_here

Dir to get turf where we drop items.

drop_item_after_use

Here some ui setting we can on/off: If activated: after item was used manipulator will also drop it.

drop_turf

Turf where we drop items.

filter_obj

Obj used as filter

manipulate_mode

How will manipulator manipulate the object? drop it out by default.

manipulator_hand

Other manipulator component.

manipulator_throw_range

Var for throw item mode: changes the range from which the manipulator throws an object.

on

Activate mechanism.

on_work

When manipulator already working with item inside he don't take any new items.

only_highest_priority

If acrivated: will select only 1 priority and will not continue to look at the priorities below.

power_use_lvl

Using high tier manipulators speeds up big manipulator and requires more energy.

priority_settings_for_drop

Priority settings depending on the manipulator mode that are available to this manipulator. Filled during Initialize.

selected_type

Selected type that manipulator will take for take and drop loop.

selected_type_by_number

Just a lazy number to change selected_type type in array.

take_here

Dir to get turf where we take items.

take_turf

Turf where we take items.

working_speed

How many time manipulator need to take and drop item.

Proc Details

change_mode

Proc called when we changing item interaction mode.

check_next_move

2.5 take and drop proc from [take and drop procs loop]: Choose what we will do with our item by checking the manipulate_mode.

check_similarities

Using on change_priority: looks for a setting with the same number that we set earlier and reduce it.

create_manipulator_hand

Creat manipulator hand effect on manipulator core.

do_rotate_animation

Rotates manipulator hand 90 degrees.

drop_thing

3.1 take and drop proc from [take and drop procs loop]: Drop our item. Checks the priority to drop item not only ground but also in the storage.

end_work

Fourth and last take and drop proc from [take and drop procs loop]: Finishes work and begins to look for a new item for [take and drop procs loop].

finish_manipulation

End of thirds take and drop proc from [take and drop procs loop]: Starts manipulator hand backward animation.

finish_rotate_animation

Rotates manipulator hand from 90 degrees to 180 or 0 if backward.

is_work_check

Pre take and drop proc from [take and drop procs loop]: Check if we can start take and drop loop

manipulator_lvl

Check servo tier and change manipulator speed, power_use and colour.

on_hand_qdel

Deliting hand will destroy our manipulator core.

press_on

Proc call when we press on/off button

rotate_big_hand

Changing take and drop turf dirs and also changing manipulator hand sprite dir.

search_type_by_priority_in_drop_turf

Proc thet return item by type in priority list. Selects item and increasing priority number if don't found req type.

set_up_priority_settings

Init priority settings list for all modes.

start_work

Second take and drop proc from [take and drop procs loop]: Taking our item and start manipulator hand rotate animation.

take_and_drop_turfs_check

Changing take and drop turf tiles when we anchore manipulator or if manipulator not in turf.

throw_thing

3.3 take and drop proc from [take and drop procs loop]: Throw item away!!!

try_take_thing

First take and drop proc from [take and drop procs loop]: Check if we can take item from take_turf to work with him. This proc also calling from ATOM_ENTERED signal.

update_priority_list

Update priority list in ui. Creating new list and sort it by priority number.