106
Mega Tokyo AGI Archive / Re: Need help with script!
« on: October 25, 2001, 08:32:37 PM »
Hi Circuit,
I suppose you're talking about the room which shows the inside of the cave and you want to take the player to a new position.
You would write:
if (posn(o0,20,138,30,154)) {
position(o0,74,150);
move.obj(o0,83,150);
}
With this, the player will be relocated to 74,150 and will then walk automaticly to 83,150.
But it might look a bit bizarre. Are you sure you didn't mean makeing the player appear in a new room? If so, you would need
if (posn(o0,20,138,30,154)) {
new.room(xy); // with xy being the no. of the new room
}
In the new room, you would have to include the two lines:
position(o0,74,150);
move.obj(o0,83,150);
in the very first section of the logic which begins with
if (new_room) {
Hope I could help you.
b.o.k.
Quote
ok, i understand the posn line but the v220 = 3 and set line have me confused. how can i turn this line into taking me to:
start point (74,150)
end point ( 83, 150)
I suppose you're talking about the room which shows the inside of the cave and you want to take the player to a new position.
You would write:
if (posn(o0,20,138,30,154)) {
position(o0,74,150);
move.obj(o0,83,150);
}
With this, the player will be relocated to 74,150 and will then walk automaticly to 83,150.
But it might look a bit bizarre. Are you sure you didn't mean makeing the player appear in a new room? If so, you would need
if (posn(o0,20,138,30,154)) {
new.room(xy); // with xy being the no. of the new room
}
In the new room, you would have to include the two lines:
position(o0,74,150);
move.obj(o0,83,150);
in the very first section of the logic which begins with
if (new_room) {
Hope I could help you.
b.o.k.



