Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
#563927 07/03/15 09:35 PM
Joined: Jan 2015
K
journeyman
OP Offline
journeyman
K
Joined: Jan 2015
Hi. I'm trying to make a trap where the player steps in a trigger and then ideally a fireball is fired at whatever position the player is in and kills him/her unless they have enough armor. I've been looking at CreateExplosionAtItem but that function seem to break the divinity engine, at least the way i'm setting it up.

karlgoran #563928 07/03/15 09:54 PM
Joined: Sep 2014
Z
apprentice
Offline
apprentice
Z
Joined: Sep 2014
There are traps in the main game that are similar to this idea. These mainly use item/character Scripts is what it looks like. PUZZLE_TurretAuto.itemScript is an example of a script that shoots a projectile over and over (used in the basement of the abandoned house in Cyseal, [X=682, Y=-33, Z=338.48])

If you want to create a one time thing you will most likely have to write your own script and I would use a ScriptFrame that explodes at self.

karlgoran #563931 07/03/15 10:39 PM
Joined: Jan 2015
K
journeyman
OP Offline
journeyman
K
Joined: Jan 2015
Not sure what you mean by a scriptframe, is that a function i can use?

karlgoran #563933 07/03/15 10:45 PM
Joined: Sep 2014
Z
apprentice
Offline
apprentice
Z
Joined: Sep 2014
A Script Frame is an action that is performed when requested (in item/character scripts). I just posted a tutorial to outline how to make and use these scripts.


Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.5