Jump to content


Photo

New BG Item: Skeleton Key


  • Please log in to reply
6 replies to this topic

#1 StrixO

StrixO
  • Member
  • 21 posts

Posted 05 July 2010 - 11:45 AM

I haven't messed around with BG for months, and can't remember much code for modding. I felt like starting a new game, though, and wanted to first introduce a new item: a key that can, ~once a day, cast a knock spell (maybe custom knock, range zero and no animation). Before I try and re-learn the weidu syntax, would anyone be willing/interested in writing one to add to Adventurer's Mart/High Hedge?

#2 Miloch

Miloch

    Barbarian

  • Modder
  • 6579 posts

Posted 05 July 2010 - 11:59 AM

The code for that would be nothing (well about ~4 lines to get the name and description of the item added). You'd just have to create the item with an editor (such as DLTCEP or Near Infinity).

Infinity Engine Contributions
Aurora * BG1 NPC * BG1 Fixpack * Haiass * Infinity Animations * Level 1 NPCs * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * BG:EE * BGII:EE * IWD:EE
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * Creature Checker * Creature Fixer * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Infinity turns out to be the opposite of what people say it is. It is not 'that which has nothing beyond itself' that is infinite, but 'that which always has something beyond itself'." -Aristotle


#3 StrixO

StrixO
  • Member
  • 21 posts

Posted 05 July 2010 - 12:33 PM

The code for that would be nothing (well about ~4 lines to get the name and description of the item added). You'd just have to create the item with an editor (such as DLTCEP or Near Infinity).


I couldn't remember what clauses in the .tp2 file were used to detect which BG2 installation was being used (Tutu,SoA,ToB,BGT) and then installing to the correct store. I'm happy to dig back in later tonight, if no one can throw me a bone.

#4 Wisp

Wisp
  • Modder
  • 1353 posts

Posted 05 July 2010 - 12:41 PM

You can simply use
ACTION_FOR_EACH sto IN highhedge _ighhedge ribald BEGIN
  ACTION_IF FILE_EXISTS_IN_GAME "%sto%.sto" BEGIN
    COPY_EXISTING "%sto%.sto" override
      ADD_STORE_ITEM etc
    BUT_ONLY
  END
END


#5 StrixO

StrixO
  • Member
  • 21 posts

Posted 06 July 2010 - 07:06 AM

You can simply use

Thanks Wisp. I don't know how you guys remember this stuff. I've been using ArcGIS and R code for the last 6 months, and it pushed everything else out.

Edited by StrixO, 06 July 2010 - 07:06 AM.


#6 Fury945

Fury945
  • Member
  • 17 posts

Posted 16 September 2010 - 11:37 PM

Is this based on The Elder Scroll IV: Oblivion's skeleton key?

it is an interesting idea but if you have a thief with 75 points in open locks do you really need it?
you'd miss out on the experience points for unlocking stuff with a thief as well.

but aside from those small things it sounds alright. :D

Edited by Fury945, 16 September 2010 - 11:57 PM.

All that is gold does not glitter. (taken from a poem in The Lord of The Rings)

Darkness is my friend.

Carpe Diem. (Latin for sieze the day)

Live By The Sword.

#7 Creepin

Creepin
  • Administrator
  • 1676 posts

Posted 17 September 2010 - 02:15 AM

Nice idea overall but instead of such dull thing as Skeleton Key why not make it Chime of Opening, that would have much more D&D'ish flavour :)

The Old Gold - v0.2 WIP (mod for BGT/BWP/BWS)