Ich habs so gemacht, wie ich dein script verstehe...es klappt einfach net der switch bleibt OFF

Zitat Zitat von EasyEventExporter
- SCRIPT -
<> Change Variable: [1] = X position on map (tiles) of hero
<> Change Variable: [2] = Y position on map (tiles) of hero
<> Wait: 0,1 sec.
<> Change Variable: [3] = X position on map (tiles) of hero
<> Change Variable: [4] = Y position on map (tiles) of hero
<> Fork Condition: If Variable [2] != V[4] then ...
. <> Change Switch: [2] = ON
. <>
: End of fork
<> Fork Condition: If Variable [1] != V[3] then ...
. <> Change Switch: [2] = ON
. <>
: Else ...
. <>
: End of fork
<> Fork Condition: If Switch [2] == ON then ...
. <> Change Variable: [5] = V[3]
. <> Change Variable: [6] = V[4]
. <> Fork Condition: If Hero is facing up then ...
. . <> Change Variable: [6] += 1
. . <>
. : End of fork
. <> Fork Condition: If Hero is facing right then ...
. . <> Change Variable: [6] -= 1
. . <>
. : End of fork
. <> Fork Condition: If Hero is facing down then ...
. . <> Change Variable: [6] -= 1
. . <>
. : End of fork
. <> Fork Condition: If Hero is facing left then ...
. . <> Change Variable: [6] += 1
. . <>
. : End of fork
. <> Change Switch: [2] = OFF
. <>
: End of fork

Und auf dem Event der Folger, Parallel Process:

Zitat Zitat von EasyEventExporter
- SCRIPT -
<> Change Variable: [1] = X position on map (tiles) of hero
<> Change Variable: [2] = Y position on map (tiles) of hero
<> Set Event Location: This event -> (V[1], V[2])
<> Loop
. <> Change Variable: [7] = X position on map (tiles) of this event
. <> Change Variable: [8] = Y position on map (tiles) of this event
. <> Fork Condition: If Switch [2] == ON then ...
. . <> Fork Condition: If Variable [8] > V[6] then ...
. . . <> Move Event: This event, Frq 8, Pattern: Mv down
. . . <>
. . : End of fork
. . <> Fork Condition: If Variable [8] < V[6] then ...
. . . <> Move Event: This event, Frq 8, Pattern: Mv up
. . . <>
. . : End of fork
. . <> Fork Condition: If Variable [7] > V[5] then ...
. . . <> Move Event: This event, Frq 8, Pattern: Mv right
. . . <>
. . : End of fork
. . <> Fork Condition: If Variable [7] < V[5] then ...
. . . <> Move Event: This event, Frq 8, Pattern: Mv left
. . . <>
. . : End of fork
. . <>
. : Else ...
. . <>
. : End of fork
. <> Wait: 0,1 sec.
. <>
: End of loop