Character doesn't appear

Started by JudgeDeadd, Mon 06/06/2005 15:26:23

Previous topic - Next topic

JudgeDeadd

I've got a character with script name WEIRDO.
I want him to start in room 4 at coords 287,180.
But he just doesn't appear there!
If I put him in another room everything is fine.
Can you help me?
Or is there a command which in debug mode helps to determine where a character is?
You know what they say... no... wait... you don't. What a shame.

Mats Berglinn

Have you checked out if the character is invinsible or that you put him at a walkbehind area?

JudgeDeadd

No, there aren't walkbehinds in that room.
You know what they say... no... wait... you don't. What a shame.

Gilbert

Quote from: JudgeDeadd on Mon 06/06/2005 15:26:23
Or is there a command which in debug mode helps to determine where a character is?
Display("%d, %d", character[WEIRDO].x, character[WEIRDO].y);

If you want a "debug" feature for it, just tie that display to a key in on_key_press().

Is the character the player character? Check if the option "Hide player character" is checked for that room.
Check also if you had set some "invisible" view for the walkable area in the walkable area setting.

JudgeDeadd

Hmmm. I saw his room by using the following.

if (keycode==2)  Display("%d, %d", character[WEIRDO].room); // Ctrl-B, display weirdo

It tells me that he's in room 4,4477254. Is that normal?
You know what they say... no... wait... you don't. What a shame.

Kweepa

Each %d you use corresponds to a number you want to display - so 4 is the WEIRDO's room number and 4477254 is some random junk from the stack.
To fix, remove the second %d.
Still waiting for Purity of the Surf II

SMF spam blocked by CleanTalk