SAIL - Dialogi i Cele Misji

Wszelkie pytania na temat SAIL'a i modowania OW.
ph3nom
Veteran
Messages : 286
Inscription : Do Aug 03, 2006 2:17 pm
Wohnort : Europe

SAIL - Dialogi i Cele Misji

Beitrag par ph3nom »

W tym temacie możecie zadawać pytania i uzyskiwać odpowiedzi odnośnie dialogów i celów misji, które pisze się w języku SAIL.

Najpierw jednak polecam zajrzeć do tutorialu, który znajduje się na stronie:
http://www.owsupport.com/?sect=tutorial ... dialogs_pl
Zuletzt geändert von Shaman am Mi Mär 28, 2007 4:52 pm, insgesamt 1-mal geändert.
Bild
Benutzeravatar
5ITH
Soldier level 1
Soldier level 1
Messages : 28
Inscription : Sa Mär 10, 2007 10:34 pm
Wohnort : CZECH REPUBLIC

Please Help me!!

Beitrag par 5ITH »

I want as to general Morozov get at any soldiers(girl boy), so as to They added to him. I export in SAIL all character, but I don't know where is bug. Every time write me 'identifier' expected but 'andrey' found.

Code: Alles auswählen

Content Main.src:

export andrey;
export girl;
export boy;
export ru, ru2;

function sides;
Begin
ru=2;
ru2=5;
end;

Starting
Begin
enable;
If See(ru2, andrey) then
Begin
InGameOn;
CenterOnUnits([andrey,girl,boy]);
SetSide(kluk, ru);
SetSide(holka, ru);
ComStop(andrey);
ComHold([andrey,boy,girl]);
wait(10);
InGameOff;
end;
end;
end;
PLEASE HELP...

Edit by Shaman: This post is not on thread. If you want talk about change sides etc, go to this thread: http://forum.original-war.net/viewtopic.php?p=5052#5052
5ITH ----> OWS BETA TESTER
Benutzeravatar
Jeanks
Soldier level 6
Soldier level 6
Messages : 305
Inscription : Fr Feb 16, 2007 1:34 pm
Wohnort : Grudziądz

Beitrag par Jeanks »

GOOD CODE

Code: Alles auswählen

export andrey, girl, boy, ru, ru2;
starting      
function sides;
Begin  // MUST BE ONE BEGIN IN FUNCTION SAIL( no in whole)
ru=2;
ru2=5;
begin  // this is next function and new begin
If See(ru2,'andrey') then  //Thoughts that it rus2 Indefikator(ID HEROes)
InGameOn;
CenterOnUnits(andrey);  //must be one heroes center unit
SetSide(kluk, ru);
SetSide(holka, ru);
ComStop(andrey);
ComHold([andrey,boy,girl]);
InGameOff;
end;
1.I unchecked if surely it acts if check make well goods surely it if check make well goods.
2.Probably, it must served coming be area.



[/code]
Jeanks zgarnia wszystko ot co xD
Benutzeravatar
Blashix
Community Veteran
Community Veteran
Messages : 375
Inscription : So Apr 29, 2007 8:23 am
Wohnort : Polska

:P

Beitrag par Blashix »

Co trzeba napisać aby na początku misji była rozmowa i po dojściu do eona ?
--> 02.12.2008 PC <--
| AMD Athlon 64 X2 5400 Black Edition 3,4Ghz + Cooling Pentagram Freezone HP-120 AlCu Karakorum | GoodRam DDR2 2x 2GB 810Mhz CL4 + Arctic Cooling Arctic RC | Asus M3A78 PRO AMD 780G (Radeon HD 3200 & HD Audio Realtek ALC1200) | Radeon HD 4850 Gigabyte 512MB 700/2000 MHz + Zalman Cooling | Samsung SpinPoint T166 320 GB (SATA II, 16MB cache, NCQ) | LG SuperMulti DVD LightScribe | Power: Chieftec (GPS-500AB-A) 500W all in: NZXT Apollo Crafted Series Black

Mouse: A4TECH XL-750F
Keyboard: Saitek Eclipse II
Monitor: 19 LG Flatron W1952TQ-PF
Radzio
Site Administrator
Site Administrator
Poland
Messages : 2898
Inscription : Fr Jul 28, 2006 10:58 am
Wohnort : Bialystok, Poland

Beitrag par Radzio »

Code: Alles auswählen

starting
begin
//kod na gadke na poczatku
end;

