Author Topic: special Item  (Read 569 times)

Legacy_Talon

  • Jr. Member
  • **
  • Posts: 93
  • Karma: +0/-0
special Item
« on: August 26, 2014, 11:11:40 am »


               

i want create an item that when used add a propriety to another item.


Like :gem of less spell failure X% .


There is a easy way to do that?



               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
special Item
« Reply #1 on: August 26, 2014, 12:12:14 pm »


               

its fairly easy


 


1) use tagbased scripting (you should have it activated in your module - its default on)


2) open x2_it_example standard script and rename it


3) in OnActivate item event, check what the target is - is it item? is in in PC possession or on ground? if so


4) apply the property you like using AddItemProperty function


 


report if you stuck somewhere



               
               

               
            

Legacy_WhiZard

  • Hero Member
  • *****
  • Posts: 2149
  • Karma: +0/-0
special Item
« Reply #2 on: August 26, 2014, 04:38:00 pm »


               

The other way is to use the item property "Add item property" (not to be confused with the scripting command) and add rows to des_crft_props.2da for the additional properties you wish added.  Then set the tag of the item to end in the row number for the des_crft_props.2da row it will be calling.