Aller au contenu

Photo

special Item


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

#1
Talon

Talon
  • Members
  • 51 messages

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?



#2
Shadooow

Shadooow
  • Members
  • 4 471 messages

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



#3
WhiZard

WhiZard
  • Members
  • 1 204 messages

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.