View Single Post
  #7467    
Old December 5th, 2012 (06:05 AM).
Herpahermaderp's Avatar
Herpahermaderp Herpahermaderp is offline
I liek Mudkipz
 
Join Date: Jul 2012
Location: USA
Age: 17
Gender: Male
Nature: Relaxed
Posts: 63
Quote originally posted by DarkFire7777:
I'm trying to write a script in which a man will say "statement 1", give an item (in this case a Soothe Bell), and say "statement 2", but I followed the tutorials and got this. The man just straight off gives the Soothe Bell without saying Stmt 1 directly before and Stmt 2 directly after (though he does say Stmt 2 if you talk to him again).

SCRIPT (XSE):

#dynamic 0x800000
#org @start
lock
faceplayer
checkflag 0x201
if 0x1 goto @nomore
msgbox @talk1 0x6
giveitem 0xB8 0x1 0x0
setflag 0x201
release
end
#org @nomore
msgbox @talk2 0x6
callstd 0x2
release
end
#org @talk1
= Hey, you're my first visitor! I'm\nso happy. Here, please take this\litem as a reward. I don't really\lhave any use for it.
#org @talk2
= The Soothe Bell raises a pokemon's\nhappiness. Some pokemon will even\levolve when they max their\lhappiness towards you.

Please help out if you can find any errors. I'm a total noob at this.
You should try using a flag greater than 1000, 201 is a flag currently being used by the game and may cause glitches in it. That's why people have XSE tutorials on PC.
__________________
Y: Roak || 1177-8023-4387