Using KI data

Help bring our custom Ages to life! Share tips and tricks, as well as code samples with other developers.
Post Reply
Rabbit
Posts: 95
Joined: Fri Jul 25, 2008 11:25 am

Using KI data

Post by Rabbit »

I have an amazing idea for a puzzle, parts of which will be unique to each player. I was wondering is it possible to make an event happen or create an algorithim based on the players KI number? The idea being that I would like some basic events in my Age to be unique to each person.

I am using Blender and I am not an expert, but any pointers would be appreciated.
User avatar
Sirius
Posts: 1508
Joined: Mon Jul 26, 2010 4:46 am
MOULa KI#: 0
Location: France

Re: Using KI data

Post by Sirius »

There is a Python function to get the player's KI number. Using an avatar type (for example PtGetLocalAvatar()), you should be able to use getPlayerID().

However, I think a ramdom function would be more appropriated. Of course, it is still possible to have two same combinations for two players, but depending on the way you do it, the probability to have two same codes (if you chose codes) is nearly impossible.
Rabbit
Posts: 95
Joined: Fri Jul 25, 2008 11:25 am

Re: Using KI data

Post by Rabbit »

Many thanks for that. I need to experiment and see what works, but I have some excellent ideas brewing I'd like to try out. :lol:
Post Reply

Return to “Scripting”