The Black Wyrm Lair Forums
The Black Wyrm's Lair Terms of Use Help Search Members Calendar

Welcome Guest ( Log In | Register )

> BG1 coding question :), visual effects, items into chest: how?
jastey
post Sep 16 2004, 06:28 AM
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... rolleyes.gif
Go to the top of the page
 
Quote Post
 
Start new topic
Replies
Baronius
post Sep 16 2004, 08:20 PM
Post #2


Master of energies
Group Icon

Council Member
Posts: 3324
Joined: 9-July 04
From: Magyarország




Jastey, as for the visual effect creation (choosing from a list), I've used DLTCEP so far. It's easy to do a spell, and even easier to load an existing one, delete its effects but add the visual effect. To tell the truth, I've never done this before, but I think that choosing an animation (there is a list) as a value for the 'projectile animation' field, under Extended effects subpage, will work.
(What I did was changing the spell's casting school graphics, so when the spell is cast, you see a specific animation depending on the school of the spell. This visual effect can easily be changed by changing the spell's school.)

Be careful though with the DisplayStringHead, because it does not work in Baldur's Gate 1!


--------------------
Mental harmony dispels the darkness.
Go to the top of the page
 
Quote Post

Posts in this topic
jastey   BG1 coding question :)   Sep 16 2004, 06:28 AM
Baronius   NULL   Sep 16 2004, 08:18 AM
jastey   NULL   Sep 16 2004, 08:38 AM
Rabain   NULL   Sep 16 2004, 06:45 PM
Baronius   NULL   Sep 16 2004, 08:20 PM
Rabain   NULL   Sep 16 2004, 09:44 PM
jastey   NULL   Sep 17 2004, 02:05 AM
jastey   NULL   Sep 28 2004, 11:44 AM
Vlasák   NULL   Sep 29 2004, 09:40 AM
jastey   NULL   Sep 29 2004, 11:33 AM
Vlasák   NULL   Sep 29 2004, 12:06 PM
jastey   NULL   Sep 29 2004, 12:36 PM
Vlasák   NULL   Sep 29 2004, 12:57 PM
jastey   NULL   Sep 29 2004, 01:13 PM
jastey   NULL   Feb 17 2005, 08:30 PM
Rabain   NULL   Feb 17 2005, 10:37 PM
jastey   NULL   Feb 18 2005, 09:01 AM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:



- Lo-Fi Version Time is now: 7th June 2025 - 09:34 AM