StarGGundam2":3lv2pw9r said:Code:Conditional Branch if Left Button is being pressed >>> Change Game Variables 001 add +1 >>> Change Game Variables 002 == -1 >>> Change Game Variables 003 == -1 >>> Change Game Variables 004 == -1 Else >>>Conditional Branch if Right is being pressed >>>>>> Change Game Variables 001 == -1 >>>>>> Change Game Variables 002 add +1 >>>>>> Change Game Variables 003 == -1 >>>>>> Change Game Variables 004 == -1 >>>>>> Else >>>>>> Conditional Branch if Down is being pressed >>>>>>>>> Change Game Variables 001 == -1 >>>>>>>>> Change Game Variables 002 == -1 >>>>>>>>> Change Game Variables 003 add +1 >>>>>>>>> Change Game Variables 004 == -1 >>>>>>>>> Else >>>>>>>>> Conditional Branch if Up is being pressed >>>>>>>>>>>> Change Game Variables 001 == -1 >>>>>>>>>>>> Change Game Variables 002 == -1 >>>>>>>>>>>> Change Game Variables 003 == -1 >>>>>>>>>>>> Change Game Variables 004 add +1 >>>>>>>>>>>> Else >>>>>>>>>>>> Change Game Variables 001 == 0 >>>>>>>>>>>> Change Game Variables 002 == 0 >>>>>>>>>>>> Change Game Variables 003 == 0 >>>>>>>>>>>> Change Game Variables 004 == 0 Conditional Branch if Game Variable 001 is Greater than 1 >>> Conditional Branch if Game Variable 001 is Less than 7 >>>>>> Set Move Route Player >>>>>> Change Speed 4 >>>>>> Else >>>>>> Conditional Branch if Game Variable 001 is Greater than 7 >>>>>>>>> Conditional Branch if Game Variable 001 is Less than 14 >>>>>>>>> Set Move Route Player >>>>>>>>> Change Speed 5 >>>>>>>>> Else >>>>>>>>> Conditional Branch is Game Variable 001 is Greater than 14 >>>>>>>>>>>> Set Move Route Player >>>>>>>>>>>> Change Speed 6 Else Conditional Branch if Game Variable 001 == 0 Change Speed 3 Conditional Branch if Game Variable 002 is Greater than 1 >>> Conditional Branch if Game Variable 002 is Less than 7 >>>>>> Set Move Route Player >>>>>> Change Speed 4 >>>>>> Else >>>>>> Conditional Branch if Game Variable 002 is Greater than 7 >>>>>>>>> Conditional Branch if Game Variable 002 is Less than 14 >>>>>>>>> Set Move Route Player >>>>>>>>> Change Speed 5 >>>>>>>>> Else >>>>>>>>> Conditional Branch is Game Variable 002 is Greater than 14 >>>>>>>>>>>> Set Move Route Player >>>>>>>>>>>> Change Speed 6 Else Conditional Branch if Game Variable 002 == 0 Change Speed 3 Conditional Branch if Game Variable 003 is Greater than 1 >>> Conditional Branch if Game Variable 003 is Less than 7 >>>>>> Set Move Route Player >>>>>> Change Speed 4 >>>>>> Else >>>>>> Conditional Branch if Game Variable 003 is Greater than 7 >>>>>>>>> Conditional Branch if Game Variable 003 is Less than 14 >>>>>>>>> Set Move Route Player >>>>>>>>> Change Speed 5 >>>>>>>>> Else >>>>>>>>> Conditional Branch is Game Variable 003 is Greater than 14 >>>>>>>>>>>> Set Move Route Player >>>>>>>>>>>> Change Speed 6 Else Conditional Branch if Game Variable 003 == 0 Change Speed 3 Conditional Branch if Game Variable 004 is Greater than 1 >>> Conditional Branch if Game Variable 004 is Less than 7 >>>>>> Set Move Route Player >>>>>> Change Speed 4 >>>>>> Else >>>>>> Conditional Branch if Game Variable 004 is Greater than 7 >>>>>>>>> Conditional Branch if Game Variable 004 is Less than 14 >>>>>>>>> Set Move Route Player >>>>>>>>> Change Speed 5 >>>>>>>>> Else >>>>>>>>> Conditional Branch is Game Variable 004 is Greater than 14 >>>>>>>>>>>> Set Move Route Player >>>>>>>>>>>> Change Speed 6 Else Conditional Branch if Game Variable 004 == 0 Change Speed 3 Wait of 1 frames
Slap this on a parallel process
What was the point of your post? Zeriab already provided the OP with a source of a better script or event. That makes my post useless, and yours too. It does not matter what you name variables, as long as the same variable doesn't operate two different things unless you want them too. They aren't anything but values depending on what arrow key you're pressing and how long you're pressing it.jbrist":5m7w97d6 said:Yeah, maybe you should wrap some code tags around that, and also, what the hell are Variables 1, 2, 3 and 4 ? For all LLaw knows, they could be Player HP, Player SP, Terrain Tag, and Map ID.
Maybe you should make your explanation more clear.
StarGGundam2":25zf9eof said:What was the point of your post? Zeriab already provided the OP with a source of a better script or event. That makes my post useless, and yours too. It does not matter what you name variables, as long as the same variable doesn't operate two different things unless you want them too. They aren't anything but values depending on what arrow key you're pressing and how long you're pressing it.jbrist":25zf9eof said:Yeah, maybe you should wrap some code tags around that, and also, what the hell are Variables 1, 2, 3 and 4 ? For all LLaw knows, they could be Player HP, Player SP, Terrain Tag, and Map ID.
Maybe you should make your explanation more clear.
Zeriab":daelwlo7 said:What are you talking about jbrist?
They are numbers. (Or rather contain numbers)
It's obvious from the context what they are used for.
I assumed LLawliet has basic understanding of variables and I am sure StarG did as well.
Explaining how it works is good suggestion (even though that's not exactly what you suggest) since some issues would most likely have been brought forth into the light.
I can break it down to you if you want though ^^
I see no sign of LLaw. I guess they figured out what they wanted. Anyway. I'll explain to you what the numbers are. They are Constants. You set them up under the Constant and there are four of them depending on what arrow key you are pressing.jbrist":19p4yjkj said:I mean though, he hasn't said what the variables contain, obviously some form of numbers, but how does LLaw know what;
Conditional Branch if Left Button is being pressed
>>> Change Game Variables 001 add +1
>>> Change Game Variables 002 == -1
>>> Change Game Variables 003 == -1
>>> Change Game Variables 004 == -1
Means if StarG didn't say what to set the variables up to include, are they just random numbers, does variable 2 contain Map ID ? No one knows cause he didn't explain.
StarGGundam2":3544bhkr said:I see no sign of LLaw. I guess they figured out what they wanted. Anyway. I'll explain to you what the numbers are. They are Constants. You set them up under the Constant and there are four of them depending on what arrow key you are pressing.jbrist":3544bhkr said:I mean though, he hasn't said what the variables contain, obviously some form of numbers, but how does LLaw know what;
Conditional Branch if Left Button is being pressed
>>> Change Game Variables 001 add +1
>>> Change Game Variables 002 == -1
>>> Change Game Variables 003 == -1
>>> Change Game Variables 004 == -1
Means if StarG didn't say what to set the variables up to include, are they just random numbers, does variable 2 contain Map ID ? No one knows cause he didn't explain.
Variables don't really have to equal a specific Object. You can make their value change depending on what function you do. Such as talking to someone more than once. It's just like a Multi Switch with endless possibilities
But it's really a rough system. Cause it doesn't take into fact that the OP wants to tap the arrow keys and it also doesn't work right with 8 directional movement
Well if that's what you were concerned about you shoulda said so. I used four variables for one button press so that the following wouldn't come on if you are at least pressing one buttonjbrist":2y4r324l said:Yeah I know about increasing a variable when a button is pressed, even if it has no significant value, but I don't get why you're using four variables with one button press, thats what's confusing me here, lol.
:x>>>>>>>>>>>> Else
>>>>>>>>>>>> Change Game Variables 001 == 0
>>>>>>>>>>>> Change Game Variables 002 == 0
>>>>>>>>>>>> Change Game Variables 003 == 0
>>>>>>>>>>>> Change Game Variables 004 == 0
Conditional Branch if Left Button is being pressed
>>> Conditional Branch if Variable 001 is Greater than or equal to 75
>>> Change Game Variables 001 == 75
>>> Else
>>> Change Game Variables 001 add +1
Else
>>>Conditional Branch if Right is being pressed
>>>>>> Conditional Branch if Variable 001 is Greater than or equal to 75
>>>>>> Change Game Variables 001 == 75
>>>>>> Else
>>>>>> Change Game Variables 001 add +1
>>>>>> Else
>>>>>> Conditional Branch if Down is being pressed
>>>>>>>>> Conditional Branch if Variable 001 is Greater than or equal to 75
>>>>>>>>> Change Game Variables 001 == 75
>>>>>>>>> Else
>>>>>>>>> Change Game Variables 001 add +1
>>>>>>>>> Else
>>>>>>>>> Conditional Branch if Up is being pressed
>>>>>>>>>>>> Conditional Branch if Variable 001 is Greater than or equal to 75
>>>>>>>>>>>> Change Game Variables 001 == 75
>>>>>>>>>>>> Else
>>>>>>>>>>>> Change Game Variables 001 add +1
>>>>>>>>>>>> Else
>>>>>>>>>>>> Conditional Branch if Variable 001 is Less than or equal to -75
>>>>>>>>>>>> Change Game Variables 001 == -75
>>>>>>>>>>>> Else
>>>>>>>>>>>> Change Game Variables 001 add -1
Â
Conditional Branch if Game Variable 001 is Greater than - 99
>>> Conditional Branch if Game Variable 001 is Less than -25
>>>>>> Set Move Route Player
>>>>>> Change Speed 1
Â
Conditional Branch if Game Variable 001 is Greater than or equal too - 25
>>> Conditional Branch if Game Variable 001 is Less than - 1
>>>>>> Set Move Route Player
>>>>>> Change Speed 2
Â
Conditional Branch if Game Variable 001 is Greater than or equal too - 1
>>> Conditional Branch if Game Variable 001 is Less than + 10
>>>>>> Set Move Route Player
>>>>>> Change Speed 3
Â
Conditional Branch if Game Variable 001 is Greater than or equal too +10
>>> Conditional Branch if Game Variable 001 is Less than + 30
>>>>>> Set Move Route Player
>>>>>> Change Speed 4
Â
Conditional Branch if Game Variable 001 is Greater than or equal too +30
>>> Conditional Branch if Game Variable 001 is Less than + 50
>>>>>> Set Move Route Player
>>>>>> Change Speed 5
Â
Conditional Branch if Game Variable 001 is Greater than or equal too +50
>>> Conditional Branch if Game Variable 001 is Less than + 99
>>>>>> Set Move Route Player
>>>>>> Change Speed 6
Â
Wait of 5 frames
I thought about it. But still. If you were holding down the key or tapping. even if it waited to go constantly up and down. it would still go up and down just at a slower speedjbrist":3kp1rzps said:Maybe you could put a wait on the end so it won't constantly go up/down, could work.