J'ai donc voulu utiliser un derivé du script decrit ICI
Jai remplacé les OnPCEquip par des onactivate, et j'obtient donc ce script
Spoiler
Begin Teleport_autel short button short button1 short button2 short messageOn short reset if ( MenuMode == 1 ) Return endif if ( OnActivate == 0 ) set reset to 0 endif if ( reset == 1 ) return endif if ( OnActivate == 1 ) if ( reset == 0 ) messagebox "Où voulez-vous aller ?", "Nulle Part", "Ald'Ruhn", "Balmora", "Caldéra", "Coeurébène", "Dagon Fel", "Gnaar Mok", "Gnisis", "Destinations Suivantes" set messageOn to 1 endif endif if ( messageOn == 1 ) set button to GetButtonPressed if ( button >= 0 ) set messageOn to 0 endif ;Nulle Part if ( button == 0 ) set reset to 1 return ;Ald'Ruhn elseif ( button == 1 ) playsound "conjuration hit" Player->PositionCell -12415, 56790, 2582 180 "Ald'Ruhn" set reset to 1 ;Balmora elseif ( button == 2 ) playsound "conjuration hit" Player->PositionCell -23692, -15541, 508 90 "Balmora" set reset to 1 return ;Caldéra elseif ( button == 3 ) playsound "conjuration hit" Player->PositionCell -11988, 19932, 1401 90 "caldéra" set reset to 1 return ;Coeurébène elseif ( button == 4 ) playsound "conjuration hit" Player->PositionCell 12637, -100652, 1335 270 "coeurébène" set reset to 1 return ;Dagon Fel elseif ( button == 5 ) playsound "conjuration hit" Player->PositionCell 62222, 182560, 159 225 "dagon fel" set reset to 1 return ;Gnaar Mok elseif ( button == 6 ) playsound "conjuration hit" Player->PositionCell -60725, 26189, 237 65 "gnaar mok" set reset to 1 return ;Gnisis elseif ( button == 7 ) playsound "conjuration hit" Player->PositionCell -83582, 92484, 1012 270 "gnisis" set reset to 1 return ;Destinations Suivantes elseif ( button == 8 ) messagebox "Où voulez-vous aller ?", "Nulle Part", "Hla Oad", "Khuul", "Maar Gan", "Molag Maar", "Mont Ecarlate", "Pélagiad", "Porte des Ames", "Destinations Suivantes" set messageOn to 2 set reset to 1 endif endif endif if ( messageOn == 2 ) set button1 to GetButtonPressed if ( button1 >= 0 ) set messageOn to 0 endif ;Nulle Part if ( button1 == 0 ) set reset to 1 return ;Hla Oad elseif ( button1 == 1 ) playsound "conjuration hit" Player->PositionCell -46368, -38725, 169 260 "Hla Oad" set reset to 1 ;Khuul elseif ( button1 == 2 ) playsound "conjuration hit" Player->PositionCell -67819, 140455, 180 270 "khuul" set reset to 1 return ;Maar Gan elseif ( button1 == 3 ) playsound "conjuration hit" Player->PositionCell -19538, 103128, 2314 270 "maar gan" set reset to 1 return ;Molag Mar elseif ( button1 == 4 ) playsound "conjuration hit" Player->PositionCell 110659, -62347, 2052 0 "molag mar" set reset to 1 return ;Mont Ecarlate elseif ( button1 == 5 ) playsound "conjuration hit" Player->PositionCell 25129, 68875, 14410 220 "région du mont ecarlate" set reset to 1 return ;Pélagiad elseif ( button1 == 6 ) playsound "conjuration hit" Player->PositionCell 2860, -56469, 1537 85 "pélagiad" set reset to 1 return ;Porte des Ames elseif ( button1 == 7 ) playsound "conjuration hit" Player->PositionCell 20466, 37577, 942 5 "Porte des ames" set reset to 1 return ;Destinations Suivantes elseif ( button1 == 8 ) messagebox "Où voulez-vous aller ?", "Nulle Part", "Sadrith Mora", "Seyda Nihyn", "Suran", "Tel Aruhn", "Tel Branora", "Tel Mora", "Vos", "Vivec" set messageOn to 3 set reset to 1 endif endif endif if ( messageOn == 3 ) set button2 to GetButtonPressed if ( button2 >= 0 ) set messageOn to 0 endif ;Nulle Part if ( button2 == 0 ) set reset to 1 return ;Sadrith Mora elseif ( button2 == 1 ) playsound "conjuration hit" Player->PositionCell 150299, 31719, 652 135 "Sadrith Mora" set reset to 1 ;Seyda Nihyn elseif ( button2 == 2 ) playsound "conjuration hit" Player->PositionCell -11136, -70831, 230 190 "seyda nihyn" set reset to 1 return ;Suran elseif ( button2 == 3 ) playsound "conjuration hit" Player->PositionCell 54924, -52728, 882 325 "suran" set reset to 1 return ;Tel Aruhn elseif ( button2 == 4 ) playsound "conjuration hit" Player->PositionCell 125328, 45809, 1470 0 "tel aruhn" set reset to 1 ;Tel Branora elseif ( button2 == 5 ) playsound "conjuration hit" Player->PositionCell 124974, -102299, 777 90 "tel branora" set reset to 1 return ;Tel Mora elseif ( button2 == 6 ) playsound "conjuration hit" Player->PositionCell 107025, 117293, 185 30 "tel mora" set reset to 1 return ;Vos elseif ( button2 == 7 ) playsound "conjuration hit" Player->PositionCell 92991, 116762, 1396 90 "vos" set reset to 1 ;Vivec elseif ( button2 == 8 ) playsound "conjuration hit" Player->PositionCell 46967, -81879, 772 270 "vivec" set reset to 1 return endif endif endif End
Néanmoins, au moment d'arriver dans le jeu, je tente d'activer l'item ( j'ai pris ici un autel de culte impérial, que j'ai modifier) et rien ne ce passe...
quelqu'un pourrait-il m'aider SVP?
( je precise qu'avec OnPCEquip, j'ai mis le script sur un item, et sa marche impeccable )
EDIT : J'ai refait mon post, et j'ai mis en bleu les endif en trop.
Modifié par Ariolas, 02 juillet 2010 - 13:19.