On Restricting Items?
Noloir
Member, Mobile Tester Posts: 380
Using the "Restrict Item" op code what text or script is used for making an item exclusively usuable by the main character alone? Examples: Valygar's Katana; Haer'Dalis's Short swords, Keldorn's Armour, Boo.
0
Comments
#319 (0x13F) Usability: Item Usability
Parameter #1: IDS Entry
Parameter #2: IDS File
Special: Description note
Description:
This effect restricts the item to creature(s) matching the object identifiers. The string to display when an invalid creature attempts to use the item is held in 0x2c.
Known values for 'IDS File' are:
2 EA.ids
3 General.ids
4 Race.ids
5 Class.ids
6 Specific.ids
7 Gender.ids
8 Align.ids
9 Kit.ids
10 Actor's name
11 Actor's scripting name (8 maximum in resource field)
If 'IDS File' is set to 10, the item is restricted to characters with the name specified by the strref held in parameter1.
If 'IDS File' is set to 11, the item is restricted to characters with the death variable specified by the resource field.
The message defined in 'Description note' will be displayed whenever this effect is triggered.
Hope it helps.
For instance, Keldorn's Firecam Armour is set to KELDORN while Valygar's item is set to VALYGAR. Charname doesn't seem to have it's own index for the same purposes.
Sorry for not being more useful, kind of in a hurry.
Thing is I'm aiming to make this "mod-friendly" when I reach that level of awesomenes/experience with WeiDu. If a new Baldur.BCS were created for could that be transfered via WeiDu or have any adverse impact on Gameplay mechanics in terms of .Ids targeting/modifiers?
Noticed that "Human/Elf/Half-Elf-etc have their own unique .IDS categories. If charname were made anything beyond a standard race would it impact monsters with something like +2 to +2 damage rolls Attack hand-to-hand weapon vs Humanoids? Are AI attacks even that specific?
With this I can make a unique .cre summon using a non-used "Wild Boar" .bam file in a future project. This as well as import .bams that doesn't exist in bgee into the game. Thank you!
The item is a necklace fashioned after the unused "Sword Medallion" .bam from BG2EE. Combined with some interesting codes from the Rod of Lordly Might and the effect .bam from IWDEE for Mordakainen's Sword (A personal favorite) I created an Amulet that gives +10 hp, +1 Dex, +2 Save vs. Breath that can change into Mordakainnen's Sword from IWDEE once per day as an inventory weapon. The sword can change back into the amulet anytime the player sees fit 1/per day as well.
The weapon has no PIP but hits like Varscona with +1 magic dmg instead of ice and +1 fire damage against trolls, werewolves, and undead that hits anywhere within 100ft like a spirit sword/range weapon. This item beyond being restricted to Charname at the moment is restricted to Ranger as I thought that it'd be a great bonus item along Cerebus (a spirit dog) from Mielikki at the end of the Ranger stronghold but it might serve as an interesting item that parallels Blackrazor but for a Good Aligned Charname in hell. I'd personally hate to see Minsc or Valygar use something so uniquely God-like so the idea of restricting this item to Charname came to mind. As Valygar has both armour and a katana and Minsc has Boo they need nothing else as Rangers.
I'd appreciate any feedback on this especially in terms of damage output. At some point I hope to become skilled at WeiDu enough to bundle item concepts like this into fitting Mod add-ins.
I guess you also need to set the power attribute to 1, right?