do_edit |
Discworld Creator Help |
do_edit |
Name
do_edit - Edits a string using the players neato line editor.
Syntax
int do_edit(string str, string func, object ob);
Description
Edits the string. The input string is edited using the editor and the function specified in func is call on the object when the function is finished. The edited string is passed into the calling object.
Examples:
string help() {
this_player()->do_edit( "This is a rabbit\nEat it if you can",
"end_wombat_edit", this_object() );
return 1;
} /* help() */
void end_wombat_edit(string str) {
write("After editing... Its " + str + "\n");
} /* end_wombat_edit() */
See also
more_string, editor