Jump to content


Photo

Remove Item effect


  • Please log in to reply
5 replies to this topic

#1 Miloch

Miloch

    Barbarian

  • Modder
  • 6579 posts

Posted 08 June 2008 - 12:48 AM

A pox on the IESDP forum being down, but I'm not going to wait some indefinite period of time for it to be back up to ask a simple question (I think).

What's the difference between opcode #112 (Remove Item) and #123 (Remove Inventory Item)? Do both just destroy the item on a creature? What I'd like to do is remove certain items and put them either in the CRE's inventory or on the ground with a spell, but I'm kind of doubting that's possible.

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


#2 Demivrgvs

Demivrgvs
  • Member
  • 143 posts

Posted 08 June 2008 - 01:35 AM

What's the difference between opcode #112 (Remove Item) and #123 (Remove Inventory Item)? Do both just destroy the item on a creature? What I'd like to do is remove certain items and put them either in the CRE's inventory or on the ground with a spell, but I'm kind of doubting that's possible.

I don't remember the difference between the two, but what you're trying to achieve is surely possible. DavidW created a custom telekinesis ray for beholders which allow them to drop off the shield of balduran from the wielder (a really great idea imo).

#3 Miloch

Miloch

    Barbarian

  • Modder
  • 6579 posts

Posted 08 June 2008 - 03:33 PM

DavidW created a custom telekinesis ray for beholders

Do you know which spell this is - something in SCSII?

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


#4 Demivrgvs

Demivrgvs
  • Member
  • 143 posts

Posted 08 June 2008 - 11:40 PM

Unfortunately I haven't it installed at the moment because I'm working on IR myself but I'm sure it's in SCS II v7 because I had a little discussion on the matter with DavidW at G3 and the .tra file have the following lines...

@3200=~The beholder has used its telekinesis power to snatch the Shield of Balduran from your arm~
@3201=~The beholder has used its telekinesis power to snatch the Cloak of Mirroring from your shoulders~



#5 -Guest-

-Guest-
  • Guest

Posted 10 June 2008 - 02:08 PM

If it works, stick with #123. #112 is more the complement of the create weapon effect (the engine automatically applies a #112 to get rid of the magically-created weapon after the duration expires).

Both should permanently destroy the item. There should be a creation effect (it'll probably be close to #123) that lets you create permanent inventory items; I don't know what will happen if the target's inventory is full (hopefully, it wouldn't overwrite existing items, but who knows). You can't really create items on the ground (you could spawn an invisible creature, GiveItemCreate() it, have it DropInventory(), and then DestroySelf() it, but meh) so it's probably the closest you'll get (unless DavidW has some cool hack for his telekinesis).

#6 Miloch

Miloch

    Barbarian

  • Modder
  • 6579 posts

Posted 11 June 2008 - 12:50 AM

it's probably the closest you'll get (unless DavidW has some cool hack for his telekinesis).

Ugh, well he does it via EXTEND_TOP baldur.bcs. The only real effect in his spell is a lighting effect :(.

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