<?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_artifact_add_note</id>
	<title>Truxton artifact add note - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://truxwiki.com/index.php?action=history&amp;feed=atom&amp;title=Truxton_artifact_add_note"/>
	<link rel="alternate" type="text/html" href="https://truxwiki.com/index.php?title=Truxton_artifact_add_note&amp;action=history"/>
	<updated>2026-09-09T17:36:10Z</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_artifact_add_note&amp;diff=6005&amp;oldid=prev</id>
		<title>Sam: Created page with &quot;This will add an investigator's note to the artifact. You can only add a note to an artifact after &lt;code&gt;truxton_artifact_save()&lt;/code&gt; has been called. This will cause a...&quot;</title>
		<link rel="alternate" type="text/html" href="https://truxwiki.com/index.php?title=Truxton_artifact_add_note&amp;diff=6005&amp;oldid=prev"/>
		<updated>2022-10-01T12:22:02Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This will add an investigator&amp;#039;s note to the artifact. You can only add a note to an artifact after &amp;lt;code&amp;gt;&lt;a href=&quot;/Truxton_artifact_save&quot; title=&quot;Truxton artifact save&quot;&gt;truxton_artifact_save&lt;/a&gt;()&amp;lt;/code&amp;gt; has been called. This will cause a...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This will add an investigator's note to the artifact.&lt;br /&gt;
You can only add a note to an artifact after &amp;lt;code&amp;gt;[[truxton_artifact_save]]()&amp;lt;/code&amp;gt; has been called.&lt;br /&gt;
This will cause a record to be created in the &amp;lt;code&amp;gt;[InvestigatorNote]&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;
int truxton_artifact_add_note( uint64_t artifact_handle, char const * text );&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Parameters=&lt;br /&gt;
==&amp;lt;code&amp;gt;artifact_handle&amp;lt;/code&amp;gt;==&lt;br /&gt;
The handle created by calling &amp;lt;code&amp;gt;[[truxton_artifact_create]]()&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==&amp;lt;code&amp;gt;text&amp;lt;/code&amp;gt;==&lt;br /&gt;
The contents of the note.&lt;br /&gt;
&lt;br /&gt;
=Return value=&lt;br /&gt;
A non-zero value on success, zero on failure.&lt;br /&gt;
&lt;br /&gt;
=Sample=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;C&amp;quot; highlight=&amp;quot;22&amp;quot;&amp;gt;&lt;br /&gt;
void create_artifact( void )&lt;br /&gt;
{&lt;br /&gt;
   uint64_t truxton = truxton_create();&lt;br /&gt;
&lt;br /&gt;
   uint64_t artifact = truxton_artifact_create( truxton );&lt;br /&gt;
&lt;br /&gt;
   truxton_artifact_set_name( artifact, &amp;quot;Ducky Momo Server&amp;quot; );&lt;br /&gt;
&lt;br /&gt;
   // Commit the data to the database &lt;br /&gt;
   if ( truxton_artifact_save( artifact ) == 0 )&lt;br /&gt;
   {&lt;br /&gt;
      printf( &amp;quot;Cannot save data to the database.\n&amp;quot; );&lt;br /&gt;
   }&lt;br /&gt;
   else&lt;br /&gt;
   {&lt;br /&gt;
      char id[ 65 ];&lt;br /&gt;
&lt;br /&gt;
      truxton_artifact_get_id( artifact, id, sizeof( id ) );&lt;br /&gt;
&lt;br /&gt;
      printf( &amp;quot;Artifact ID is %s\n&amp;quot;, id );&lt;br /&gt;
&lt;br /&gt;
      if ( truxton_artifact_add_note( artifact, &amp;quot;This is the bestest arifact ever&amp;quot; ) == 0 )&lt;br /&gt;
      {&lt;br /&gt;
         printf( &amp;quot;Failed to add a note\n&amp;quot; );&lt;br /&gt;
      }&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   truxton_artifact_destroy( artifact );&lt;br /&gt;
   truxton_destroy( truxton );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Sam</name></author>
		
	</entry>
</feed>