View Single Post
  #44    
Old July 17th, 2008, 09:17 AM
KhaosKnight's Avatar
KhaosKnight
The 1 and only Khaotic Hacker
 
Join Date: Dec 2007
Nature: Relaxed
Quote:
Originally Posted by cooley View Post
I dunno, xD
I've tried to do that with Level scripts, but it'll only work if you use "setmaptile" scripts or "On entering map/not on menu close" or "Load handler to 0x03000F28"

But the scirpts I just mentioned, they can't use messages, applymovement, or anything that requires "Pointer to data to load". They are however very useful, and can check if a flag has been set, then do something else. These are some of the many compatible commands I've encountered.

checkflag (0x2B
clearflag (0x2A)
hidesprite (0x53)
movesprite2 (0x63)
showsprite (0x55)
setfarbyte (0x13)
setflag (0x29)
spriteface (0x5B)
writebytetooffset (0x11)

Ok, so like if i was going to make a setmaptile script i cant make it like this

Code:
  
#Dynamic 0x800000
 
#org @main
checkflag 0x201
if 0x1 goto @change
release
end
 
#org @change
movesprite2 0x15 0x11 0x08
setmaptile 0x14 0x7 0x78 0x1
setmaptile 0x15 0x7 0x79 0x1
setmaptile 0x16 0x7 0x79 0x1
setmaptile 0x17 0x7 0x7A 0x1
setmaptile 0x14 0x8 0x189 0x0
setmaptile 0x15 0x8 0x189 0x0
setmaptile 0x16 0x8 0x189 0x0
setmaptile 0x17 0x8 0x189 0x0
setmaptile 0x14 0x9 0x3E 0x1
setmaptile 0x15 0x9 0x3E 0x1
setmaptile 0x16 0x9 0x3E 0x1
setmaptile 0x17 0x9 0x3E 0x1
setmaptile 0x14 0xA 0x1 0x0
setmaptile 0x15 0xA 0x1 0x0
setmaptile 0x16 0xA 0x1 0x0
setmaptile 0x17 0xA 0x1 0x0
release
end

i have to make it like this for it to work?

Code:
 
#Dynamic 0x800000
 
#org @main
checkflag 0x201
if 0x0 goto @end
movesprite2 0x15 0x11 0x08
setmaptile 0x14 0x7 0x78 0x1
setmaptile 0x15 0x7 0x79 0x1
setmaptile 0x16 0x7 0x79 0x1
setmaptile 0x17 0x7 0x7A 0x1
setmaptile 0x14 0x8 0x189 0x0
setmaptile 0x15 0x8 0x189 0x0
setmaptile 0x16 0x8 0x189 0x0
setmaptile 0x17 0x8 0x189 0x0
setmaptile 0x14 0x9 0x3E 0x1
setmaptile 0x15 0x9 0x3E 0x1
setmaptile 0x16 0x9 0x3E 0x1
setmaptile 0x17 0x9 0x3E 0x1
setmaptile 0x14 0xA 0x1 0x0
setmaptile 0x15 0xA 0x1 0x0
setmaptile 0x16 0xA 0x1 0x0
setmaptile 0x17 0xA 0x1 0x0
release
end
 
#org @end
release
end
__________________