Jump to content


Photo

Adding an item in BG1


  • Please log in to reply
3 replies to this topic

#1 Thot

Thot
  • Member
  • 25 posts

Posted 02 July 2003 - 06:24 AM

Hi!

I'm trying to add an item in BG1 via a script. The trigger works, but I don't manage to add the item. I've tried with other items, and it doesn't work either. Could anybody explain me why ? I've heard that there is more actions in BG2 than in BG1, so CreateItem may not work, but I'm not sure it come from this. And if it's the cause, how could I add the item ?
Here is the script:

IF
  Global("F#ClawExists","AR5102",0)
THEN
  RESPONSE #100
      ActionOverride("Container 1",CreateItem("F#CLAW",0,0,0))
      SetGlobal("F#ClawExists","AR5102",1)
END


Life's but a walking shadow; a poor player,
That struts and frets his hour upon the stage,
And then is heard no more: it is a tale
Told by an idiot, full of sound and fury,
Signifying nothing.

#2 MagusWizardo

MagusWizardo

    Don't ask... please don't ask.

  • Member
  • 201 posts

Posted 02 July 2003 - 10:01 PM

Look at the BG1 action.ids in NI or Infinity Explorer. All actions you can use are listed there. Also, "Container 1" might be "Container1" or "container1" - make sure you get the name exactly right.

#3 Thot

Thot
  • Member
  • 25 posts

Posted 03 July 2003 - 01:21 AM

Thanks for your answer.
I've checked Action.IDS, and CreateItem exists. But it seems that it's never used in the game.
I'm currently checking if changing the case could change anything.
Life's but a walking shadow; a poor player,
That struts and frets his hour upon the stage,
And then is heard no more: it is a tale
Told by an idiot, full of sound and fury,
Signifying nothing.

#4 MagusWizardo

MagusWizardo

    Don't ask... please don't ask.

  • Member
  • 201 posts

Posted 03 July 2003 - 01:34 AM

Case for the action should be exactly as in ACTION.IDS ... case for the objects should be as in the filename (or death variable in the case of a character). There's also the possibility of ActionOverride() not being recognised... make sure it's in the .IDS aswell.