Sie sind nicht angemeldet.

manfried

Ausguck

  • »manfried« ist der Autor dieses Themas

Beiträge: 71

Registrierungsdatum: 1. April 2004

  • Nachricht senden

1

Samstag, 21. August 2004, 20:21

Object_anlage

Hi,

It's been for 2 days that i'm trying to use the OBJECT_ANLAGE function unsuccessfully so i need a few explanations:

OBJECT_ANLAGE "Anlage" x,y,Building-ID

x= x island position on the map + x building position on the island ?
y= y island position on the map + y building position on the island ?
Building-ID = Zeile, Element or id ?

annokrat

Schatzjäger

Beiträge: 4 773

Registrierungsdatum: 15. November 2003

  • Nachricht senden

2

Samstag, 21. August 2004, 20:47

OBJECT_ANLAGE "KATHEDRALE" <y of map>, <x of map>, <building-id of file buildings.txt>

... that's my (fast) result...

for example: building-id of KATHEDRALE = 1330 (first number in buildings.txt)

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

3

Samstag, 21. August 2004, 21:16

it doesn't works for me.
Island: x = 496 y = 16
Building: x = 84 y = 60
Building id = 2223

So i made this script:

[OBJECT_DEFINE]
OBJECT_ANLAGE "FORTERESSE" 580, 76, 2223

[SCRIPT_KERNEL]
INITBLOCK()
{
}
IF OBJECT "FORTERESSE" KILLED THEN
{
SHOWTEXT("Forteresse_obj01.htm");
}

The problem is that the html file appear as soon as the game starts, but the object if still built ! :scratch:

annokrat

Schatzjäger

Beiträge: 4 773

Registrierungsdatum: 15. November 2003

  • Nachricht senden

4

Samstag, 21. August 2004, 21:45

manfried,
please read my last post for a second time.

OBJECT_ANLAGE "FORTRESSE" 76, 580, 2223 should work.

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

5

Samstag, 21. August 2004, 22:16

Oups, i thought you made a mistake and not that you was really told me that.

It works now! I'm really thanksful to you, i was going to kill myself with this stupid error. It's very unusual to see the y before the x :scratch:

annokrat

Schatzjäger

Beiträge: 4 773

Registrierungsdatum: 15. November 2003

  • Nachricht senden

6

Sonntag, 22. August 2004, 11:26

lol, manfried, 1503 is very unusual...

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