home *** CD-ROM | disk | FTP | other *** search
Text File | 1999-08-31 | 27.5 KB | 1,396 lines |
- // Script DΘmo jouable "complΦte"
-
- // Modifications ok
-
- [Ma0001]
- // description warp: warp d'arrivΘe
- :init
- begin
- // envoie HNM intro //
- // acte
- set acte = 1
-
-
- // Mettre objets dans inventaire ???? //
- If not "sacacao1" in invent then
- Set Invent = Invent + "Sacacao1"
- // METTRE BOURSE CACAO α 25 //
- set BourseCacao = 25
- Set Hand = ""
- Endif
-
- If not "sarbacane" in invent then
- Set Invent = Invent + "Sarbacane"
- Set Hand = ""
- Endif
-
- If not "collier1" in invent then
- Set Invent = Invent + "collier1"
- Set Hand = ""
- Endif
-
- minute 1
-
- // prΘsence garde 1
- ShowSpw "garde1"
- Disableclick "garde1"
- // * Retour sur la carte INTERDIT* //
- Disableclick "ZONE_CARTE"
- end
-
- :loop
- begin
- end
-
- [Ma0002]
- // description warp: prΦs du pont, c⌠tΘ arrivΘe
- :init
- begin
- // prΘsence garde 1
- ShowSpw "garde1"
- // Disableclick "garde1"
- End
-
- :loop
- begin
- // Le joueur veut parler au garde
- if acte = 1 and mouse_click = "garde1" then
- // Il est peut-Ωtre dangereux de parler au garde
- dialog "HRVO_112" off
- endif
-
- // le joueur veut passer le pont Dial auto garde1 qui est soupconneux
- if acte = 1 and warp_to = 7 then
- if not SeqDial14 then
- // SeqDial 14
- dialog "G1014_01" 2 1
- Set SeqDial14 = 1
- Set Warp_to = 0
-
- ; Si le joueur insiste, Game Over Garde
- else
- // Game Over "Garde"
- FMV "GoMa_1"
- Set Warp_to = 0
- FMV "Aztecfin"
- GameOver
- endif
- endif
- end
-
-
- [Ma0003]
- // description warp: devant Calmecac
- :init
- begin
- // prΘsence garde 1
- ShowSpw "garde1"
- Disableclick "garde1"
- end
-
- :loop
- begin
- end
-
- [Ma0004]
- // description warp: devant maison poΦte
- :init
- begin
- // spw d'ambiance
- ShowSpw "MarchBoisMar"
- end
-
- :loop
- begin
- ; le joueur a le collier et quitte le warp "disparition mangeur"
- if "Collier2" in Invent then
-
- if warp_to = 31 or warp_to = 6 then
- Set HideMangeur = 1
- Endif
- Endif
- end
-
-
- [Ma0005]
- // description warp: devant entrΘe du marchΘ
- :init
- begin
- music "Marche01" loop
-
- // spw d'ambiance
- ShowSpw "MarchBoisMar"
-
- set Question_Marchand = 0
- if acte = 1 and Dial7 = 0 then
- set Question_Marchand = 1
-
- elif acte = 1 and IndiceTurquoise = 1 and not IndiceTurquoise2 then
- set Question_Marchand = 1
- endif
- end
-
- :loop
- begin
- if Warp_To = 3 or Warp_To = 6 then
- music Stop
- endif
- end
-
-
- [Ma0006]
- // description warp: entre entrΘe marchΘ et entrΘe poΦte
- :init
- begin
- set Question_Marchand = 0
- if acte = 1 and Dial7 = 0 then
- set Question_Marchand = 1
-
- elif acte = 1 and IndiceTurquoise = 1 and not IndiceTurquoise2 then
- set Question_Marchand = 1
- endif
-
- // PrΘsence globale marchand de bois
- ShowSpw "MarchBoisMar" 2
-
- // Modulo pour rΘponse joueur dans dial achat
- Set HRVO_achat = random % 4
- set HasBuy = 0
- set HasSold = 0
- set LastRep = 0
-
- if EsclaveIndiceBijou then
- set OizoSeCasse = 1
- endif
- end
-
- :loop
- begin
-
- if not HrAchat and Hand = "" then
- if Mouse_Click = "Zone_Bois" then
- set Mouse_Click = "MarchBoisMar"
- endif
- endif
-
- if HrAchat or HrVente then
- if Time1 > 10 then
- Set hand = ""
- set Mouse_Click = "MarchBoisMar"
- endif
- endif
-
- if HrVente and Mouse_Click = "MarchBoisMar" and not Hand = "" then
- Set Time1 = 0
- if Hand = "Bois" then
- set invent = invent - "Bois"
- set HasSold = 1
- money BourseCacao 2
- set BourseCacao = BourseCacao + 2
- endif
-
- elif Mouse_Click = "MarchBoisMar" then
- Set HrAchat = 0
- Set HrVente = 0
- Set SayGoodbye = 0
- set CantGetEnough = 0
-
- if LastRep then
- set LastRep = 0
- dialog "MM115_12" 2 1
- else
- dialog "MM115_01" 2 1
- endif
-
- if CantGetEnough = 1 then
- set CantGetEnough = 0
- Wait 1
- dialog "MM115_12" 2 1
- endif
-
- if SayGoodbye then
- Dialog "MM115_11" 2 1
- endif
-
- if HrAchat then
- //AutoMove "Zone_AutoZoomW2"
- Lock
-
- DisableClick 4
- DisableClick 5
-
- elif HrVente then
-
- //AutoMove "Zone_AutoZoomW2"
- Lock
- DisableClick 4
- DisableClick 5
-
- else
- EnableClick 4
- EnableClick 5
- Unlock
- endif
-
- Set Time1 = 0
-
- elif HrAchat and hand = "" then
- if Mouse_Click = "Zone_Bois" then
- Set Time1 = 0
- Set HRVO_achat = random % 4
- if "Bois" in invent then
-
- // dialog "jen ai dΘja"
- if HRVO_achat < 2 then
- dialog "HRVO_125" off
-
- else
- dialog "HRVO_126" off
- endif
-
- elif BourseCacao < 2 then
- // dialog "j'ai pas assez de pognon"
-
- if HRVO_achat < 2 then
- dialog "HRVO_127" off
-
- else
- dialog "HRVO_128" off
- endif
-
- else
- // bourse
- money BourseCacao -2
- set BourseCacao = BourseCacao - 2
- set invent = invent + "Bois"
- set HasBuy = 1
- endif
- endif
- endif
- end
-
- [Ma0021]
- // description warp: premier warp chez poΦte
- :init
- begin
- // music
- if HideMangeur = 0 and dial7 then
- music "confessi" loop
- endif
-
- if IndiceTurquoise = 1 and "Bijou" in Invent and not BarquePoeteOk then
- set VuTDMetGarde = 1
- ShowSpw "GG"
- DisableClick "GG"
- endif
- end
-
- :loop
- begin
- ; si le joueur veut sortir directement "voix off"
-
- if acte = 1 and IndiceTurquoise = 1 and "Bijou" in Invent and Voixoff6 = 0 and warp_to = 4 and not BarquePoeteOk then
- // voix off 6 "je ferais mieux pas de sortir"
- dialog "HRVO_006" off
- Set VoixOff6 = 1
- Set Warp_to = 0
- endif
-
- ; Si le joueur sort si "TΩte de montagne" est devant la maison G.O.
- if acte = 1 and VoixOff6 = 1 and warp_to = 4 then
- // Game Over "TΩte de montagne"
- FMV "GoPo_3"
- FMV "Aztecfin"
- GameOver
- endif
-
- // music
- if warp_to = 4 then
- music stop
- endif
- end
-
-
- [Ma0022]
- // description warp: deuxiΦme warp chez poΦte
- :init
- begin
- if IndiceTurquoise = 1 and "Bijou" in Invent and not BarquePoeteOk then
- ShowSpw "GG"
- set VuTDMetGarde = 1
- endif
-
- ; La natte est dΘplacΘ si le joueur l'a dΘplacΘe
- If not PousseNatte then
- ShowSpw "NattePoete"
- Else
- ShowSpw "NattePoete2"
-
- ; On voit le bijou tant que le joueur ne l'a pas pris
- If not HaveBijou then
- ShowSpw "Bijou"
- Endif
- Endif
-
- ; Mise en place Omni expert sur BarquePoeteOk
- If not BarquePoeteOk and VoixOff6 then
- Set AideBarquePoete = AideBarquePoete + 1
- Endif
-
- ; Omni expert Barque poete niveau 1
- If not BarquePoeteOk and AideBarquePoete >= 2 then
- if AideBarquePoete = 2 then
- // Voix Off 8 "il doit y avoir un moyen de sortir"
- dialog "HRVO_008" off
-
- elif AideBarquePoete = 4 then
- set AideBarquePoete = 1
- endif
- endif
- end
-
- :loop
- begin
- ; envoi cinΘmatique prΩtre mangeur d'ordure
- if acte = 1 and not FMVConfess and Pretremangeur = 0 and warp_to = 23 then
- //envoi cinΘmatique 4
- automove 23
- fmv "confess"
- set FMVConfess = 1
- // Set Pretremangeur = 1
- // jump 23 -19 -50
- jump 23 -19 0
- endif
-
- end
-
-
- [Ma0023]
- // description warp: devant natte poΦte mort
- :init
- begin
- // music
- if HideMangeur = 0 then
- music "confessi" loop
- endif
-
- ; le prΩtre mangeur est lα tant que le joueur n'a pas le collier2
- // if not "Collier2" in Invent and not HideMangeur then
- if not HideMangeur then
- ShowSpw "Mangeur" 2
- endif
-
- ; Le poΦte mort est lα pendant l'acte 1 plus aprΦs
- If acte = 1 then
- ShowSpw "PoeteMort" back
- Disableclick "PoeteMort"
- if not Dial7 then
- DisableInfo "PoeteMort"
- endif
- endif
-
- ; La natte est dΘplacΘ si le joueur l'a dΘplacΘe
- If not PousseNatte then
- ShowSpw "NattePoete"
- Else
- ShowSpw "NattePoete2"
- Disableclick "NattePoete2"
-
- ; On voit le bijou tant que le joueur ne l'a pas pris
- If not HaveBijou then
- ShowSpw "Bijou"
- Endif
- endif
-
- ; le parchemin ensanglantΘ est visible tant que le joueur ne l'a pas pris
- If not HaveParcheEnsang then
- ShowSpw "ParcheminSang"
- endif
-
- ; Omni expert sur Barquepoete niveau 2
- If BarquePoeteOk = 0 and AideBarquePoete >= 4 then
- // Voix Off 9
- dialog "HRVO_009" off
- endif
-
- if EsclaveIndiceBijou then
- set OizoSeCasse = 1
- endif
-
- // if fmvconfess and not HideMangeur then
- // automove "Mangeur"
- // set fmvconfess = 0
- // endif
- end
-
- :loop
- begin
- ; seqdial 7 aprΦs Hnm prΩtre mangeur d'ordure
- if mouse_click = "Mangeur" and acte = 1 and not HideMangeur then
- If not "Collier2" in Invent then
- If not Dial7 then
- Dialog "P1007_01" "Mangeur" 2 1
-
- EnableInfo "PoeteMort"
-
- if not payemangeur and boursecacao < 5 then
- dialog "HRVO_116" off
- endif
-
- Elif not PayeMangeur then
- Dialog "P1008_01" "Mangeur" 2 1
- endif
-
- if PayeMangeur then
- Money BourseCacao -5
- set BourseCacao = BourseCacao - 5
- endif
-
- else
- If not dial36 then
- Dialog "P1036_01" "Mangeur" 2 1
-
- else
- // Voix off 33
- dialog "HRVO_033" off
- Endif
- Endif
- Endif
-
- ; le joueur clique sur la natte la natte se dΘplace
- if mouse_click = "nattePoete" then
- // Bruitage 11
- Sound "11_natte"
- set PousseNatte = 1
- ShowSpw "NattePoete2"
- Disableclick "NattePoete2"
- HideSpw "NattePoete"
- ShowSpw "Bijou"
- Endif
-
-
- ; le joueur prend le bijou
- If mouse_click = "Bijou" then
- Set HaveBijou = 1
- HideSpw "Bijou"
- Set Invent =Invent + "Bijou"
- Endif
-
- ; Si le joueur n'a pas payΘ le Mangeur et qu'il prend le Bijou Game over "TΩte de montagne"
- If not PayeMangeur and "Bijou" in Invent then
- // Game Over "TΩte de Montagne"
- FMV "GoPo_3"
- FMV "Aztecfin"
- GameOver
- endif
-
- ; le joueur a le collier et quitte le warp "disparition mangeur"
- if "Collier2" in Invent then
- if warp_to = 24 then
- Set HideMangeur = 1
- Endif
- Endif
- end
-
-
- [Ma0024]
- // description warp: PoΦte entre maison et cour
- :init
- begin
- ; PrΘsence du prΩtre
- if not HideMangeur then
- ShowSpw "Mangeur"
- endif
-
- ; La natte est dΘplacΘ si le joueur l'a dΘplacΘe
- If not PousseNatte then
- ShowSpw "NattePoete"
- Else
- ShowSpw "NattePoete2"
- Endif
-
- ; Le poΦte mort est lα pendant l'acte 1 plus aprΦs
- If acte = 1 then
- ShowSpw "PoeteMort" back
- endif
-
- ; On voit le bijou tant que le joueur ne l'a pas pris
- If PousseNatte and not HaveBijou then
- ShowSpw "Bijou"
- Endif
-
- ; le parchemin ensanglantΘ est visible tant que le joueur ne l'a pas pris
- If not HaveParcheEnsang then
- ShowSpw "ParcheminSang"
- endif
-
- ; Sprite de barque passent si bijou et indice turquoise
- if IndiceTurquoise and "Bijou" in Invent and not BarquePoeteOk then
- // ShowSpw "BarquePoete"
- // animation des barques??
- set Time2= 0
- set BarquePoeteTime= RANDOM % 5 + 3
- set BarquePoeteShow= 1
- else
- set BarquePoeteShow= 0
- endif
- end
-
- :loop
- begin
- ; anim barque
- if BarquePoeteShow and Time2 > BarquePoeteTime then
- ShowSpw "BarquePoete" once
- sound "35_passa"
- set Time2= 0
- set BarquePoeteTime= RANDOM % 5 + 10
- endif
-
- ; le joueur prend le parchemin ensanglantΘ
- if mouse_click = "ParcheminSang" then
- // Bruitage 12
- Sound "12_Parch"
- minute 4
- Set Invent = Invent + "ParcheminSang"
- Set HaveParcheEnsang =1
- HideSpw "ParcheminSang"
- endif
-
- ; Si pas payΘ le Mangeur et prend le ParcheminSang, Game over "TΩte de montagne"
-
- If not PayeMangeur and "ParcheminSang" in Invent then
- // Game Over "TΩte de Montagne"
- FMV "GoPo_3"
- FMV "Aztecfin"
- GameOver
- endif
-
- // music
- if warp_to = 25 then
- music stop
- endif
- end
-
-
- [Ma0025]
- // description warp: cour poΦte devant canal
- :init
- begin
- DisableClick "12"
-
- // Sprite de barque passent si bijou et indice turquoise
- if IndiceTurquoise and "Bijou" in Invent and not BarquePoeteOk then
- // ShowSpw "BarquePoete"
- // Bruitage α chaque fois qu'une barque passe Bruitage 35
- // animation des barques??
- set Time2= 0
- set BarquePoeteTime= RANDOM % 5 + 3
- set BarquePoeteShow= 1
- else
- set BarquePoeteShow= 0
- endif
-
- // le parchemin ensanglantΘ est visible tant que le joueur ne l'a pas pris
- If not HaveParcheEnsang then
- ShowSpw "ParcheminSang"
- endif
- end
-
- :loop
- begin
- ; anim barque
- if BarquePoeteShow and Time2 > BarquePoeteTime then
- ShowSpw "BarquePoete" once
- sound "35_passa"
- set Time2= 0
- set BarquePoeteTime= RANDOM % 5 + 10
- endif
-
- ; sΘquence des barques qui passent
- if acte = 1 and mouse_click = "BarquePoete" then
- set VoixOff6 = 0
- Set BarquePoeteOk = 1
- // envoi Hnm 5 :passage saut sur la barque
- FMV "Trans1"
- FMV "Aztecfin"
- Gameover 1
- endif
- // **** Fin de la dΘmo ****///
-
- if "Collier2" in Invent then
- Set HideMangeur = 1
- endif
- end
-
-
- [Ma0026]
- // description warp: Cour poΦte vers auvent esclave
- :init
- begin
- // prΘsence Globale esclavePoete
- if acte = 1 and not BarquePoeteOk then
- ShowSpw "esclavePoete" 2
- endif
- end
-
- :loop
- begin
- ; SΘquences dial avec esclave
- If mouse_click = "esclavePoete" then
- If not IndiceTurquoise then
- // Seq dial 9
- Dialog "H4009_99" 2 1
- Dialog "H4009_03" 2 1
- Set IndiceTurquoise = 1
- Set acces_quartier = 1
- minute 5
-
- else
- If not VuTDMetGarde then
- // Voix off 26
- dialog "HRVO_026" off
- else
- if not Dial10 then
- // SeqDial 10
- dialog "HR010_01" 2 1
- Set dial10 = 1
-
- else
- // voix off 23
- dialog "HRVO_023" off
- endif
- Endif
- Endif
- Endif
- end
-
-
- [MA0027]
- // description warp: marchΘ
- :init
- begin
- showspw "EsclavePoete"
- DisableClick "EsclavePoete"
- ShowSpw "Mere"
- ShowSpw "Noble_PM"
- ShowSpw "Pecheur"
- ShowSpw "W2" 2
- ShowSpw "W3"
- ShowSpw "W4"
- ShowSpw "W5"
- DisableClick "Zone_AutoZoomW2"
-
- // Modulo pour rΘponse joueur dans dial achat
- Set HRVO_achat = random % 4
- set HasBuy = 0
- set HasSold = 0
- set LastRep = 0
- end
-
- :loop
- begin
- if not HrAchat and Hand = "" then
- if Mouse_Click = "Zone_Bleu_Clair" or Mouse_Click = "Zone_Jaune" then
- set Mouse_Click = "W2"
- endif
- endif
-
- if HrAchat or HrVente then
- if Time1 > 10 then
- Set hand = ""
- set Mouse_Click = "W2"
- endif
- endif
-
- if HrVente and Mouse_Click = "W2" and not Hand = "" then
- Set Time1 = 0
- if Hand = "Colo_Bleu_Clair" then
- set invent = invent - "colo_bleu_clair"
- set HasSold = 1
- money BourseCacao 3
- set BourseCacao = BourseCacao + 3
-
- elif Hand = "colo_jaune" then
- set invent = invent - "colo_jaune"
- set HasSold = 1
- money BourseCacao 3
- set BourseCacao = BourseCacao + 3
- endif
-
- elif Mouse_Click = "W2" then
- Set HrAchat = 0
- Set HrVente = 0
- Set SayGoodbye = 0
- Set CantGetEnough = 0
-
- if LastRep then
- set LastRep = 0
- dialog "W2192_12" 2 1
- else
- dialog "W2192_01" 2 1
- endif
-
- if CantGetEnough = 1 then
- set CantGetEnough = 0
- Wait 1
- dialog "W2192_12" 2 1
- endif
-
- if SayGoodbye then
- Dialog "W2192_11" 2 1
- endif
-
- if HrAchat then
- AutoMove "Zone_AutoZoomW2"
- Lock
-
- DisableClick 5
- DisableClick 28
- DisableClick 29
- DisableClick 30
-
- elif HrVente then
-
- AutoMove "Zone_AutoZoomW2"
- Lock
- DisableClick 5
- DisableClick 28
- DisableClick 29
- DisableClick 30
-
- else
- EnableClick 5
- EnableClick 28
- EnableClick 29
- EnableClick 30
- Unlock
- endif
-
- Set Time1 = 0
-
- elif HrAchat and hand = "" then
- if Mouse_Click = "Zone_Bleu_Clair" then
- Set Time1 = 0
- Set HRVO_achat = random % 4
- if "Colo_Bleu_Clair" in invent then
-
- // dialog "jen ai dΘja"
- if HRVO_achat < 2 then
- dialog "HRVO_125" off
-
- else
- dialog "HRVO_126" off
- endif
-
- elif BourseCacao < 3 then
- // dialog "j'ai pas assez de pognon"
-
- if HRVO_achat < 2 then
- dialog "HRVO_127" off
-
- else
- dialog "HRVO_128" off
- endif
-
- else
- // bourse
- money BourseCacao -3
- set BourseCacao = BourseCacao - 3
- set invent = invent + "colo_bleu_clair"
- set HasBuy = 1
- endif
-
- elif Mouse_Click = "Zone_Jaune" then
- Set Time1 = 0
- Set HRVO_achat = random % 4
- if "Colo_Jaune" in invent then
-
- // dialog "jen ai dΘja"
- if HRVO_achat < 2 then
- dialog "HRVO_125" off
-
- else
- dialog "HRVO_126" off
- endif
-
- elif BourseCacao < 3 then
- // dialog "j'ai pas assez de pognon"
-
- if HRVO_achat <2 then
- dialog "HRVO_127" off
-
- else
- dialog "HRVO_128" off
- endif
-
- else
- // bourse
- money BourseCacao -3
- set BourseCacao = BourseCacao - 3
- set invent = invent + "colo_jaune"
- set HasBuy = 1
- endif
- endif
- endif
- end
-
-
- [Ma0028]
- // description warp: marchΘ devant Θtal au nord
- :init
- begin
- ShowSpw "EsclavePoete"
- ShowSpw "W2"
- ShowSpw "Mere"
- ShowSpw "Noble_PM"
- ShowSpw "Pecheur"
- ShowSpw "W3" 2
- ShowSpw "W4"
- ShowSpw "W5"
- DisableClick "Mere"
- DisableClick "Noble_PM"
- DisableClick "Zone_AutoZoomW3"
-
- // Modulo pour rΘponse joueur dans dial achat
- Set HRVO_achat = random % 4
- set HasBuy = 0
- set HasSold = 0
- set LastRep = 0
- end
-
- :loop
- begin
- if not HrAchat and Hand = "" then
- if Mouse_Click = "Zone_Coton" or Mouse_Click = "Zone_Corn" then
- set Mouse_Click = "W3"
- endif
- endif
-
- if HrAchat or HrVente then
- if Time1 > 10 then
- Set hand = ""
- set Mouse_Click = "W3"
- endif
- endif
-
- if HrVente and Mouse_Click = "W3" and not Hand = "" then
- Set Time1 = 0
- if Hand = "Coton" then
- set invent = invent - "Coton"
- set HasSold = 1
- money BourseCacao 5
- set BourseCacao = BourseCacao + 5
-
- elif Hand = "Corn" then
- set invent = invent - "Corn"
- set HasSold = 1
- money BourseCacao 2
- set BourseCacao = BourseCacao + 2
- endif
-
- elif Mouse_Click = "W3" then
- Set HrAchat = 0
- Set HrVente = 0
- Set SayGoodbye = 0
- Set CantGetEnough = 0
-
- if LastRep then
- set LastRep = 0
- dialog "W3193_12" 2 1
- else
- dialog "W3193_01" 2 1
- endif
-
- if CantGetEnough = 1 then
- set CantGetEnough = 0
- Wait 1
- dialog "W3193_12" 2 1
- endif
-
- if SayGoodbye then
- Dialog "W3193_11" 2 1
- endif
-
- if HrAchat then
- AutoMove "Zone_AutoZoomW3"
- Lock
-
- DisableClick 5
- DisableClick 27
- DisableClick 29
- DisableClick 30
-
- elif HrVente then
-
- AutoMove "Zone_AutoZoomW3"
- Lock
- DisableClick 5
- DisableClick 27
- DisableClick 29
- DisableClick 30
-
- else
- EnableClick 5
- EnableClick 27
- EnableClick 29
- EnableClick 30
- Unlock
- endif
-
- Set Time1 = 0
-
- elif HrAchat and hand = "" then
- if Mouse_Click = "Zone_Coton" then
- Set Time1 = 0
- Set HRVO_achat = random % 4
- if "Coton" in invent then
-
- // dialog "jen ai dΘja"
- if HRVO_achat < 2 then
- dialog "HRVO_125" off
-
- else
- dialog "HRVO_126" off
- endif
-
- elif BourseCacao < 5 then
- // dialog "j'ai pas assez de pognon"
-
- if HRVO_achat < 2 then
- dialog "HRVO_127" off
-
- else
- dialog "HRVO_128" off
- endif
-
- else
- // bourse
- money BourseCacao -5
- set BourseCacao = BourseCacao - 5
- set invent = invent + "Coton"
- set HasBuy = 1
- endif
-
- elif Mouse_Click = "Zone_Corn" then
- Set Time1 = 0
- Set HRVO_achat = random % 4
- if "Corn" in invent then
-
- // dialog "jen ai dΘja"
- if HRVO_achat < 2 then
- dialog "HRVO_125" off
-
- else
- dialog "HRVO_126" off
- endif
-
- elif BourseCacao < 2 then
- // dialog "j'ai pas assez de pognon"
-
- if HRVO_achat < 2 then
- dialog "HRVO_127" off
-
- else
- dialog "HRVO_128" off
- endif
-
- else
- // bourse
- money BourseCacao -2
- set BourseCacao = BourseCacao - 2
- set invent = invent + "Corn"
- set HasBuy = 1
- endif
- endif
- endif
- end
-
- [Ma0029]
- // description warp: marchΘ devant Θtal au sud
- :init
- begin
- ShowSpw "EsclavePoete"
- ShowSpw "W2"
- ShowSpw "Mere"
- DisableClick "Mere"
- ShowSpw "Noble_PM"
- ShowSpw "W3"
- ShowSpw "W5" 2
- ShowSpw "Pecheur"
-
- // Modulo pour rΘponse joueur dans dial achat
- Set HRVO_achat = random % 4
- set HasBuy = 0
- set HasSold = 0
- set LastRep = 0
- end
-
- :loop
- begin
- if not HrAchat and Hand = "" then
- if Mouse_Click = "Zone_Perle" or Mouse_Click = "Zone_Octli" then
- set Mouse_Click = "W5"
- endif
- endif
-
- if HrAchat or HrVente then
- if Time1 > 10 then
- Set hand = ""
- set Mouse_Click = "W5"
- endif
- endif
-
- if HrVente and Mouse_Click = "W5" and not Hand = "" then
- Set Time1 = 0
- if Hand = "Perle_Jade" then
- set invent = invent - "Perle_Jade"
- set HasSold = 1
- money BourseCacao 10
- set BourseCacao = BourseCacao + 10
-
- elif Hand = "Octli" then
- set invent = invent - "Octli"
- set HasSold = 1
- money BourseCacao 5
- set BourseCacao = BourseCacao + 5
- endif
-
- elif Mouse_Click = "W5" then
- Set HrAchat = 0
- Set HrVente = 0
- Set SayGoodbye = 0
- Set CantGetEnough = 0
-
- if LastRep then
- set LastRep = 0
- dialog "W5195_12" 2 1
- else
- dialog "W5195_01" 2 1
- endif
-
- if CantGetEnough = 1 then
- set CantGetEnough = 0
- Wait 1
- dialog "W5195_12" 2 1
- endif
-
- if SayGoodbye then
- Dialog "W5195_11" 2 1
- endif
-
- if HrAchat then
- AutoMove "Zone_Perle"
-
- DisableClick 27
- DisableClick 28
- DisableClick 30
-
- elif HrVente then
-
- DisableClick 27
- DisableClick 28
- DisableClick 30
-
- else
- EnableClick 27
- EnableClick 28
- EnableClick 30
- endif
-
- Set Time1 = 0
-
- elif HrAchat and hand = "" then
- if Mouse_Click = "Zone_Perle" then
- Set Time1 = 0
- Set HRVO_achat = random % 4
- if "Perle_Jade" in invent then
-
- // dialog "jen ai dΘja"
- if HRVO_achat < 2 then
- dialog "HRVO_125" off
-
- else
- dialog "HRVO_126" off
- endif
-
- elif BourseCacao < 10 then
- // dialog "j'ai pas assez de pognon"
-
- if HRVO_achat < 2 then
- dialog "HRVO_127" off
-
- else
- dialog "HRVO_128" off
- endif
-
- else
- // bourse
- money BourseCacao -10
- set BourseCacao = BourseCacao - 10
- set invent = invent + "Perle_Jade"
- set HasBuy = 1
- endif
-
- elif Mouse_Click = "Zone_Octli" then
- Set Time1 = 0
- Set HRVO_achat = random % 4
- if "Octli" in invent then
-
- // dialog "jen ai dΘja"
- if HRVO_achat < 2 then
- dialog "HRVO_125" off
-
- else
- dialog "HRVO_126" off
- endif
-
- elif BourseCacao < 3 then
- // dialog "j'ai pas assez de pognon"
-
- if HRVO_achat <2 then
- dialog "HRVO_127" off
-
- else
- dialog "HRVO_128" off
- endif
-
- else
- // bourse
- money BourseCacao -5
- set BourseCacao = BourseCacao - 5
- set invent = invent + "Octli"
- set HasBuy = 1
- endif
- endif
- endif
- end
-
- [Ma0030]
- // description warp: marchΘ devant Θtal au fond
- :init
- begin
- ShowSpw "Mere"
- ShowSpw "Noble_PM"
- ShowSpw "Pecheur"
- ShowSpw "W2"
- ShowSpw "W3"
- ShowSpw "W4" 2
- DisableClick "Pecheur"
- DisableClick "Zone_AutoZoomW4"
-
- // Modulo pour rΘponse joueur dans dial achat
- Set HRVO_achat = random % 4
- set HasBuy = 0
- set HasSold = 0
- set LastRep = 0
- end
-
- :loop
- begin
- if not HrAchat and Hand = "" then
- if Mouse_Click = "Zone_Bleu_Fonce" or Mouse_Click = "Zone_Noir" or Mouse_Click = "Zone_Rouge" then
- set Mouse_Click = "W4"
- endif
- endif
-
- if HrAchat or HrVente then
- if Time1 > 10 then
- Set hand = ""
- set Mouse_Click = "W4"
- endif
- endif
-
- if HrVente and Mouse_Click = "W4" and not Hand = "" then
- Set Time1 = 0
- if Hand = "Colo_Bleu_Fonce" then
- set invent = invent - "colo_bleu_fonce"
- set HasSold = 1
- money BourseCacao 3
- set BourseCacao = BourseCacao + 3
-
- elif Hand = "colo_noir" then
- set invent = invent - "colo_noir"
- set HasSold = 1
- money BourseCacao 3
- set BourseCacao = BourseCacao + 3
-
- elif Hand = "colo_rouge" then
- set invent = invent - "colo_rouge"
- set HasSold = 1
- money BourseCacao 3
- set BourseCacao = BourseCacao + 3
- endif
-
- elif Mouse_Click = "W4" then
- Set HrAchat = 0
- Set HrVente = 0
- Set SayGoodbye = 0
- Set CantGetEnough = 0
-
- if LastRep then
- set LastRep = 0
- dialog "W4194_12" 2 1
- else
- dialog "W4194_01" 2 1
- endif
-
- if CantGetEnough = 1 then
- set CantGetEnough = 0
- Wait 1
- dialog "W4194_12" 2 1
- endif
-
- if SayGoodbye then
- Dialog "W4194_11" 2 1
- endif
-
- if HrAchat then
- AutoMove "Zone_AutoZoomW4"
- Lock
-
- DisableClick 27
- DisableClick 28
- DisableClick 29
-
- elif HrVente then
-
- AutoMove "Zone_AutoZoomW4"
- Lock
- DisableClick 27
- DisableClick 28
- DisableClick 29
-
- else
- EnableClick 27
- EnableClick 28
- EnableClick 29
- Unlock
- endif
-
- Set Time1 = 0
-
- elif HrAchat and hand = "" then
- if Mouse_Click = "Zone_Bleu_Fonce" then
- Set Time1 = 0
- Set HRVO_achat = random % 4
- if "Colo_Bleu_Fonce" in invent then
-
- // dialog "jen ai dΘja"
- if HRVO_achat < 2 then
- dialog "HRVO_125" off
-
- else
- dialog "HRVO_126" off
- endif
-
- elif BourseCacao < 3 then
- // dialog "j'ai pas assez de pognon"
-
- if HRVO_achat < 2 then
- dialog "HRVO_127" off
-
- else
- dialog "HRVO_128" off
- endif
-
- else
- // bourse
- money BourseCacao -3
- set BourseCacao = BourseCacao - 3
- set invent = invent + "colo_bleu_fonce"
- set HasBuy = 1
- endif
-
- elif Mouse_Click = "Zone_Noir" then
- Set Time1 = 0
- Set HRVO_achat = random % 4
- if "Colo_Noir" in invent then
-
- // dialog "jen ai dΘja"
- if HRVO_achat < 2 then
- dialog "HRVO_125" off
-
- else
- dialog "HRVO_126" off
- endif
-
- elif BourseCacao < 3 then
- // dialog "j'ai pas assez de pognon"
-
- if HRVO_achat < 2 then
- dialog "HRVO_127" off
-
- else
- dialog "HRVO_128" off
- endif
-
- else
- // bourse
- money BourseCacao -3
- set BourseCacao = BourseCacao - 3
- set invent = invent + "colo_noir"
- set HasBuy = 1
- endif
-
- elif Mouse_Click = "Zone_Rouge" then
- Set Time1 = 0
- Set HRVO_achat = random % 4
- if "Colo_Rouge" in invent then
-
- // dialog "jen ai dΘja"
- if HRVO_achat < 2 then
- dialog "HRVO_125" off
-
- else
- dialog "HRVO_126" off
- endif
-
- elif BourseCacao < 3 then
- // dialog "j'ai pas assez de pognon"
-
- if HRVO_achat < 2 then
- dialog "HRVO_127" off
-
- else
- dialog "HRVO_128" off
- endif
-
- else
- // bourse
- money BourseCacao -3
- set BourseCacao = BourseCacao - 3
- set invent = invent + "colo_Rouge"
- set HasBuy = 1
- endif
- endif
- endif
- end
-
- [Ma0031]
- // description warp: centre de la petite place
- :init
- begin
-
- // Voir si on met turquoise (Oh!)
- // si le joueur a eu l'info, Turquoise est lα. Sinon non
- if acte = 5 and Dial113 = 1 then
- ShowSpw "Tur"
- Endif
-
- // prΘsence "garde1"
- if acte = 1 then
- ShowSpw "garde1"
- Disableclick "garde1"
- endif
-
- if EsclaveIndiceBijou then
- set OizoSeCasse = 1
- endif
- end
-
- :loop
- begin
- end
-
- // FIN du script
-