Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: AnnoZone Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

manfried

Ausguck

  • »manfried« ist der Autor dieses Themas

Beiträge: 71

Registrierungsdatum: 1. April 2004

  • Nachricht senden

1

Mittwoch, 5. Mai 2004, 20:21

script edition

Hi,

I made now 7 scenarios that are good working, and so i know a few things about the script edition, but there's still things that i do not understand:
- When i delete all the previous script to put my one, it never works: at the scenario loading and dialox box appear, with the title "1503 fohler" or something like that
- what does the "$" instruction do? It seems like it was to include comments about the script, but i delete some of them the scenario doesn't still work... Why?
- I'm checking for a function that would make war beetween two players, and i found that:
SET_DIPLOMACY( "CG02", "HUMAN01", -128 );
Will that be ok to make war beetween CG02 and HUMAN1 ? Can we put war for human player againt a player that is still not in is diplomatic menu?

thanks for your answers

manfried

Ausguck

  • »manfried« ist der Autor dieses Themas

Beiträge: 71

Registrierungsdatum: 1. April 2004

  • Nachricht senden

2

Mittwoch, 5. Mai 2004, 20:49

and another thing: i just had those lines in my script and the dialog box "Felher" that i told appear when the scenario is loading:

IF MISSION_UN == FALSE &&
(PLAYER "HUMAN" WAR_STATUS "CG1" ||
PLAYER "HUMAN" WAR_STATUS "CG2" ||
PLAYER "HUMAN" WAR_STATUS "CG3" ||
PLAYER "HUMAN" WAR_STATUS "CG04" ||
PLAYER "HUMAN" WAR_STATUS "CG05" ||
PLAYER "HUMAN" WAR_STATUS "CG06" ||
PLAYER "HUMAN" WAR_STATUS "CG07") THEN
{
SHOWTEXT(Singleplayer_60_lost.htm);
LOST( "HUMAN" );
}

drkohler

Master of Editor

Beiträge: 1 578

Registrierungsdatum: 18. Juni 2003

  • Nachricht senden

3

Mittwoch, 5. Mai 2004, 21:26

Zitat

Original von manfried
and another thing: i just had those lines in my script and the dialog box "Felher" that i told appear when the scenario is loading:

IF MISSION_UN == FALSE &&
(PLAYER "HUMAN" WAR_STATUS "CG1" ||
PLAYER "HUMAN" WAR_STATUS "CG2" ||
PLAYER "HUMAN" WAR_STATUS "CG3" ||
PLAYER "HUMAN" WAR_STATUS "CG04" ||
PLAYER "HUMAN" WAR_STATUS "CG05" ||
PLAYER "HUMAN" WAR_STATUS "CG06" ||
PLAYER "HUMAN" WAR_STATUS "CG07") THEN
{
SHOWTEXT(Singleplayer_60_lost.htm);
LOST( "HUMAN" );
}
The editor does not generate "HUMAN" or "CG1". Check all the SpAlias in Menu -> "General" -> "Show Players" first.

manfried

Ausguck

  • »manfried« ist der Autor dieses Themas

Beiträge: 71

Registrierungsdatum: 1. April 2004

  • Nachricht senden

4

Mittwoch, 5. Mai 2004, 21:36

I confirm you that "HUMAN" and "CG1" are the correct SpAlias used by the editor, even in going in "General" and then in "Show Players". It's probably because i always create my scenarios in modifying an existing one, and the sunflowers scenarios' got those SpAlias names.

drkohler

Master of Editor

Beiträge: 1 578

Registrierungsdatum: 18. Juni 2003

  • Nachricht senden

5

Mittwoch, 5. Mai 2004, 21:51

Zitat

Original von manfried
I confirm you that "HUMAN" and "CG1" are the correct SpAlias used by the editor, even in going in "General" and then in "Show Players". It's probably because i always create my scenarios in modifying an existing one, and the sunflowers scenarios' got those SpAlias names.
Then the error is somewhere else...

manfried

Ausguck

  • »manfried« ist der Autor dieses Themas

Beiträge: 71

Registrierungsdatum: 1. April 2004

  • Nachricht senden

6

Mittwoch, 5. Mai 2004, 22:28

ok, i find the error, i missed the " in SHOWTEXT(Singleplayer_60_lost.htm);

And what about SET_DIPLOMACY( "CG2", "HUMAN", -128 );
Will it initiate a war between CG2 and HUMAN?

blackhole89

Is Seefest

Beiträge: 52

Registrierungsdatum: 28. Juli 2003

  • Nachricht senden

7

Donnerstag, 6. Mai 2004, 13:13

No, at least it won't do that directly. Yet, it'll most probably cause the CG to break down trade pacts and initiate war in the next few minutes.
  One ring to rule them all,
One ring to find them
One ring to bring them all
and in the network bind them.

:P Blacky's Anno1503 Szenarieneditor gibt's bisher nur hier! :P

: Alle Angaben ohne Gewehr!

annokrat

Schatzjäger

Beiträge: 4 772

Registrierungsdatum: 15. November 2003

  • Nachricht senden

8

Donnerstag, 6. Mai 2004, 17:36

as far as i know: minimum is -127

so syntax should look like this:

SET_DIPLOMACY( "CG2", "HUMAN", -127 )

annokrat
  anno 1503, das beste anno aller zeiten.
anno 1701, das anno für ewige anfänger.

manfried

Ausguck

  • »manfried« ist der Autor dieses Themas

Beiträge: 71

Registrierungsdatum: 1. April 2004

  • Nachricht senden

9

Donnerstag, 6. Mai 2004, 21:48

Strange, i took it in the "le marquis" scenario and it is -128

drkohler

Master of Editor

Beiträge: 1 578

Registrierungsdatum: 18. Juni 2003

  • Nachricht senden

10

Donnerstag, 6. Mai 2004, 22:08

Zitat

Original von manfried
Strange, i took it in the "le marquis" scenario and it is -128
The number runs from -128 to 127

annokrat

Schatzjäger

Beiträge: 4 772

Registrierungsdatum: 15. November 2003

  • Nachricht senden

11

Freitag, 7. Mai 2004, 17:56

ok, i didn't use scripting.
but when i checked scenes of campaign i found several times -127.
dieter's skript.txt/script.txt shows -127, too.

annokrat
  anno 1503, das beste anno aller zeiten.
anno 1701, das anno für ewige anfänger.