LosAngeles
Member
Hello! I was wondering whether someone knows how I can switch between two scripts. I would like to switch between the "train actor script"(which I want to use in dungeons and houses) and the "squad movement script"(I want to use it outside). I thought about creating a switch and define it in a script and the use it with a teleporting event...
It would look the following:
Test_Switch_Index = 10
if Test_Switch = true
---script---
end
in first the script and
if Test_Switch = false
---script---
end
in the second one
and then as an example:
Transfer Player:[002],(005,011)
Control Switches:[0010:Test Switch]=ON
in the event
But it does not work at all. Instead I now have two sprites on the map, 1 moves in the sqad movement way and the other one follows me with train actor!
Has anyone an idea of how I can fix this, or maybe a better idea of changing between these scripts?
It would look the following:
Test_Switch_Index = 10
if Test_Switch = true
---script---
end
in first the script and
if Test_Switch = false
---script---
end
in the second one
and then as an example:
Transfer Player:[002],(005,011)
Control Switches:[0010:Test Switch]=ON
in the event
But it does not work at all. Instead I now have two sprites on the map, 1 moves in the sqad movement way and the other one follows me with train actor!
Has anyone an idea of how I can fix this, or maybe a better idea of changing between these scripts?