User Tools

Site Tools


cfpython:cfpython

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
cfpython:cfpython [2020/03/04 04:59]
meta-aeon [WhoIsActivator]
cfpython:cfpython [2020/03/04 21:22]
meta-aeon [CreateObject]
Line 861: Line 861:
  
 ==== WriteKey ==== ==== WriteKey ====
-Inserts specified key/value in the object.+Inserts specified key/value in the object.  If the object is persistent (such as a player, or an item with the unique attribute set to 1), then the key will persist between server restarts.
  
 Arguments: Arguments:
Line 914: Line 914:
  
 Arguments: Arguments:
-  * ''​String'',​ name of object to create +  * ''​String'', ​arch name of object to create 
-  * ''​Integer'',​ ''​x''​ and ''​y'',​ coordinates+  * ''​Tuple'', ​containing an ''​x''​ ''​Integer''​ and ''​y''​ ''​Integer'', ​as coordinates
  
-Equivalent of calling ''​Crossfire.CreateObjectByName()''​ (creates an item from archetype or name) and inserting it in the map at the specified location+Equivalent of calling ''​Crossfire.CreateObjectByName()''​ (creates an item from archetype or name) and inserting it in the map at the specified location.   
 + 
 +Example of format: 
 +<​code>​examplemap.CreateObject('​tree5',​ (3, 8))</​code>​
  
 ==== Check ==== ==== Check ====
 Arguments: Arguments:
-  * ''​String'',​ name of object to check for. Should be a raw name, without the bonuses and title and such. +  * ''​String'',​ name of object to check for. Should be a raw arch name, without the bonuses and title and such. 
-  * ''​Integer'', ​optional ​''​x''​ and ''​y''​ coordinates+  * ''​Tuple'', ​containing an ''​x''​ ''​Integer''​ and ''​y'' ​''​Integer'',​ as coordinates
  
 Return: Return:
-  * the first object at the specified location matching specified name+  * the first object at the specified location matching specified ​arch name 
 + 
 +Example of format: 
 +<​code>​examplemap.Check('​tree5',​ (3, 8))</​code>​
  
 ==== Next ==== ==== Next ====
cfpython/cfpython.txt · Last modified: 2024/05/20 16:15 by leaf