Skip to content

Modder's advice needed

AntonAnton Member, Moderator, Mobile Tester Posts: 513
edited January 2013 in General Modding
So I have this kit in mind, Ilmater-ish cleric.
I need him to have specific effect - every time this character inflict the damage to anyone , same amount of damage instantly inflicted to this cleric.
Whats the easiest way to implement this? Perhaps I may use some existing item's effect with minor modification?
Thanks for your help!

Comments

  • CoM_SolaufeinCoM_Solaufein Member Posts: 2,606
    Spell effect? Have a spell that does say, ten points damage to target in one heading and on the second heading do ten points damage to self.
  • CoM_SolaufeinCoM_Solaufein Member Posts: 2,606
    I know there are some items in the game that do damage to self when they hit their target. There's a vampire sword I believe that does this and a couple of others.
  • AntonAnton Member, Moderator, Mobile Tester Posts: 513
    Not a spell but permanent effect on a character. Each time this Ilmater-ish cleric damage other creature/people/monster in any way (by spell, weapon, or even fist) he is inflicted by the same amount of damage. preferably even same type of damage.
  • DurothDuroth Member Posts: 17
    edited January 2013
    I don't know of anything other than the a fore mentioned vampire sword. But you might be able to make a spell like a permanent curse for the said cleric if they take the a fore mentioned kit.

    Just a thought.
  • AntonAnton Member, Moderator, Mobile Tester Posts: 513
    Looks like I may take similar effect from
    Spear +3, Backbiter (sper03):
    "Dam. againts wielder for every successful hit"

  • RequiemRequiem Member Posts: 187
    edited January 2013
    @anton i don't know if you can cause the exact same amount of damage, but if you use the Set Melee Effect opcode (#248) you could then have that link in the resource field to an eff file which causes damage (use opcode HP:Damage #12) and have the target of that damage set to self. That should work pretty well for what you want.

    I really don't think it's possible to match the damage and damage type on the fly, although I may be wrong.
  • AntonAnton Member, Moderator, Mobile Tester Posts: 513
    @Requiem Thanks! I will definitely try it.
  • DrugarDrugar Member Posts: 1,566
    I do recommend that you build in an automatic script for the character/class that stops him from Auto-attacking, if you plan to implement this. Otherwise it might quickly become frustrating for people who don't know where the script button is/how it works and fiddling with extra options just to make your class non-suicidal is always a downer.
  • AntonAnton Member, Moderator, Mobile Tester Posts: 513
    Thanks!
Sign In or Register to comment.