Thread: [Tutorial] XSE Scripting Tutorial
View Single Post
  #94    
Old June 5th, 2008 (08:12 PM).
Charliezard's Avatar
Charliezard Charliezard is offline
A wild shroomish appeared!
Crystal Tier
 
Join Date: May 2007
Location: Australia
Age: 23
Gender: Male
Posts: 1,278
Quote originally posted by hockeypanda32:
In a hex editor totally clean up the hex manually then if you want to overwrite it! Close XSE after and reopen, then compile
Thanks :D I had sooooooo much problems with this. Tried rescripting it a bazillion times :P
Now I have another problem
Code:
'-----------------------
#org 0x71A794
lock
faceplayer
checkflag 0x910
if 0x1 goto 0x871A7BA
msgbox 0x871A7C5 '"Here, this pikachu\nIs lonely.\nYou..."
givepokemon 0x19 0xA 0x0 0x0 0x0 0x0
setflag 0x910
release
end

'-----------------------
#org 0x71A7BA
msgbox 0x871A7F3 '"How is the Pikachu?"
callstd 0x6
release
end


'---------
' Strings
'---------
#org 0x71A7C5
= Here, this pikachu\nIs lonely.\nYou take it.

#org 0x71A7F3
= How is the Pikachu?
I think The proglem lies in this part...not sure though.
Code:
#org 0x71A794
lock
faceplayer
checkflag 0x910
if 0x1 goto 0x871A7BA
msgbox 0x871A7C5 '"Here, this pikachu\nIs lonely.\nYou..."
givepokemon 0x19 0xA 0x0 0x0 0x0 0x0
setflag 0x910
release
end
Whether I make the if 0x1 or 0x0 she still says "How's the pikachu?" From the begining and never gives it to you. :(

Code:
#org @Talk
lock
faceplayer
checkflag 0x910
checkflag 0x910
if b_true goto @Speak
message @message
givepokemon 0x19 0xA 0x0 0x0 0x0 0x0
setflag 0x910
release
end
Is the same section not compiled.