Ironworks Gaming Forum

Ironworks Gaming Forum (http://www.ironworksforum.com/forum/index.php)
-   Baldurs Gate II: Shadows of Amn & Throne of Bhaal (http://www.ironworksforum.com/forum/forumdisplay.php?f=12)
-   -   How do you write scripts ? (http://www.ironworksforum.com/forum/showthread.php?t=14942)

karlosovic 02-29-2004 08:38 AM

Im playing SOS mod and I want to rewrite Charlottes script. Thing is, I dont know which file it would be, and even if I did... I have no idea what to do to edit it. Like, what application to even open it in.

actually, if anyone knows the file her script is in, do you know if I can just safely delete it ? If so, what is the file name ?

andrewas 02-29-2004 11:21 AM

Download and use the NearInfinity program to edit scripts. You'll also need to find documentation on the scripting language.

As for what file her script is in, view with the overrides seperate and find her .cre file, it will list all her script file.

LennonCook 03-01-2004 04:54 AM

<span style="color: lightblue">The basic syntax for a script is:
IF
checkstuff
THEN
RESPONSE #weight
dostuff
END

Where checkstuff is one or more entries in TRIGGER.IDS (view in Near Infinity), dostuff is one or more entries in ACTION.IDS and weight is the percent chance of dostuff occuring.
By default, the check is an implied AND query - all triggers must return true for the script to fire. You can, however, use OR(num) to use an OR query for the next num triggers. That is, the OR() returns true if ANY of the triggers it controls are true.

The simpler way to find Charlottes script using Near Infinity: Search - CRE, STO, ITM, SPL ; select the 'Creature' option button, and type 'Charlotte' (making sure the spelling is exactly as it appears ingame). There should be several results, but they will hopefully just be different joining levels for the same character. Double click on one of them, and the script file will be referenced there somwhere. Open it using File - Open File - Internal File, and typing the name as you see it listed.

SimDing0 03-01-2004 05:55 AM

There's a fairly detailed scripting guide available, which might be vaguely useful.

karlosovic 03-01-2004 09:51 AM

thanks for the info guys... how big is near infinity ? I'm only on dial-up. Can something else be used to edit the files ? eg some sort of programming IDE ? (visual studio, etc)

also, if I found the script and deleted it, will the game just default to no script or will it crash when it cant find a file it needs ?

philip 03-01-2004 10:04 AM

it's only ~900kB so you should be ok [img]smile.gif[/img]

http://www.idi.ntnu.no/~joh/ni/download.html

karlosovic 03-01-2004 10:08 AM

ok I followed the link on SimDingOs post and that site has a link to NearInfinity... it needs bloody Java !! oh well, thats gonna have to wait a few days till I can get my java cd back

(if only it was an applet ....)

Edit: oops, that might be ok too... I checked the sun webite and the auto-updater thingo seems pretty small. I seem to remember the Java environment install as being quite large though, although I suppose that might have been all the tutorials and help files that came with it.... find out soon I guess

[ 03-01-2004, 10:14 AM: Message edited by: karlosovic ]

shamrock_uk 03-01-2004 10:12 AM

Quote:

Originally posted by karlosovic:
also, if I found the script and deleted it, will the game just default to no script or will it crash when it cant find a file it needs ?
rename it instead of deleting it and find out that way. much safer [img]smile.gif[/img] shouldn't think a missing script would crash the game though if it's non-critical

[ 03-01-2004, 10:14 AM: Message edited by: shamrock_uk ]

SimDing0 03-01-2004 12:03 PM

A missing script causes the game to default to none, yeh. I can't think of an instance where it would crash the game.


All times are GMT -4. The time now is 10:31 PM.

Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
©2024 Ironworks Gaming & ©2024 The Great Escape Studios TM - All Rights Reserved