Jump to content

Search the Community

Showing results for tags 'HitBy'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General Discussion
    • G3 News and Announcements
    • Infinity Engine Modding News
    • General Mod Discussion
    • Fan Fiction
    • Noobermeet
  • Tools & Resources
    • DLTCEP
    • GemRB
    • The Gibberlings Three Debugging Suite for BG2
    • IESDP Updates and Info
    • Modding How-Tos and Tutorials
    • Modding Q&A
    • Multi-Install Tool
    • Widescreen Mod
  • Released Projects
    • Miscellaneous Released Mods
    • Ajantis
    • Alternatives
    • Amber
    • Angelo
    • Ascension
    • Auren Aseph
    • BG1 NPC Project
    • Baldur's Gate Mini Quests and Encounters
    • The Beaurin Legacy
    • BG2 Fixpack - General Discussion
    • Calin
    • The Calling
    • Cirerrek's AI Scripts
    • Coran's Friendship Mod
    • Crossmod Banter Pack
    • Crossmod Banter Pack (IWD)
    • Divine Remix
    • Enhanced Edition Trilogy
    • Evandra
    • Full Plate & Packing Steel
    • Garrick's Infatuation
    • Gavin
    • The Gibberlings Three Anniversary Mod
    • Grey the Dog
    • Glam's NPC Pack
    • Icewind Dale Mod Roundup
    • Icewind Dale in Baldur's Gate II
    • Imoen 4 Ever
    • Item Randomiser
    • Item Revisions
    • IWD2 NPC Project
    • IWDification
    • Keeping Yoshimo
    • Kivan and Deheriana Companions for BG2
    • Level One NPCs
    • Mur'Neth
    • NPC Kitpack
    • NPC Strongholds
    • NPC Tweak for BG2
    • Oversight
    • Romantic Encounters (BG)
    • Romantic Encounters (BG2)
    • Sarah
    • SoD to BG2EE Item Upgrade
    • Song and Silence
    • Spell Revisions
    • Sword and Fist
    • Sword Coast Stratagems
    • Tweaks Anthology Forum
    • Tyris Flare
    • Wheels of Prophecy
    • Yoshimo's Remorse
  • Unreleased Projects
    • Aklon
    • Balduran's Seatower
    • Baldur's Gate: Shadow Hand TC
    • Aran Whitehand
    • Delainy
    • IWD Tutu
    • Kit Revisions
    • Inactive Projects
  • NWN2 Modding
  • Mod Workrooms

Categories

  • NPCs
  • Quests and Others
  • Tweaks & Fixes
  • Items/Kits/Spells
  • Portrait Packs
  • Mini Mods
  • Tools
  • In Progress

Categories

  • Fixes
  • Items
  • Kits
  • NPCs
  • Quests
  • Spells
  • Tweaks
  • Other
  • Tools

Product Groups

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Discord


Website URL


Skype


AIM


MSN


ICQ


Yahoo


Jabber


Location


Interests


Mods Worked On

Found 1 result

  1. My question is if there is a good way to react to being attacked and cast the appropriate buffs like protection from magical weapon in script? There are several limitations that I have discovered. AttackedBy does not work properly. AttackedBy([ANYONE],RANGED) does not work AttackedBy([ANYONE],MELEE) does not work AttackedBy([ANYONE],DEFAULT) works What I want to do is to cast WIZARD_MANTLE, WIZARD_IMPROVED_MANTLE, WIZARD_ABSOLUTE_IMMUNITY, WIZARD_PROTECTION_FROM_MAGIC_WEAPONS or WIZARD_PROTECTION_FROM_NORMAL_WEAPONS when it is appropriate. It could work most of the times to just use AttackedBy([ANYONE],DEFAULT) Range(LastAttackerOf(),10) when attacked by Melee for example (not guaranteed), but to know exactly what type of shield to cast, I need to know more about the attacker, so I use HasItemEquiped("MISTVA01",LastAttackerOf()) for example to check if the enemy is using the weapon with code MISTVA01 (vampiric mist use this). According to NearInfinity it is a +3 weapon, but when I try the code against a Vampiric Mist, it will detect the +3 weapon, but the mist attacks with a normal weapon apparently and level drain you, so the spell WIZARD_PROTECTION_FROM_MAGIC_WEAPONS does not work. What does work is WIZARD_PROTECTION_FROM_NORMAL_WEAPONS. Is there a better way to determine what spell to cast? I also tried HasItemEquipedReal, but it seems to do the same. The HitBy function works okay, except against for the CRUSHING constant which is always active for any type of damage for some reason. The problem with this function is that you need to get hit first, and even then you don't know exactly what the appropriate response is (protection vs magic or physical?).
×
×
  • Create New...