View Single Post
FaeruN
Member
 
Join Date: Feb 2012
Posts: 30

Old February 27th, 2012, 12:57 PM
Quote:
Originally Posted by RavenX View Post
As Mathias said you need the right phase and priority, the cheeseweasel vids on youtube can help with that. Compare this to the code you did for the weapon

Code:
~ If we're an arcane spellcaster, add our bonuses
if (hero.tagis[Hero.Arcane] <> 0) then
  if (field[gIsEquip].value <> 0) then
    hero.child[XXXXXXXX].field[BonEnhance].value = 4
  endif
endif
XXXXXXXX would be the field reference for your weapon...
thank you that really helped me a lot I've tried using the Final Phase and a 100000 priority and did worked, maybe is not the perfect way but at least it worked for me.

I still need help with the 2nd and the 3rd weapons, that means, a way the weapon can accept 3 different classes (Fighter, Paladin or Ranger)

and a way to ask the weapon about if a character does haves 5 ranks or more at Diplomacy
FaeruN is offline   #5 Reply With Quote