REXE
Recruit

Hi. Tell please as to me to make in module_scene_props in the form of such code so that to the player the armor was put on?
How change (set_item, "itm_nordic_archer_helmet") ?
插入代码块:
check_broom_1 = (ti_on_scene_prop_use,
[
(store_trigger_param_1, ":agent_id"),
(store_trigger_param_2, ":instance_id"),
(multiplayer_is_server),
(assign, ":cost", 100), #gold required for refilling arrows
(agent_get_player_id,":player_no",":agent_id"),
(try_begin),
(player_is_active, ":player_no"),
(player_get_gold, ":player_gold", ":player_no"),
(ge, ":player_gold", ":cost"),
(set_item, "itm_nordic_archer_helmet"),
(val_sub, ":player_gold", ":cost"),
(player_set_gold, ":player_no", ":player_gold", multi_max_gold_that_can_be_stored),
(try_end),
])
How change (set_item, "itm_nordic_archer_helmet") ?




