the script basically works like this you enter loko's realm and have to pay the ferryman I have two ferrymen set up so when you pay 1 it vanishes and the second one appears and you spawn next to him and a second script visa versa
this is working fine the problem im having is that its taking too many coins. it costs 2 to travel each way but its taking 4 -6 etc etc. I'm sure smallg showed me where I went wrong a while back but its been a while and I've forgot :/ any help I'd be grateful guys this is the last level of the little game im doing
Here's the script :
function ferryman_init(e)
entity_number1 = 61
entity_number2 = 62
end
function ferryman_main(e)
PlayerDist = GetPlayerDistance(e)
if PlayerDist < 150 and g_PlayerHealth > 0 then
Prompt("Use two coins to pay the ferryman press (e)")
if g_coins >= 2 and g_KeyPressE == 1 then
Hide (entity_number1)
Spawn(entity_number2)
TransportToIfUsed(e)
function ferryman2_exit(e)
g_coins=g_coins-2
Destroy(e)
end
end
end
end
Intel i5 4950 Quad core 3.3ghz AMD FX 6300 x6 cores 3.5ghz(unclocked)
8gb Ram 8gb Ram
AMD Radeon 7570 1gb AMD Radeon HD 6670 2gb
and a well fed mouse on a wheel
I only smile because i have absolutely no idea whats going on