You are not logged in.

Dear visitor, welcome to AnnoZone Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

manfried

Ausguck

  • "manfried" started this thread

Posts: 71

Date of registration: Apr 1st 2004

  • Send private message

1

Saturday, August 21st 2004, 8:21pm

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

Posts: 4,772

Date of registration: Nov 15th 2003

  • Send private message

2

Saturday, August 21st 2004, 8:47pm

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" started this thread

Posts: 71

Date of registration: Apr 1st 2004

  • Send private message

3

Saturday, August 21st 2004, 9:16pm

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

Posts: 4,772

Date of registration: Nov 15th 2003

  • Send private message

4

Saturday, August 21st 2004, 9:45pm

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" started this thread

Posts: 71

Date of registration: Apr 1st 2004

  • Send private message

5

Saturday, August 21st 2004, 10:16pm

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

Posts: 4,772

Date of registration: Nov 15th 2003

  • Send private message

6

Sunday, August 22nd 2004, 11:26am

lol, manfried, 1503 is very unusual...

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