I'm using my own scripts.
I tryed all options - static, dynamic, always active and no. Didn't help
Here my quest givers, Sool (village elder) and Eevnee (his daughter).
Sool:
mainquest = {}
replica = {}
function sool_init(e)
CharacterControlUnarmed(e)
LoadImages("8_15", 0)
replica = 0
Include ("stories/8_15/mantis_quest.lua")
mainquest = 0
end
function sool_main(e)
PlayerDist = GetPlayerDistance(e)
if PlayerDist > 150 then
HideImage(40)
HideImage(41)
HideImage(42)
replica = 0
end
if PlayerDist < 150 and replica == 0 then
RotateToPlayer(e)
SetImagePosition(50,80)
ShowImage(40)
if g_KeyPressE == 1 and replica == 0 then
HideImage(40)
replica = 1
elseif g_KeyPressR == 1 and replica == 0 then
HideImage(40)
replica = 2
end
end
if PlayerDist < 150 and replica == 1 then
RotateToPlayer(e)
SetImagePosition(50,80)
ShowImage(42)
if g_KeyPressF == 1 and replica == 1 then
HideImage(42)
replica = 3
end
end
if PlayerDist < 150 and replica == 2 then
RotateToPlayer(e)
SetImagePosition(50,80)
ShowImage(41)
if g_KeyPressF == 1 and replica == 2 then
HideImage(41)
replica = 3
end
end
if replica == 3 then
SwitchScript(e, "mantis_quest" )
end
end
Eevnee:
mainquest = {}
replica_3 = {}
function eevnee_init(e)
CharacterControlUnarmed(e)
LoadImages("8_15", 0)
replica_3 = 0
Include ("stories/8_15/flower_quest.lua")
mainquest = 0
end
function eevnee_main(e)
PlayerDist = GetPlayerDistance(e)
if PlayerDist > 150 then
HideImage(29)
end
if PlayerDist < 150 then
RotateToPlayer(e)
SetImagePosition(50,80)
ShowImage(29)
end
if mainquest == 1 then
if PlayerDist > 150 then
HideImage(54)
HideImage(55)
HideImage(56)
replica_3 = 0
end
if PlayerDist < 150 and replica_3 == 0 then
RotateToPlayer(e)
SetImagePosition(50,80)
ShowImage(54)
if g_KeyPressE == 1 and replica_3 == 0 then
replica_3 = 1
HideImage(54)
elseif g_KeyPressR == 1 and replica_3 == 0 then
replica_3 = 2
HideImage(54)
HideImage(29)
end
end
if PlayerDist < 150 and replica_3 == 1 then
RotateToPlayer(e)
SetImagePosition(50,70)
ShowImage(55)
if g_KeyPressF == 1 and replica_3 == 1 then
replica_3 = 3
HideImage(55)
end
end
if PlayerDist < 150 and replica_3 == 3 then
RotateToPlayer(e)
SetImagePosition(50,70)
ShowImage(56)
if g_KeyPressW == 1 and replica_3 == 3 then
replica_3 = 4
HideImage(56)
end
end
if PlayerDist < 150 and replica_3 == 4 then
SwitchScript(e, "flower_quest" )
end
end
end
When both persons on the map, only Eevnee works. But if I delete her, Sool starts to work properly.
Maybe its something in .fpe?