<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://truxwiki.com/index.php?action=history&amp;feed=atom&amp;title=Truxton_subject_set_id</id>
	<title>Truxton subject set id - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://truxwiki.com/index.php?action=history&amp;feed=atom&amp;title=Truxton_subject_set_id"/>
	<link rel="alternate" type="text/html" href="https://truxwiki.com/index.php?title=Truxton_subject_set_id&amp;action=history"/>
	<updated>2026-09-09T17:02:29Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://truxwiki.com/index.php?title=Truxton_subject_set_id&amp;diff=4477&amp;oldid=prev</id>
		<title>Sam: Created page with &quot;This allows you to set the [https://en.wikipedia.org/wiki/Universally_unique_identifier GUID] for the subject. This will be stored in the &lt;code&gt;[ID]&lt;/code&gt; column of the &lt;code...&quot;</title>
		<link rel="alternate" type="text/html" href="https://truxwiki.com/index.php?title=Truxton_subject_set_id&amp;diff=4477&amp;oldid=prev"/>
		<updated>2021-02-13T21:10:48Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This allows you to set the [https://en.wikipedia.org/wiki/Universally_unique_identifier GUID] for the subject. This will be stored in the &amp;lt;code&amp;gt;[ID]&amp;lt;/code&amp;gt; column of the &amp;lt;code...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This allows you to set the [https://en.wikipedia.org/wiki/Universally_unique_identifier GUID] for the subject.&lt;br /&gt;
This will be stored in the &amp;lt;code&amp;gt;[ID]&amp;lt;/code&amp;gt; column of the &amp;lt;code&amp;gt;[Suspect]&amp;lt;/code&amp;gt; table.&lt;br /&gt;
&lt;br /&gt;
=Syntax=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;C&amp;quot;&amp;gt;&lt;br /&gt;
void truxton_subject_set_id( uint64_t subject_handle, char * const id );&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Parameters=&lt;br /&gt;
==&amp;lt;code&amp;gt;subject_handle &amp;lt;/code&amp;gt;==&lt;br /&gt;
The handle to the subject object.&lt;br /&gt;
This comes from calling &amp;lt;code&amp;gt;[[truxton_subject_create|truxton_subject_create()]]&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==&amp;lt;code&amp;gt;id&amp;lt;/code&amp;gt;==&lt;br /&gt;
The string representation of a [https://en.wikipedia.org/wiki/Universally_unique_identifier GUID.]&lt;br /&gt;
&lt;br /&gt;
=Remarks=&lt;br /&gt;
By setting your own identifier, you can have multiple subjects with the same name.&lt;br /&gt;
&lt;br /&gt;
=Sample=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;C&amp;quot; highlight=&amp;quot;9&amp;quot;&amp;gt;&lt;br /&gt;
void create_villan( uint64_t truxton )&lt;br /&gt;
{&lt;br /&gt;
   uint64_t subject = truxton_subject_create( truxton );&lt;br /&gt;
&lt;br /&gt;
   truxton_subject_set_name( subject, &amp;quot;Khaka Peü Peü&amp;quot; );&lt;br /&gt;
   truxton_subject_set_description( subject, &amp;quot;Last name translates to 'This strong hand or that strong hand.'&amp;quot; );&lt;br /&gt;
   truxton_subject_set_custom( subject, &amp;quot;Danville PD Tri-State ID: TSA-785543&amp;quot; );&lt;br /&gt;
   truxton_subject_set_birthday( subject, to_ticks( &amp;quot;1963-09-18&amp;quot; ) );&lt;br /&gt;
   truxton_subject_set_id( subject, &amp;quot;5068696E-6561-7320-616E-642046657262&amp;quot; );&lt;br /&gt;
   truxton_subject_set_picture( subject, base64_encode( &amp;quot;C:\Subjects\Photos\KPP.png&amp;quot; ) );&lt;br /&gt;
&lt;br /&gt;
   // Commit the data to the database&lt;br /&gt;
   truxton_subject_save( subject );&lt;br /&gt;
&lt;br /&gt;
   truxton_subject_tag( subject, &amp;quot;Prime Suspect&amp;quot;, &amp;quot;As identified by The Beak&amp;quot;, TAG_ORIGIN_HUMAN );&lt;br /&gt;
   truxton_subject_destroy( subject );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Sam</name></author>
		
	</entry>
</feed>