every 0$1 trigger IsInArea(ludek,area_eonu) do
begin
//kod na rozmowe po dotarciu do EONu
end;
ludek - twoja postac
area_eonu - identyfikator arei stworzonej wokol eonu
Benutzeravatar
Blashix
Community Veteran
Community Veteran
Messages : 375
Inscription : So Apr 29, 2007 8:23 am
Wohnort : Polska

:P

Beitrag par Blashix »

No jest git, git gitara gra xD
A teraz cele misji ?

Code: Alles auswählen

changemissionobjectives
co dalej ?



Ps.

Code: Alles auswählen

//  dialogueon;
  if not killhim then say(joan,'DXComments-Joan-1');
Co daje te ?

Code: Alles auswählen

 if not killhim then
EDIT: Rąbać ten kod, ale teraz cele misji jak zrobić xD ?
Zuletzt geändert von Blashix am Sa Mai 05, 2007 8:20 am, insgesamt 1-mal geändert.
--> 02.12.2008 PC <--
| AMD Athlon 64 X2 5400 Black Edition 3,4Ghz + Cooling Pentagram Freezone HP-120 AlCu Karakorum | GoodRam DDR2 2x 2GB 810Mhz CL4 + Arctic Cooling Arctic RC | Asus M3A78 PRO AMD 780G (Radeon HD 3200 & HD Audio Realtek ALC1200) | Radeon HD 4850 Gigabyte 512MB 700/2000 MHz + Zalman Cooling | Samsung SpinPoint T166 320 GB (SATA II, 16MB cache, NCQ) | LG SuperMulti DVD LightScribe | Power: Chieftec (GPS-500AB-A) 500W all in: NZXT Apollo Crafted Series Black

Mouse: A4TECH XL-750F
Keyboard: Saitek Eclipse II
Monitor: 19 LG Flatron W1952TQ-PF
Benutzeravatar
NaDoL
Community Veteran
Community Veteran
Messages : 379
Inscription : Mi Apr 12, 2006 7:43 pm
Wohnort : Poland
Contact :

temat

Beitrag par NaDoL »

Jest tyle poradników pisanych NORMALNYM językiem że można poświęcić chwile i poczytać.
A te twoje ''te'' to jest warunek tylko jakoś dziwnie napisany
''jeżeli coś(czyli tu chodzi pewnie o to czy żyje ten ktoś) wtedy rozmowa; krótko mówiąc.
I w ogóle to nie wiem po co to, skoro to ma znaczyć że jeżeli nie zginie to mówi?
Wystarczy dać Say, jeżeli by chodziło o to że coś się stanie jak zginie to:

if IsDead(jednostka) then
begin
kod;
end;
Bild
Radzio
Site Administrator
Site Administrator
Poland
Messages : 2898
Inscription : Fr Jul 28, 2006 10:58 am
Wohnort : Bialystok, Poland

Beitrag par Radzio »

Ten kod byl czescia 1 misji amerykan. "killhim" to warunek, ktory przyjmowal wartosc 1, jesli Johan podpadl (chcieli go zabic). Wiec ten kod mowi, ze jesli nie chca go zabic, to niech Joan powie...
Benutzeravatar
Blashix
Community Veteran
Community Veteran
Messages : 375
Inscription : So Apr 29, 2007 8:23 am
Wohnort : Polska

:P

Beitrag par Blashix »

Mam problem z celami misji :/ Moze ktoś zerknąć ? I poprawić kod :)

SAIL

Code: Alles auswählen

starting

begin

ComEnterUnit(soldier1, bun1);
ComEnterUnit(inz1, mag2);

Wait(0$2);

Say(winston,'dialog1');

Wait(0$1);

Say(berd,'dialog2');

ChangeMissionObjectives('M1');

AddComMoveToArea(a1, area10);
AddComMoveToArea(a2, area10);
AddComMoveToArea(a3, area10);
AddComMoveToArea(a4, area10);

end;
Zawartość pliku Texts.txt

Code: Alles auswählen

$ dialog1
- Grupa jedenasta, przygotować się. John, Krig, Zemin, Filips, Jelid, przejść do EONa.

$ dialog2
-Tak jest sir!

