[CF-Devel] Python/casino stuff

crossfire-devel at archives.real-time.com crossfire-devel at archives.real-time.com
Sat Oct 25 02:57:49 CDT 2003


>
     
      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.

Nicolas


_______________________________________________
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