[CF-Devel] Python/casino stuff
crossfire-devel at archives.real-time.com
crossfire-devel at archives.real-time.com
Sat Oct 25 20:19:35 CDT 2003
Nicolas Weeger wrote:
>>
object = CFPython.CreateObject(cointype,(x,y)) <-- creates object
>>
number = CFPython.GetQuantity(object) <-- gets quantity of objects
>>
CFPython.SetQuantity(object, (payoff+number)-1) <-- sets quantity
>
>
>
yes, you need the -1 since createobject creates an object with nrof == 1
>
then it gets merged.
It really just creates the object from the archetype, and the nrof 1 is
inherited from the archetype.
There are actually some objects with nrof 0, but these are objects that
generally won't merge anyways, so that isn't that big a deal.
_______________________________________________
crossfire-devel mailing list
crossfire-devel at lists.real-time.com
https://mailman.real-time.com/mailman/listinfo/crossfire-devel
More information about the crossfire
mailing list