Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plotscript, movementhijack, begin
- #bluh bluh
- #nowait
- #This is a script for a custom movement system exactly the same as the OHR's default one, except that this one makes it easier to put in nifty stuff like stairs without completely messing everything up.
- #Zone 4 shows that the area in question is for atypical stuff, while the other zones are used in the specific things.
- #Big thanks to #slimesalad [especially James Paige] for assistance, etc.
- suspend player
- variable (x)
- variable (y)
- x := hero x (0)
- y := hero y (0)
- if (read zone (4,x,y)), then(
- if (read zone (1,x,y)), then(
- show value (1)
- if (key is pressed (key:Right)) then(
- suspend hero walls
- walk hero (0, up, 1)
- walk hero (0, right, 1)
- set hero direction (0, right)
- wait for hero
- resume hero walls
- )
- if (key is pressed (key:Left)) then (
- suspend hero walls
- walk hero (0, left, 1)
- walk hero (0, down, 1)
- set hero direction (0, left)
- wait for hero
- resume hero walls
- )
- if (key is pressed (key:Down)) then(
- walk hero (0, down, 1)
- set hero direction (0, down)
- wait for hero
- )
- if (key is pressed (key:Up)) then(
- walk hero (0, up, 1)
- set hero direction (0, up)
- wait for hero
- )
- )
- if (read zone (2,x,y)), then(
- show value (2)
- if (key is pressed (key:Right)) then(
- suspend hero walls
- walk hero (0, up, 1)
- walk hero (0, right, 1)
- set hero direction (0, right)
- wait for hero
- resume hero walls
- )
- if (key is pressed (key:Left)) then(
- walk hero (0, left, 1)
- set hero direction (0, left)
- wait for hero
- )
- if (key is pressed (key:Down)) then(
- walk hero (0, down, 1)
- set hero direction (0, down)
- wait for hero
- )
- if (key is pressed (key:Up)) then(
- walk hero (0, up, 1)
- set hero direction (0, up)
- wait for hero
- )
- )
- if (read zone (3,x,y)), then(
- show value (3)
- if (key is pressed (key:Left)) then (
- suspend hero walls
- walk hero (0, left, 1)
- walk hero (0, down, 1)
- set hero direction (0, left)
- wait for hero
- resume hero walls
- )
- if (key is pressed (key:Right)) then(
- walk hero (0, right, 1)
- set hero direction (0, right)
- wait for hero
- )
- if (key is pressed (key:Down)) then(
- walk hero (0, down, 1)
- set hero direction (0, down)
- wait for hero
- )
- if (key is pressed (key:Up)) then(
- walk hero (0, up, 1)
- set hero direction (0, up)
- wait for hero
- )
- )
- if (read zone (5,x,y)), then(
- show value (5)
- if (key is pressed (key:Right)) then(
- suspend hero walls
- walk hero (0, down, 1)
- walk hero (0, right, 1)
- set hero direction (0, right)
- wait for hero
- resume hero walls
- )
- if (key is pressed (key:Left)) then (
- suspend hero walls
- walk hero (0, left, 1)
- walk hero (0, up, 1)
- set hero direction (0, left)
- wait for hero
- resume hero walls
- )
- if (key is pressed (key:Down)) then(
- walk hero (0, down, 1)
- set hero direction (0, down)
- wait for hero
- )
- if (key is pressed (key:Up)) then(
- walk hero (0, up, 1)
- set hero direction (0, up)
- wait for hero
- )
- )
- if (read zone (6,x,y)), then(
- show value (6)
- if (key is pressed (key:Right)) then(
- suspend hero walls
- walk hero (0, down, 1)
- walk hero (0, right, 1)
- set hero direction (0, right)
- wait for hero
- resume hero walls
- )
- if (key is pressed (key:Left)) then(
- walk hero (0, left, 1)
- set hero direction (0, left)
- wait for hero
- )
- if (key is pressed (key:Down)) then(
- walk hero (0, down, 1)
- set hero direction (0, down)
- wait for hero
- )
- if (key is pressed (key:Up)) then(
- walk hero (0, up, 1)
- set hero direction (0, up)
- wait for hero
- )
- )
- if (read zone (7,x,y)), then(
- show value (7)
- if (key is pressed (key:Left)) then (
- suspend hero walls
- walk hero (0, left, 1)
- walk hero (0, up, 1)
- set hero direction (0, left)
- wait for hero
- resume hero walls
- )
- if (key is pressed (key:Right)) then(
- walk hero (0, right, 1)
- set hero direction (0, right)
- wait for hero
- )
- if (key is pressed (key:Down)) then(
- walk hero (0, down, 1)
- set hero direction (0, down)
- wait for hero
- )
- if (key is pressed (key:Up)) then(
- walk hero (0, up, 1)
- set hero direction (0, up)
- wait for hero
- )
- )
- )
- #when time comes, add stuff here.
- else(
- if (key is pressed (key:Right)) then(
- walk hero (0, right, 1)
- set hero direction (0, right)
- wait for hero
- )
- if (key is pressed (key:Left)) then(
- walk hero (0, left, 1)
- set hero direction (0, left)
- wait for hero
- )
- if (key is pressed (key:Down)) then(
- walk hero (0, down, 1)
- set hero direction (0, down)
- wait for hero
- )
- if (key is pressed (key:Up)) then(
- walk hero (0, up, 1)
- set hero direction (0, up)
- wait for hero
- )
- )
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement