Hi, I wonder if anyone can help? I can't make people permanently disappear. I've done the whole setflag thing with their ID number; it doesn't work for me. Or, at least, not consistently; sometimes they're gone, and sometimes they reappear.
#org $start
lock
faceplayer
applymovement 0x01 $movement
message $move 0x2
release
end
#org $movement
#raw 0x01 0x62
#org $move
#move 1 =Oh, your up \v\h01. The Professor\nwas looking for you this morning.\lYou better get to his lab quick!
release
end
if 0x0 is for false case I've already written it xD
EDIT 2: What do I use to check if a flag hasn't been set? You use 0x0 to check if its true, what about if its false?
Hi, I wonder if anyone can help? I can't make people permanently disappear. I've done the whole setflag thing with their ID number; it doesn't work for me. Or, at least, not consistently; sometimes they're gone, and sometimes they reappear.
Umm..I'm new to this, so I don't know if I can help. Shouldn't you use the 'hidesprite 0x[person event number]' construct?
What? 0x0 is for False? (We need a confused smilie xD)if 0x0 is for false case I've already written it xD
#org $start
lock
faceplayer
set flag 0x1
checkflag 0x1
if 0x1 goto @never
applymovement 0x01 @movement
message $move 0x2
release
end
#org @movement
#raw 0x01
#raw 0x62
#org $move
#move 1 =Oh, your up \v\h01. The Professor\nwas looking for you this morning.\lYou better get to his lab quick!
release
end
#org @never
@never 0x1
release
end
I gotta point some mistakes you made.What? 0x0 is for False? (We need a confused smilie xD)
EDIT:XSE says that line 13 wont work.Code:#org $start lock faceplayer set flag 0x1 checkflag 0x1 if 0x1 goto @never applymovement 0x01 @movement message $move 0x2 release end #org @movement #raw 0x01 #raw 0x62 #org $move #move 1 =Oh, your up \v\h01. The Professor\nwas looking for you this morning.\lYou better get to his lab quick! release end #org @never @never 0x1 release end
Fixes in bold and I'd advise to make him disappear after you receive Victini.OK I would like some help with my script. It's supposed to make it so you fight this guy and after you beat him he gives you a Pokemon. I'm pretty sure this should work but I would just like an experienced scripter to look over it.
Spoiler:'---------------
#org 0x800008
#dynamic 0x800008
#org @start
trainerbattle 0x1 0x002 0x0 @before @after @take
release
end
#org @give
checkflag 0x828
if 0x1 goto @give
compare LASTRESULT 0x1
if 0x1 goto @give
release
end Delete this. There's no reason to have it in your script.
#org @take
msgbox @received 0x6
givepokemon 0x109 0x0A 0x0 0x0 0x0 0x0
fanfare 0x13E
waitfanfare
closeonkeypress
setflag 0x828
compare LASTRESULT 0x1
if 0x1 gosub @name
release
end
#org @name
call 0x1A74EB
return
#org @before
= Yo./nI'm Odd Jobs Gin./nI run the Yorozuya./nI'll do any job./las long as I get paid./lHey if I beat you then I/lget money, right?
#org @after
= Put here something what would trainer say after you beat him.
#org @received
= Damn, no money for rent/nthis month.../nHere take this Pokemon/lI don't need another mouth/lto feed./p[black_fr]You recieved a Victini!
#org @beaten
= I gotta go to the store/nand buy this week's JUMP.
Well... the thing is... you cannot use first setvar this way... Try to do it with flags, it'll be easier and it should work.Something's wrong in my scripts? I followed the tutorial in here but the script isn't working! =(
Spoiler:'---------------
#org @start
lockall
setvar 0x4001 0x0
goto @snippet1
'---------------
#org @snippet1
setvar 0x8004 0x0
setvar 0x8005 0x2
special 0x174
textcolor 0x0
pause 0x1E
playsong 0x12E 0x0
preparemsg @string1 '"[player], you forgot something."
waitmsg
pause 0x55
closeonkeypress
applymovement 0xFF @move1
waitmovement 0x0
sound 0x15
applymovement 0xFF @move2
waitmovement 0x0
pause 0x1E
showsprite 0x10
compare 0x4001 0x0
msgbox @string2 0x4 '"So how was your sleep?\pWhat do yo..."
closeonkeypress
pause 0x1E
compare 0x4001 0x0
applymovement 0x10 @move3
applymovement 0xFF @move4
waitmovement 0x0
setdoorclosed 0x15 0xE
doorchange
setvar 0x4055 0x1
clearflag 0x2B
setvar 0x4050 0x1
setflag 0x2C
setflag 0x4001
warp 0x4 0x3 0xFF 0x6 0xC
waitstate
releaseall
end
'---------
' Strings
'---------
#org @string1
= [player], you forgot something.
#org @string2
= So how was your sleep?\pWhat do you think of Hiore region?\nPeace and nice isn't it?\pLet's go back to our main subject.\pHere, come with me.
'-----------
' Movements
'-----------
#org @move1
#raw 0x1 'Face Up
#raw 0xFE 'End of Movements
#org @move2
#raw 0x62 'Exclamation Mark (!)
#raw 0xFE 'End of Movements
#org @move3
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x60 'Hide
#raw 0xFE 'End of Movements
#org @move4
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements
Nothing's happened! >.< I hope I'm not posting in a wrong section...
Why can't you use flags above 200?I gotta point some mistakes you made.
First: setflag must be together (I wonder why XSE did not mention this mistake)
Second: start, org and all the msgboxes also must have @. Not # or $
Third: Never use flags above 200
So in other words re-do your script =D
Fixes in bold and I'd advise to make him disappear after you receive Victini.
Well... the thing is... you cannot use first setvar this way... Try to do it with flags, it'll be easier and it should work.
I think he meant below 0x200.Why can't you use flags above 200?