Plot:Script

From OHRRPGCE-Wiki

Jump to: navigation, search
script, name, argumentnames (statements)

The script command contains the actual source code of a plotscript. Script starts with the keyword script, a comma, and then the name of the script. If there are any arguments to the script, you list their names separated by commas after the name of the script. Then comes the text of the script. It is usually enclosed in begin and end statements.

[edit] Examples

# example of a simple script
script,my first script,begin
	# commands go here
end
# example of a script with arguments
script,my fancy script,fe,fi,fo,begin
	# commands go here,
	# and they can use the aruments fe, fi, and fo
	# that where passed to the script
end
Personal tools