Divergent/mods/Redone Limansk and Hospital/gamedata/scripts/greh_dialogs_mlr_redone.script

44 lines
1.7 KiB
Plaintext
Raw Normal View History

2024-03-17 20:18:03 -04:00
-- ######################################################################
-- #=========================== 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