# M1
Add Main goramapy
- Dojdź do EONu.
#
--> 02.12.2008 PC <--
| AMD Athlon 64 X2 5400 Black Edition 3,4Ghz + Cooling Pentagram Freezone HP-120 AlCu Karakorum | GoodRam DDR2 2x 2GB 810Mhz CL4 + Arctic Cooling Arctic RC | Asus M3A78 PRO AMD 780G (Radeon HD 3200 & HD Audio Realtek ALC1200) | Radeon HD 4850 Gigabyte 512MB 700/2000 MHz + Zalman Cooling | Samsung SpinPoint T166 320 GB (SATA II, 16MB cache, NCQ) | LG SuperMulti DVD LightScribe | Power: Chieftec (GPS-500AB-A) 500W all in: NZXT Apollo Crafted Series Black

Mouse: A4TECH XL-750F
Keyboard: Saitek Eclipse II
Monitor: 19 LG Flatron W1952TQ-PF
Radzio
Site Administrator
Site Administrator
Poland
Messages : 2898
Inscription : Fr Jul 28, 2006 10:58 am
Wohnort : Bialystok, Poland

Beitrag par Radzio »

Po kazdym myslniku powinna byc spacja.
A dialogi ci sie wyswietlaja czy nie?
Benutzeravatar
Blashix
Community Veteran
Community Veteran
Messages : 375
Inscription : So Apr 29, 2007 8:23 am
Wohnort : Polska

:P

Beitrag par Blashix »

Dialogi działają w trybie "Go to game mode" a tak normalnie nie sprawdzałem bo nawet instalki narazie nie umiem zrobic itd. :P
--> 02.12.2008 PC <--
| AMD Athlon 64 X2 5400 Black Edition 3,4Ghz + Cooling Pentagram Freezone HP-120 AlCu Karakorum | GoodRam DDR2 2x 2GB 810Mhz CL4 + Arctic Cooling Arctic RC | Asus M3A78 PRO AMD 780G (Radeon HD 3200 & HD Audio Realtek ALC1200) | Radeon HD 4850 Gigabyte 512MB 700/2000 MHz + Zalman Cooling | Samsung SpinPoint T166 320 GB (SATA II, 16MB cache, NCQ) | LG SuperMulti DVD LightScribe | Power: Chieftec (GPS-500AB-A) 500W all in: NZXT Apollo Crafted Series Black

Mouse: A4TECH XL-750F
Keyboard: Saitek Eclipse II
Monitor: 19 LG Flatron W1952TQ-PF
Benutzeravatar
NaDoL
Community Veteran
Community Veteran
Messages : 379
Inscription : Mi Apr 12, 2006 7:43 pm
Wohnort : Poland
Contact :

temat

Beitrag par NaDoL »

To zacznij od tego i moda sprawdzaj przez mod luncher a nie przez to ''go to the mode''
I ustaw w Map Preferences (czy jakoś tak) numer misji, żeby wiedział z kąd czytać dialogi.
Bild
Radzio
Site Administrator
Site Administrator
Poland
Messages : 2898
Inscription : Fr Jul 28, 2006 10:58 am
Wohnort : Bialystok, Poland

Beitrag par Radzio »

Przeciez napisal, ze dialogi sa.
Benutzeravatar
NaDoL
Community Veteran
Community Veteran
Messages : 379
Inscription : Mi Apr 12, 2006 7:43 pm
Wohnort : Poland
Contact :

temat

Beitrag par NaDoL »

To po co dał kod do poprawki?
Bild
Benutzeravatar
Blashix
Community Veteran
Community Veteran
Messages : 375
Inscription : So Apr 29, 2007 8:23 am
Wohnort : Polska

:P

Beitrag par Blashix »

A więc sprawdziłem za pomocą edytora wszystkie dialogi działają, ale juz w modlaunch dialogi z pierwszej misji są w 2, 3, i tak dalej, a te co miały być w 2 albo 3 to nima ... co to może być ?? :?
--> 02.12.2008 PC <--
| AMD Athlon 64 X2 5400 Black Edition 3,4Ghz + Cooling Pentagram Freezone HP-120 AlCu Karakorum | GoodRam DDR2 2x 2GB 810Mhz CL4 + Arctic Cooling Arctic RC | Asus M3A78 PRO AMD 780G (Radeon HD 3200 & HD Audio Realtek ALC1200) | Radeon HD 4850 Gigabyte 512MB 700/2000 MHz + Zalman Cooling | Samsung SpinPoint T166 320 GB (SATA II, 16MB cache, NCQ) | LG SuperMulti DVD LightScribe | Power: Chieftec (GPS-500AB-A) 500W all in: NZXT Apollo Crafted Series Black

Mouse: A4TECH XL-750F
Keyboard: Saitek Eclipse II
Monitor: 19 LG Flatron W1952TQ-PF
Répondre