Announcement: Be excellent to each other.


Caravel Forum : Caravel Boards : General : I dont understand how does the "end" thingy works.
New Topic New Poll Post Reply
Poster Message
13th Slayer
Level: Disabled
Avatar
Rank Points: 27
Registered: 09-28-2007
IP: Logged
icon I dont understand how does the "end" thingy works. (0)  
Because for me, it doesnt always work.
01-07-2008 at 06:20 AM
View Profile Send Private Message to User Send Email to User Show all user's posts This architect's holds Quote Reply
NoahT
Level: Smitemaster
Avatar
Rank Points: 1138
Registered: 06-17-2003
IP: Logged
icon Re: I dont understand how does the "end" thingy works. (0)  
I assume you mean the "End" script command? Its purpose is to end an NPC script and remove it after you leave the room, in case you didn't know.

-Noah

____________________________
And in the end, the love you take is equal to the love you make.

My stuff:
Click here to view the secret text


[Last edited by NoahT at 03-08-2022 08:14 PM]
01-07-2008 at 06:28 AM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
coppro
Level: Smitemaster
Rank Points: 1309
Registered: 11-24-2005
IP: Logged
icon Re: I dont understand how does the "end" thingy works. (+1)  
No, "End" removes the character immediately and permanently.

"End on room exit" means that the character will not reappear in a future visit to the room.
01-07-2008 at 10:14 AM
View Profile Show all user's posts Quote Reply
Someone Else
Level: Smitemaster
Avatar
Rank Points: 2334
Registered: 06-14-2005
IP: Logged
icon Re: I dont understand how does the "end" thingy works. (+1)  
Not quite true. 'End' will keep the character visible until the room is exited, and invincible if applicable. However, it will process no more script commands.
01-07-2008 at 07:01 PM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
13th Slayer
Level: Disabled
Avatar
Rank Points: 27
Registered: 09-28-2007
IP: Logged
icon Re: I dont understand how does the "end" thingy works. (0)  
I was not asking what is its purpose. Sometimes, even it is in script, script repeats itself.
01-08-2008 at 06:52 AM
View Profile Send Private Message to User Send Email to User Show all user's posts This architect's holds Quote Reply
Rabscuttle
Level: Smitemaster
Avatar
Rank Points: 2486
Registered: 09-10-2004
IP: Logged
icon Re: I dont understand how does the "end" thingy works. (+2)  
Unless I'm mistaken 'End' and 'End on room exit' both stop the character script from re-running once the player has left the room.

The difference is that 'End on room exit' allows the character to do more stuff until the player actually leaves. For example, you might want the character to walk off once the room is conquered. If you just say

Wait for clean room
Speech "Fine, I'm leaving forever now."
Move to (0, 20)
Disappear
End


then if the player leaves before the character does, the End command is not reached and the character will be back if the player re-enters.

Better is
Wait for clean room
End on room exit
Speech "Fine, I'm leaving forever now."
Move to (0, 20)
Disappear


Then the character will be gone even if the player leaves first.

====


13th Slayer - if you are seeing something that you think is wrong, then you should attach the hold/room/script in question. It's hard to say what's wrong otherwise. :)


01-08-2008 at 07:08 AM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
New Topic New Poll Post Reply
Caravel Forum : Caravel Boards : General : I dont understand how does the "end" thingy works.
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.