J'ai pas mal avancé dans ma rom, mais je bute encore contre un élément. Il s'agit du script du chercheur de trésor dans Pokémon Saphir.
Ce personnage échange des TESSONS contre des PIERRES d'évolutions. J'aimerais à la place qu'il échange ces TESSONS contre des CT. Le problème c'est que je ne vois pas les numéros HEXA des pierres pour les changer contre ceux des CT. Pouvez-vous m'aider?
(Par ailleurs auriez-vous un TUTO sur comment modifier les textes des boîtes multichoice?)
Merci
Les numéros HEXA:
Spoiler
Les tessons : 30 / 31 / 32 / 33
Les pierres à remplacer : 5F / 60 / 61 / 62
Par les CT : 126 / 127 / 128 / 129
Les pierres à remplacer : 5F / 60 / 61 / 62
Par les CT : 126 / 127 / 128 / 129
Le script de base de Chercheur de Trésor
Spoiler
'---------------
#org 0x164254
lock
faceplayer
checkflag 0xD9
if 0x1 goto 0x8164270
msgbox 0x81A47C7 MSG_KEEPOPEN '"Je suis le CHERCHEUR DE TRESORS!\p..."
setflag 0xD9
goto 0x816427E
'---------------
#org 0x164270
msgbox 0x81A484D MSG_KEEPOPEN '"Dis-moi, as-tu trouvé des TESSONS\..."
goto 0x816427E
'---------------
#org 0x16427E
call 0x8164294
compare 0x4001 0x0
if 0x1 goto 0x8164779
goto 0x81642F2
'---------------
#org 0x164294
setvar 0x4001 0x0
checkitem 0x30 0x1
compare LASTRESULT 0x1
if 0x1 call 0x81642DA
checkitem 0x32 0x1
compare LASTRESULT 0x1
if 0x1 call 0x81642E0
checkitem 0x31 0x1
compare LASTRESULT 0x1
if 0x1 call 0x81642E6
checkitem 0x33 0x1
compare LASTRESULT 0x1
if 0x1 call 0x81642EC
return
'---------------
#org 0x164779
msgbox 0x81A4885 MSG_KEEPOPEN '"Tu n'as aucun trésor pour moi...\p..."
release
end
'---------------
#org 0x1642F2
msgbox 0x81A48ED MSG_KEEPOPEN '"Hé, mais! C'est...\nC'est un TESSO..."
goto 0x8164300
'---------------
#org 0x1642DA
addvar 0x4001 0x1
return
'---------------
#org 0x1642E0
addvar 0x4001 0x2
return
'---------------
#org 0x1642E6
addvar 0x4001 0x4
return
'---------------
#org 0x1642EC
addvar 0x4001 0x8
return
'---------------
#org 0x164300
preparemsg 0x81A4960 '"Tu veux l'échanger contre quoi?"
waitmsg
copyvar 0x8000 0x4001
compare 0x8000 0x1
if 0x1 goto 0x81643B1
compare 0x8000 0x2
if 0x1 goto 0x81643D7
compare 0x8000 0x3
if 0x1 goto 0x81643FD
compare 0x8000 0x4
if 0x1 goto 0x816442E
compare 0x8000 0x5
if 0x1 goto 0x8164454
compare 0x8000 0x6
if 0x1 goto 0x8164485
compare 0x8000 0x7
if 0x1 goto 0x81644B6
compare 0x8000 0x8
if 0x1 goto 0x81644F2
compare 0x8000 0x9
if 0x1 goto 0x8164518
compare 0x8000 0xA
if 0x1 goto 0x8164549
compare 0x8000 0xB
if 0x1 goto 0x816457A
compare 0x8000 0xC
if 0x1 goto 0x81645B6
compare 0x8000 0xD
if 0x1 goto 0x81645E7
compare 0x8000 0xE
if 0x1 goto 0x8164623
compare 0x8000 0xF
if 0x1 goto 0x816465F
end
'---------------
#org 0x1643B1
multichoice 0x0 0x0 0x3A 0x0
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x81646A6
compare 0x8000 0x1
if 0x1 goto 0x816476F
goto 0x816476F
'---------------
#org 0x1643D7
multichoice 0x0 0x0 0x3B 0x0
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x81646B5
compare 0x8000 0x1
if 0x1 goto 0x816476F
goto 0x816476F
'---------------
#org 0x1643FD
multichoice 0x0 0x0 0x3C 0x0
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x81646A6
compare 0x8000 0x1
if 0x1 goto 0x81646B5
compare 0x8000 0x2
if 0x1 goto 0x816476F
goto 0x816476F
'---------------
#org 0x16442E
multichoice 0x0 0x0 0x3D 0x0
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x81646C4
compare 0x8000 0x1
if 0x1 goto 0x816476F
goto 0x816476F
'---------------
#org 0x164454
multichoice 0x0 0x0 0x3E 0x0
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x81646A6
compare 0x8000 0x1
if 0x1 goto 0x81646C4
compare 0x8000 0x2
if 0x1 goto 0x816476F
goto 0x816476F
'---------------
#org 0x164485
multichoice 0x0 0x0 0x3F 0x0
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x81646B5
compare 0x8000 0x1
if 0x1 goto 0x81646C4
compare 0x8000 0x2
if 0x1 goto 0x816476F
goto 0x816476F
'---------------
#org 0x1644B6
multichoice 0x0 0x0 0x40 0x0
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x81646A6
compare 0x8000 0x1
if 0x1 goto 0x81646B5
compare 0x8000 0x2
if 0x1 goto 0x81646C4
compare 0x8000 0x3
if 0x1 goto 0x816476F
goto 0x816476F
'---------------
#org 0x1644F2
multichoice 0x0 0x0 0x41 0x0
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x81646D3
compare 0x8000 0x1
if 0x1 goto 0x816476F
goto 0x816476F
'---------------
#org 0x164518
multichoice 0x0 0x0 0x42 0x0
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x81646A6
compare 0x8000 0x1
if 0x1 goto 0x81646D3
compare 0x8000 0x2
if 0x1 goto 0x816476F
goto 0x816476F
'---------------
#org 0x164549
multichoice 0x0 0x0 0x43 0x0
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x81646B5
compare 0x8000 0x1
if 0x1 goto 0x81646D3
compare 0x8000 0x2
if 0x1 goto 0x816476F
goto 0x816476F
'---------------
#org 0x16457A
multichoice 0x0 0x0 0x44 0x0
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x81646A6
compare 0x8000 0x1
if 0x1 goto 0x81646B5
compare 0x8000 0x2
if 0x1 goto 0x81646D3
compare 0x8000 0x3
if 0x1 goto 0x816476F
goto 0x816476F
'---------------
#org 0x1645B6
multichoice 0x0 0x0 0x45 0x0
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x81646C4
compare 0x8000 0x1
if 0x1 goto 0x81646D3
compare 0x8000 0x2
if 0x1 goto 0x816476F
goto 0x816476F
'---------------
#org 0x1645E7
multichoice 0x0 0x0 0x46 0x0
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x81646A6
compare 0x8000 0x1
if 0x1 goto 0x81646C4
compare 0x8000 0x2
if 0x1 goto 0x81646D3
compare 0x8000 0x3
if 0x1 goto 0x816476F
goto 0x816476F
'---------------
#org 0x164623
multichoice 0x0 0x0 0x47 0x0
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x81646B5
compare 0x8000 0x1
if 0x1 goto 0x81646C4
compare 0x8000 0x2
if 0x1 goto 0x81646D3
compare 0x8000 0x3
if 0x1 goto 0x816476F
goto 0x816476F
'---------------
#org 0x16465F
multichoice 0x0 0x0 0x48 0x0
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x81646A6
compare 0x8000 0x1
if 0x1 goto 0x81646B5
compare 0x8000 0x2
if 0x1 goto 0x81646C4
compare 0x8000 0x3
if 0x1 goto 0x81646D3
compare 0x8000 0x4
if 0x1 goto 0x816476F
goto 0x816476F
'---------------
#org 0x1646A6
setvar 0x8008 0x30
setvar 0x8009 0x5F
goto 0x81646E2
'---------------
#org 0x16476F
msgbox 0x81A4A1B MSG_KEEPOPEN '"Non? Quelle déception!\nSi tu chan..."
release
end
'---------------
#org 0x1646B5
setvar 0x8008 0x32
setvar 0x8009 0x60
goto 0x81646E2
'---------------
#org 0x1646C4
setvar 0x8008 0x31
setvar 0x8009 0x61
goto 0x81646E2
'---------------
#org 0x1646D3
setvar 0x8008 0x33
setvar 0x8009 0x62
goto 0x81646E2
'---------------
#org 0x1646E2
bufferitem 0x0 0x8008
bufferitem 0x1 0x8009
msgbox 0x81A4980 MSG_YESNO '"Alors, on échange [buffer1] contre..."
compare LASTRESULT 0x0
if 0x1 goto 0x816476F
checkitemroom 0x8009 0x1
compare LASTRESULT 0x1
if 0x1 goto 0x8164723
checkitem 0x8008 0x2
compare LASTRESULT 0x0
if 0x1 goto 0x8164723
goto 0x8164765
'---------------
#org 0x164723
removeitem 0x8008 0x1
giveitem 0x8009 0x1 MSG_OBTAIN
msgbox 0x81A49AA MSG_KEEPOPEN '"Tope là!\nFais-en bon usage!"
call 0x8164294
compare 0x4001 0x0
if 0x1 goto 0x8164783
msgbox 0x81A49C6 MSG_YESNO '"Tu veux échanger autre chose?"
compare LASTRESULT 0x1
if 0x1 goto 0x8164300
goto 0x816476F
'---------------
#org 0x164765
msgbox 0x81A49E4 MSG_KEEPOPEN '"Mince, ton SAC est plein.\nEnlève ..."
release
end
'---------------
#org 0x164783
release
end
'---------
' Strings
'---------
#org 0x1A47C7
= Je suis le CHERCHEUR DE TRESORS!\pC'est moi, le type incroyable qui plonge\ndans les profondeurs océaniques pour\ly trouver des trésors.
#org 0x1A484D
= Dis-moi, as-tu trouvé des TESSONS\nd'ustensiles anciens?
#org 0x1A4885
= Tu n'as aucun trésor pour moi...\pSi tu trouves des TESSONS, comme\nun TESSON ROUGE, viens me l'échanger!
#org 0x1A48ED
= Hé, mais! C'est...\nC'est un TESSON! J'en cherche!\pOh, s'il te plaît, échange-le moi!\nJe te donnerai un super truc!
#org 0x1A4960
= Tu veux l'échanger contre quoi?
#org 0x1A4A1B
= Non? Quelle déception!\nSi tu changes d'avis, reviens me voir.
#org 0x1A4980
= Alors, on échange [buffer1] contre\n[buffer2], d'accord?
#org 0x1A49AA
= Tope là!\nFais-en bon usage!
#org 0x1A49C6
= Tu veux échanger autre chose?
#org 0x1A49E4
= Mince, ton SAC est plein.\nEnlève des objets, mon pote!
#org 0x164254
lock
faceplayer
checkflag 0xD9
if 0x1 goto 0x8164270
msgbox 0x81A47C7 MSG_KEEPOPEN '"Je suis le CHERCHEUR DE TRESORS!\p..."
setflag 0xD9
goto 0x816427E
'---------------
#org 0x164270
msgbox 0x81A484D MSG_KEEPOPEN '"Dis-moi, as-tu trouvé des TESSONS\..."
goto 0x816427E
'---------------
#org 0x16427E
call 0x8164294
compare 0x4001 0x0
if 0x1 goto 0x8164779
goto 0x81642F2
'---------------
#org 0x164294
setvar 0x4001 0x0
checkitem 0x30 0x1
compare LASTRESULT 0x1
if 0x1 call 0x81642DA
checkitem 0x32 0x1
compare LASTRESULT 0x1
if 0x1 call 0x81642E0
checkitem 0x31 0x1
compare LASTRESULT 0x1
if 0x1 call 0x81642E6
checkitem 0x33 0x1
compare LASTRESULT 0x1
if 0x1 call 0x81642EC
return
'---------------
#org 0x164779
msgbox 0x81A4885 MSG_KEEPOPEN '"Tu n'as aucun trésor pour moi...\p..."
release
end
'---------------
#org 0x1642F2
msgbox 0x81A48ED MSG_KEEPOPEN '"Hé, mais! C'est...\nC'est un TESSO..."
goto 0x8164300
'---------------
#org 0x1642DA
addvar 0x4001 0x1
return
'---------------
#org 0x1642E0
addvar 0x4001 0x2
return
'---------------
#org 0x1642E6
addvar 0x4001 0x4
return
'---------------
#org 0x1642EC
addvar 0x4001 0x8
return
'---------------
#org 0x164300
preparemsg 0x81A4960 '"Tu veux l'échanger contre quoi?"
waitmsg
copyvar 0x8000 0x4001
compare 0x8000 0x1
if 0x1 goto 0x81643B1
compare 0x8000 0x2
if 0x1 goto 0x81643D7
compare 0x8000 0x3
if 0x1 goto 0x81643FD
compare 0x8000 0x4
if 0x1 goto 0x816442E
compare 0x8000 0x5
if 0x1 goto 0x8164454
compare 0x8000 0x6
if 0x1 goto 0x8164485
compare 0x8000 0x7
if 0x1 goto 0x81644B6
compare 0x8000 0x8
if 0x1 goto 0x81644F2
compare 0x8000 0x9
if 0x1 goto 0x8164518
compare 0x8000 0xA
if 0x1 goto 0x8164549
compare 0x8000 0xB
if 0x1 goto 0x816457A
compare 0x8000 0xC
if 0x1 goto 0x81645B6
compare 0x8000 0xD
if 0x1 goto 0x81645E7
compare 0x8000 0xE
if 0x1 goto 0x8164623
compare 0x8000 0xF
if 0x1 goto 0x816465F
end
'---------------
#org 0x1643B1
multichoice 0x0 0x0 0x3A 0x0
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x81646A6
compare 0x8000 0x1
if 0x1 goto 0x816476F
goto 0x816476F
'---------------
#org 0x1643D7
multichoice 0x0 0x0 0x3B 0x0
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x81646B5
compare 0x8000 0x1
if 0x1 goto 0x816476F
goto 0x816476F
'---------------
#org 0x1643FD
multichoice 0x0 0x0 0x3C 0x0
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x81646A6
compare 0x8000 0x1
if 0x1 goto 0x81646B5
compare 0x8000 0x2
if 0x1 goto 0x816476F
goto 0x816476F
'---------------
#org 0x16442E
multichoice 0x0 0x0 0x3D 0x0
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x81646C4
compare 0x8000 0x1
if 0x1 goto 0x816476F
goto 0x816476F
'---------------
#org 0x164454
multichoice 0x0 0x0 0x3E 0x0
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x81646A6
compare 0x8000 0x1
if 0x1 goto 0x81646C4
compare 0x8000 0x2
if 0x1 goto 0x816476F
goto 0x816476F
'---------------
#org 0x164485
multichoice 0x0 0x0 0x3F 0x0
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x81646B5
compare 0x8000 0x1
if 0x1 goto 0x81646C4
compare 0x8000 0x2
if 0x1 goto 0x816476F
goto 0x816476F
'---------------
#org 0x1644B6
multichoice 0x0 0x0 0x40 0x0
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x81646A6
compare 0x8000 0x1
if 0x1 goto 0x81646B5
compare 0x8000 0x2
if 0x1 goto 0x81646C4
compare 0x8000 0x3
if 0x1 goto 0x816476F
goto 0x816476F
'---------------
#org 0x1644F2
multichoice 0x0 0x0 0x41 0x0
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x81646D3
compare 0x8000 0x1
if 0x1 goto 0x816476F
goto 0x816476F
'---------------
#org 0x164518
multichoice 0x0 0x0 0x42 0x0
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x81646A6
compare 0x8000 0x1
if 0x1 goto 0x81646D3
compare 0x8000 0x2
if 0x1 goto 0x816476F
goto 0x816476F
'---------------
#org 0x164549
multichoice 0x0 0x0 0x43 0x0
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x81646B5
compare 0x8000 0x1
if 0x1 goto 0x81646D3
compare 0x8000 0x2
if 0x1 goto 0x816476F
goto 0x816476F
'---------------
#org 0x16457A
multichoice 0x0 0x0 0x44 0x0
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x81646A6
compare 0x8000 0x1
if 0x1 goto 0x81646B5
compare 0x8000 0x2
if 0x1 goto 0x81646D3
compare 0x8000 0x3
if 0x1 goto 0x816476F
goto 0x816476F
'---------------
#org 0x1645B6
multichoice 0x0 0x0 0x45 0x0
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x81646C4
compare 0x8000 0x1
if 0x1 goto 0x81646D3
compare 0x8000 0x2
if 0x1 goto 0x816476F
goto 0x816476F
'---------------
#org 0x1645E7
multichoice 0x0 0x0 0x46 0x0
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x81646A6
compare 0x8000 0x1
if 0x1 goto 0x81646C4
compare 0x8000 0x2
if 0x1 goto 0x81646D3
compare 0x8000 0x3
if 0x1 goto 0x816476F
goto 0x816476F
'---------------
#org 0x164623
multichoice 0x0 0x0 0x47 0x0
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x81646B5
compare 0x8000 0x1
if 0x1 goto 0x81646C4
compare 0x8000 0x2
if 0x1 goto 0x81646D3
compare 0x8000 0x3
if 0x1 goto 0x816476F
goto 0x816476F
'---------------
#org 0x16465F
multichoice 0x0 0x0 0x48 0x0
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x81646A6
compare 0x8000 0x1
if 0x1 goto 0x81646B5
compare 0x8000 0x2
if 0x1 goto 0x81646C4
compare 0x8000 0x3
if 0x1 goto 0x81646D3
compare 0x8000 0x4
if 0x1 goto 0x816476F
goto 0x816476F
'---------------
#org 0x1646A6
setvar 0x8008 0x30
setvar 0x8009 0x5F
goto 0x81646E2
'---------------
#org 0x16476F
msgbox 0x81A4A1B MSG_KEEPOPEN '"Non? Quelle déception!\nSi tu chan..."
release
end
'---------------
#org 0x1646B5
setvar 0x8008 0x32
setvar 0x8009 0x60
goto 0x81646E2
'---------------
#org 0x1646C4
setvar 0x8008 0x31
setvar 0x8009 0x61
goto 0x81646E2
'---------------
#org 0x1646D3
setvar 0x8008 0x33
setvar 0x8009 0x62
goto 0x81646E2
'---------------
#org 0x1646E2
bufferitem 0x0 0x8008
bufferitem 0x1 0x8009
msgbox 0x81A4980 MSG_YESNO '"Alors, on échange [buffer1] contre..."
compare LASTRESULT 0x0
if 0x1 goto 0x816476F
checkitemroom 0x8009 0x1
compare LASTRESULT 0x1
if 0x1 goto 0x8164723
checkitem 0x8008 0x2
compare LASTRESULT 0x0
if 0x1 goto 0x8164723
goto 0x8164765
'---------------
#org 0x164723
removeitem 0x8008 0x1
giveitem 0x8009 0x1 MSG_OBTAIN
msgbox 0x81A49AA MSG_KEEPOPEN '"Tope là!\nFais-en bon usage!"
call 0x8164294
compare 0x4001 0x0
if 0x1 goto 0x8164783
msgbox 0x81A49C6 MSG_YESNO '"Tu veux échanger autre chose?"
compare LASTRESULT 0x1
if 0x1 goto 0x8164300
goto 0x816476F
'---------------
#org 0x164765
msgbox 0x81A49E4 MSG_KEEPOPEN '"Mince, ton SAC est plein.\nEnlève ..."
release
end
'---------------
#org 0x164783
release
end
'---------
' Strings
'---------
#org 0x1A47C7
= Je suis le CHERCHEUR DE TRESORS!\pC'est moi, le type incroyable qui plonge\ndans les profondeurs océaniques pour\ly trouver des trésors.
#org 0x1A484D
= Dis-moi, as-tu trouvé des TESSONS\nd'ustensiles anciens?
#org 0x1A4885
= Tu n'as aucun trésor pour moi...\pSi tu trouves des TESSONS, comme\nun TESSON ROUGE, viens me l'échanger!
#org 0x1A48ED
= Hé, mais! C'est...\nC'est un TESSON! J'en cherche!\pOh, s'il te plaît, échange-le moi!\nJe te donnerai un super truc!
#org 0x1A4960
= Tu veux l'échanger contre quoi?
#org 0x1A4A1B
= Non? Quelle déception!\nSi tu changes d'avis, reviens me voir.
#org 0x1A4980
= Alors, on échange [buffer1] contre\n[buffer2], d'accord?
#org 0x1A49AA
= Tope là!\nFais-en bon usage!
#org 0x1A49C6
= Tu veux échanger autre chose?
#org 0x1A49E4
= Mince, ton SAC est plein.\nEnlève des objets, mon pote!