![]() |
The Black Wyrm's Lair Terms of Use |
![]() ![]() ![]() ![]() |
![]() |
![]()
Post
#1
|
|
Forum Member Posts: 1366 Joined: 22-August 04 From: Germany ![]() |
Hi,
I have two questions to BG1 coding: 1. If I want to have a nice visual effect, e.g. one creature dissappears with a lot of glowing light.. whatever, how do I code that? (For BGII, I would use: CODE CreateVisualEffectObject("effect",Myself) Is there something similar for BG1?)2. I have problems to put an item into an existing container. I have the following code in the area.baf: CODE IF Global("C#ItemInTruhe","GLOBAL",0) THEN RESPONSE #100 SetGlobal("C#ItemInTruhe","GLOBAL",1) ActionOverride("Container1",CreateItem("ITEM",0,0,0)) END which is the only way I see, but this puts the item in front of the container. How would the correct code have to be, to place the item inside? Thanks! PS: Answers as soon as possible, please... ![]() |
|
|
![]() |
![]()
Post
#2
|
|
![]() Master of energies ![]() Council Member Posts: 3324 Joined: 9-July 04 From: Magyarország ![]() |
I will look into these problems.
Quickly examining the first one, there might be an indirect solution: make the creature cast a spell by himself/herself before disappearing, and the spell's graphical effect must be set to the one you want. Thus, you have to make your own spell for this, and since there is no ForceSpellRES in BG1, you have to use the item trick (make a 'wand' so an item usable by the creature, and add the effect 'Cast Spell as Target', see the BG1 Practical Scripting guide for more information on this), and make the creature use that item before (s)he disappears. So (s)he uses the item -> spell is cast -> graphical effects appear. I'm not sure what you mean by 'disappear'. Do you 'force' him/her to disappear, with a script, e.g. in a cutscene? Or do you mean normal death (so when the creature dies)? -------------------- Mental harmony dispels the darkness.
|
|
|
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 7th June 2025 - 10:03 AM |