Zitat
Original von manfried
I'm actually trying to use this function in a new scenario, but of course, it doesn't work
I don't think it is is logical to try to move an object into an area.. I'd guess you can only move an object to a place, so the syntax probably is more like MOVE_UNIT( "PRINCESSE", "y,x" ) where y,x are the coordinates to move the figure to. Since that command was never used in any MD-scenario, you are on your own figuring out its syntax..I think Annokrat or Bomi has made some tessts with moving ships around..Zitat
Original von manfried
Hi,
I'm actually trying to use this function in a new scenario, but of course, it doesn't work
The Unit in called "PRINCESSE", her visible status is set to false at the beginning of the game. During the game, she must appear at the battle field, so i want to move her using the MOVE_UNIT function. I proceed like that:
[AREA DEFINE]
"MONDORF" 24, 760, 888, 152
"ZONE" 815, 130, 131, 816
[SCRIPT KERNEL]
IF OBG == FALSE && OBJECT "CHATEAU" KILLED THEN
{
OBG = TRUE;
MOVE_UNIT( "PRINCESSE", "ZONE" );
SET_UNIT_VISIBLE("PRINCESSE", TRUE);
SHOWTEXT("Forteresse_obj02.htm");
}
IF OBG ==TRUE && AREA "MONDORF" TOUCHED_BY_OBJECT "PRINCESSE" THEN
{
WON("HUMAN01");
}
So if the object "CHATEAU" is killed, the princess should appear to the area "ZONE"... But she doesn't.
Note: in the initblock{} i set the princess to the area "MONDORF" like that:
MOVE_UNIT( "PRINCESSE", "MONDORF" );
Can you see what's wrong with this scenario please?
Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »drkohler« (22. September 2004, 09:45)
Zitat
MOVE_UNIT( "Object", "Area" )
The object identified by Object is moved on the map into the area defined by Area.
Usually this could be used to relocate ships.
Yes, you are right, I'll have to check why this command moved into the "used" section of the scriipt.txt instead of the "unknown" section... I have never tried to use it..Zitat
Original von manfried
Zitat
MOVE_UNIT( "Object", "Area" )
The object identified by Object is moved on the map into the area defined by Area.
Usually this could be used to relocate ships.
I saw that in the script.txt file in the list of known Script commands so i thought it was use in some scenarios. I also thought that it was strange to use an area for that (where would have be the exact location of the unit then?). I'll with only x,y, thanks
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »drkohler« (22. September 2004, 10:11)