44 lines
1.7 KiB
Plaintext
44 lines
1.7 KiB
Plaintext
|
-- ######################################################################
|
||
|
-- #=========================== PRECONDITIONS ==========================#
|
||
|
-- ######################################################################
|
||
|
|
||
|
--====================< Check if actor has required money >====================--
|
||
|
|
||
|
function have_money_to_redforest_guid_redforest()
|
||
|
return greh_mlr_utils_redone.have_money(500)
|
||
|
end
|
||
|
function have_money_to_pripyat_guid_redforest()
|
||
|
return greh_mlr_utils_redone.have_money (3000)
|
||
|
end
|
||
|
function have_money_to_outskirts_guid_redforest()
|
||
|
return greh_mlr_utils_redone.have_money (4000)
|
||
|
end
|
||
|
|
||
|
-- ######################################################################
|
||
|
-- #============================== ACTIONS =============================#
|
||
|
-- ######################################################################
|
||
|
|
||
|
--====================< Take money from actor >====================--
|
||
|
|
||
|
function sell_money_to_redforest_guid_redforest(first_speaker, second_speaker)
|
||
|
dialogs.relocate_money_from_actor(first_speaker, second_speaker, 500)
|
||
|
end
|
||
|
function sell_money_to_pripyat_guid_redforest(first_speaker, second_speaker)
|
||
|
dialogs.relocate_money_from_actor(first_speaker, second_speaker, 3000)
|
||
|
end
|
||
|
function sell_money_to_outskirts_guid_redforest(first_speaker, second_speaker)
|
||
|
dialogs.relocate_money_from_actor(first_speaker, second_speaker, 4000)
|
||
|
end
|
||
|
|
||
|
--====================< Travel to map >====================--
|
||
|
|
||
|
function redforest_guid_redforest(actor,npc,p)
|
||
|
greh_mlr_utils_redone.change_lvl('redforest_guid_redforest')
|
||
|
end
|
||
|
function pripyat_guid_redforest(actor,npc,p)
|
||
|
greh_mlr_utils_redone.change_lvl('pripyat_guid_redforest')
|
||
|
end
|
||
|
function outskirts_guid_redforest(actor,npc,p)
|
||
|
greh_mlr_utils_redone.change_lvl('outskirts_guid_redforest')
|
||
|
end
|