Aller au contenu

Photo

OnAcquireItem Journal Entry - where do i put it?


  • Veuillez vous connecter pour répondre
5 réponses à ce sujet

#1
Bazilbrush

Bazilbrush
  • Members
  • 28 messages
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!

#2
Builder_Anthony

Builder_Anthony
  • Members
  • 450 messages
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);
}

#3
Builder_Anthony

Builder_Anthony
  • Members
  • 450 messages
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 .


#4
Lightfoot8

Lightfoot8
  • Members
  • 2 535 messages
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.

#5
Bazilbrush

Bazilbrush
  • Members
  • 28 messages
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?

#6
Bazilbrush

Bazilbrush
  • Members
  • 28 messages
Thank you Lightfoot, it worked. :-)