View Single Post
  #7530    
Old January 13th, 2013 (04:15 AM). Edited January 13th, 2013 by hukurae.
hukurae's Avatar
hukurae hukurae is offline
 
Join Date: Aug 2009
Gender: Male
Posts: 8
@Dr.Fuji :

Here's what I got from tajaros's guide

Spoiler:

#dynamic 0x800000

#org @start
lock
faceplayer
checkflag 0x828
if 0x1 goto @how
msgbox @give 0x5
compare 0x800D 0x1
if 0x1 goto @get
compare 0x800D 0x0
if 0x1 goto @ok
end

#org @get
givepokemon 0x19 0x5 0x44 0x0 0x0 0x0
fanfare 0x13E
msgbox @receive 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @givenickname 0x5
compare 0x800D 0x1
if 0x1 goto @name
compare 0x800D 0x0
if 0x1 goto @go
end

#org @ok
msgbox @oh 0x6
release
end

#org @name
setvar 0x8004 0x0
call @nickname
goto @takecare

#org @nickname
fadescreen 0x1
special 0x9E
waitstate
return


EDIT : I did make it work

Spoiler:

#org @name1
setvar 0x8004 0x1
fadescreen 0x1
special 0x9E
waitstate
return


but still I don't make out the 'setvar' part ? Why does it have to be '0x8004' (for 0x1 I understand it as '2nd position in the team')
and 'waitstate' is for ?

P/s : I'm quite new at this so apologize for my slow understanding :"(