| The Black Wyrm's Lair Terms of Use |
Help
Search
Members
Calendar
|
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... |
|
|
|
![]() |
Sep 16 2004, 09:44 PM
Post
#2
|
|
|
GOD Retired team member Posts: 1728 Joined: 14-July 04 From: Ireland |
These examples are from BG1 scripts with regard to DisplayString as DisplayStringHead() does not appear in BG1 (thanks for pointing this out Baronius!)
I'm not sure but i think DisplayString also shows the dialog in the dialog window though i am almost also sure that it displays as floating text! (almost sure!) Also it would appear from these that the DisplayString() works best when it is in the script of the creature/object it is to be displayed above. ///// IF Opened([ANYONE]) See([PC.0.0.MAGE]) THEN RESPONSE #100 DisplayString([PC.0.0.MAGE],14381) // Trap Sprung ForceSpell([PC.0.0.MAGE],TRAP_MISCAST_MAGIC) END ////// IF Global("SemajBehavior","GLOBAL",3) See([PC]) THEN RESPONSE #100 DisplayString(Myself,24099) // Magic Staff Released ReallyForceSpell(Myself,WIZARD_MIRROR_IMAGE) DisplayString(Myself,24098) // Tattoo of Power Released ReallyForceSpell([PC],WIZARD_CHAOS) Spell([PC],WIZARD_CLOUDKILL) SetGlobal("SemajBehavior","GLOBAL",4) END ////// IF Clicked([ANYONE]) Global("UseAnvil","GLOBAL",0) Range(LastTrigger,9) THEN RESPONSE #100 SetGlobal("UseAnvil","GLOBAL",1) DisplayString(Myself,23170) // A forge, commonly used to make or repair tools. END /////// This post has been edited by Rabain: Sep 16 2004, 10:04 PM |
|
|
|
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
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![]() ![]() |
|
Lo-Fi Version | Time is now: 16th December 2025 - 08:11 AM |