[Encore] [EnCore] Starting Points

Kevin Jepson kevijeps at telusplanet.net
Tue Jul 10 13:49:35 MDT 2007


Hi Jean Marc
I had a similar problem for a $student player class I created for Literary
Worlds.
I needed to move the user to a WEB room to enable them to enter some info
each time they logged in regardless of what their home was.
I used a custom :confunc verb to do the move.
The trick is to Fork the process that does the move.
This allows the default confunc to complete (which moves the player to it's
home) and THEN moves the player to where we want them to be.
Good Luck
Ciao
KJ

Here is the code I used:
=======Start Verb Code=======
@verb #538:"confunc" this none this rxd #2
@program #538:confunc
"'confunc ()' - Modified to add Log setup for Actors using Xpress only";
"Wiz perms necessary?!?";
"Set's a property called newborn to 0 which is only reset when the email";
"addresses are successfully set by player.";
"Xpress logging is turned OFF by default";
"You can turn Xpress recording ON, so there is continuous log of this
Actor.";
"By uncommenting the noted line below.";
"Moves the player to this.start_page";
if ((valid(cp = caller_perms()) && (caller != this)) &&
(!$perm_utils:controls(cp, this)))
return E_PERM;
endif
"Check if user logged in via Xpress. If not exit and resume normal access.";
if (this.ts_client)
"May be needed try without for now.";
"set_task_perms(this)";
this.newborn = 1;
this.recording = 0;
"=======================";
"Uncomment this line to enable Xpress logging for Actors";
"this.recording = 1";
"=======================";
"Clear old email addresses, and actor_real_name just in case";
this.email = "";
this.instructor_email = "";
this.actor_real_name = "";
"Initialize Actor_Log";
this.Actor_Log = {};
fork (0)
"Move the player to a special WEB room with no exits to force email
registration";
move(this, this.start_page);
endfork
endif
pass(@args);
==========End Verb Code============

-----Original Message-----
From: encore-bounces at encore-consortium.org
[mailto:encore-bounces at encore-consortium.org] On Behalf Of Jean-Marc Giffin
Sent: July 10, 2007 1:14 PM
To: encore at encore-consortium.org
Subject: [Encore] [EnCore] Starting Points


Hey Guys!

Thanks for all the help- that's why I keep coming here! :)
I was wondering, is there a way to make so that the player is not
automatically taken to $player_start upon login? I thought that changing the
.home property during :confunc() would do it, but it only happens the NEXT
time they log in. I'd like the starting page to be dynamic- that is,
determined when they first login. I do this, in $player:confunc() :

this.home = alocation;
this:moveto(alocation);

It moves them there for a second, but then quickly takes them back to
$player_start. I tried doing a search about it, but there are many results
that involve #player_start, so I'm not sure which one is the one that
INSISTS that we go there.

Any ideas?

Thanks!

Jean Of mArc 


No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.476 / Virus Database: 269.10.2/893 - Release Date: 09/07/2007
5:22 PM

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.476 / Virus Database: 269.10.2/893 - Release Date: 09/07/2007
5:22 PM
 




More information about the Encore mailing list