Author Topic: OnAcquireItem Journal Entry - where do i put it?  (Read 335 times)

Legacy_Bazilbrush

  • Jr. Member
  • **
  • Posts: 56
  • Karma: +0/-0
OnAcquireItem Journal Entry - where do i put it?
« on: April 19, 2011, 01:38:07 am »


               I am using Lilac Soul's Script Generator to create a script which updates the player's journal when an item is acquired. However, I cannot work out how to use it or where to put it in the module. I only know how to make journal entries through a conversation at the moment. I am a scripting newbie, so please forgive me if this is a simple question!
               
               

               
            

Legacy_Builder_Anthony

  • Hero Member
  • *****
  • Posts: 786
  • Karma: +0/-0
OnAcquireItem Journal Entry - where do i put it?
« Reply #1 on: April 19, 2011, 02:20:48 am »


               Put the name of your script inbetween ""
This is a example of how i have two scripts running in the moudle properties on aquire item event.


void main()
{
   ExecuteScript("lootnotifaction2", OBJECT_SELF);
   ExecuteScript("x2_mod_def_aqu", OBJECT_SELF);
}
               
               

               
            

Legacy_Builder_Anthony

  • Hero Member
  • *****
  • Posts: 786
  • Karma: +0/-0
OnAcquireItem Journal Entry - where do i put it?
« Reply #2 on: April 19, 2011, 02:23:08 am »


               Put the name of your script in between ""
This is my on aquire item script in the module propertys

Edit
Module properties
Click onaquireitem and edit it
Put your script names in there then close and save it.


void main()
{
ExecuteScript("lootnotifaction2", OBJECT_SELF);
ExecuteScript("x2_mod_def_aqu", OBJECT_SELF);
}
               
               

               


                     Modifié par Builder_Anthony, 19 avril 2011 - 01:23 .
                     
                  


            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
OnAcquireItem Journal Entry - where do i put it?
« Reply #3 on: April 19, 2011, 02:48:30 am »


               If you have Tag Based Scripting enabled, you do not put the script anywhere. You simply give the script the same name as the tag og the item that you want it to work for.  you may want to check out


http://members.cox.n...ased Items.html

If you need more help it would not hurt to post what you have as a script so far.
               
               

               
            

Legacy_Bazilbrush

  • Jr. Member
  • **
  • Posts: 56
  • Karma: +0/-0
OnAcquireItem Journal Entry - where do i put it?
« Reply #4 on: April 19, 2011, 02:51:59 am »


               Thank you Anthony, but I think I am still putting it in the wrong place. All I can get it to do is make a journal entry when entering the module. Any ideas?
               
               

               
            

Legacy_Bazilbrush

  • Jr. Member
  • **
  • Posts: 56
  • Karma: +0/-0
OnAcquireItem Journal Entry - where do i put it?
« Reply #5 on: April 19, 2011, 03:08:46 am »


               Thank you Lightfoot, it worked. :-)