



ChangePlayer (lines 5172-5193)
Back to List
Browsing parserm.h
5172 [ ChangePlayer obj flag i;
5173 ! if (obj.&number == 0) return RunTimeError(7,obj);
5174 if (actor == player) actor=obj;
5175 give player ~transparent ~concealed;
5176 i = obj; while (parent(i) ~= 0) {
5177 if (i has animate) give i transparent;
5178 i = parent(i);
5179 }
5180 if (player == selfobj) player.short_name = FORMER__TX;
5181
5182 player = obj;
5183
5184 if (player == selfobj) player.short_name = NULL;
5185 give player transparent concealed animate proper;
5186 i = player; while (parent(i) ~= 0) i = parent(i);
5187 location = i; real_location = location;
5188 if (parent(player) == 0) return RunTimeError(10);
5189 MoveFloatingObjects();
5190 lightflag = OffersLight(parent(player));
5191 if (lightflag == 0) location = thedark;
5192 print_player_flag = flag;
5193 ];
Last updated 27 February 2004. The librarian in charge of this page is Graham Nelson (graham@gnelson.demon.co.uk) assisted by C Knight. Please email any comments, suggestions or corrections to cedenqs@inform-fiction.org.