When Night begins :
repeat with P running through living prostitutes which are not in the location of the player
begin ;
move P to a random room ;
now the initial appearance of P is "[P] is obviously waiting for a man." ;
end repeat.
I assume it is simple enough to be understandable by everybody here
the problem is this one :
I canât understand why itâs impossible to print the name of the character currently treated by the program. And the most important : is there a solution ? many thanks âŚ
The problem with your first try is that the text â[P]âŚâ is effectively a function that prints stuff, including the variable P. Itâs going to outlive the local variable P, and Inform doesnât support true closures, so the compiler canât do this.
âThe item describedâ is a global variable (the I6 variable âselfâ) which handily refers to the current object (in most contexts).