CosmicBlazer
Batman
- 190
- Posts
- 12
- Years
- USA
- Seen Sep 26, 2016
Alright, I got my first level script working, but the problem is that it keeps activating. i have setvar 4000 0x1 used.
Second, "So, if we take the situation above where we had the var as 0x4050 and the value at 0 and we don't want the script to run again, simply add this to the end of your script. setvar 4050 0x1" quoted from the Flags,Vars and Script Tutorial thread. I did this except had 4000 has the var, but it keeps activating.
Third (sorry last one xD) quoted from the same thread "Vars are like the X in math. They can be anything up to 0xFFFF which is a little over 65,000. Like flags, they are used to track progression throughout the game, but they are also used to store information."
Does this imply that I could use the var 4000 as many times?
Spoiler:
#dynamic 0x800000
#org @start
checkflag 0x82F
if 0x1 goto @dont
applymovement 0x1 @move
waitmovement 0x0
msgbox @hi 0x6
setflag 0x82F
applymovement 0x1 @do
waitmovement
setvar 0x4000 0x0
release
end
#org @dont
clearflag 0x82F
release
end
#org @move
#raw 0x62
#raw 0x11
#raw 0x13
#raw 0x13
#raw 0x4A
#raw 0xfe
#org @hi
= Hey hunny. Here are your \n Running shoes.
#org @do
#raw 0x12
#raw 0x12
#raw 0x10
#raw 0x2
#org @start
checkflag 0x82F
if 0x1 goto @dont
applymovement 0x1 @move
waitmovement 0x0
msgbox @hi 0x6
setflag 0x82F
applymovement 0x1 @do
waitmovement
setvar 0x4000 0x0
release
end
#org @dont
clearflag 0x82F
release
end
#org @move
#raw 0x62
#raw 0x11
#raw 0x13
#raw 0x13
#raw 0x4A
#raw 0xfe
#org @hi
= Hey hunny. Here are your \n Running shoes.
#org @do
#raw 0x12
#raw 0x12
#raw 0x10
#raw 0x2
Second, "So, if we take the situation above where we had the var as 0x4050 and the value at 0 and we don't want the script to run again, simply add this to the end of your script. setvar 4050 0x1" quoted from the Flags,Vars and Script Tutorial thread. I did this except had 4000 has the var, but it keeps activating.
Third (sorry last one xD) quoted from the same thread "Vars are like the X in math. They can be anything up to 0xFFFF which is a little over 65,000. Like flags, they are used to track progression throughout the game, but they are also used to store information."
Does this imply that I could use the var 4000 as many times?