Please note that new user registrations disabled at this time.

creating a sentient sword

This forum is to be used for all discussions pertaining to BioWare's Baldur's Gate II: Shadows of Amn.
Post Reply
User avatar
frogus
Posts: 2682
Joined: Thu Jan 31, 2002 3:54 pm
Location: Rock 'n Roll Highschool
Contact:

creating a sentient sword

Post by frogus »

does anyone know how to get the small white dialogue text to appear on the screen ala Lliarcor's Kill!Kill!Kill screams?

common craig, this is my moment of need....
Ol' Dirty Bastard Sword simply cannot be left mute ;)
Love and Hope and Sex and Dreams are Still Surviving on the Street
User avatar
fable
Posts: 30676
Joined: Wed Mar 14, 2001 12:00 pm
Location: The sun, the moon, and the stars.
Contact:

Post by fable »

I would really like to see a sword that chooses its own targets, or a sword that refuses to operate for a person of the wrong alignment unless the wielder pleads, and promises to do something to change. Might be fun for the sword to suddenly manifest as a Mordkainen's Sword if it believes its owner has defaulted. :D
To the Righteous belong the fruits of violent victory. The rest of us will have to settle for warm friends, warm lovers, and a wink from a quietly supportive universe.
User avatar
frogus
Posts: 2682
Joined: Thu Jan 31, 2002 3:54 pm
Location: Rock 'n Roll Highschool
Contact:

Post by frogus »

well...after this one I'll give it a go...although my scripting skills are still somewhat rudimentary
Love and Hope and Sex and Dreams are Still Surviving on the Street
User avatar
Mr.Waesel
Posts: 944
Joined: Tue Feb 26, 2002 4:38 am
Contact:

Post by Mr.Waesel »

That would be cool... :D
Beauty is only skin deep, but ugly goes right down to the bone
User avatar
Obsidian
Posts: 1619
Joined: Thu Aug 23, 2001 11:00 am
Location: Canada
Contact:

Post by Obsidian »

Personnaly, I think the holy avenger should kill you instantly, no save, if you do something unpaldinish.
As for how to do it, I really have no idea. Try the TeamBG forums too, those guys have some skill. And by some I mean a lot.
The waves came crashing in like blindness.
So I just stood and listened.
User avatar
Sabre
Posts: 1658
Joined: Sun Apr 29, 2001 10:00 pm
Location: Melbourne, Australia
Contact:

Post by Sabre »

For displaying the text, it all depends on how you want to do it - either randomly, after each hit or something else. If it's after each hit, then you can simply add in a Display String effect in the Extension Header - search for the string that you want to display or add in your own. Randomly or part of a script is a bit more complicated, since you got to script the item - if you want dialogue with it, have a look at Lilarcor, you'll also need to modify the ITEMDIAL.2DA file - and make the dialogue file.
User avatar
Vicsun
Posts: 4547
Joined: Mon Dec 25, 2000 12:00 pm
Location: liberally sprinkled in the film's opening scene
Contact:

Post by Vicsun »

Originally posted by Mr.Waesel
That would be cool... :D
Huh? Who is this? Another one of Weasel's alter-egos? Another one of someone else's alter egos? Just a normal guy who accidently registered under that name ;) ?
Vicsun, I certainly agree with your assertion that you are an unpleasant person. ~Chanak

:(
User avatar
Craig
Posts: 4996
Joined: Fri Dec 29, 2000 11:00 pm
Location: England
Contact:

Post by Craig »

I doubt it's him he musta worked out that the posts under alter-egos's don't go under his name,

On topic, i have made an item that kills the user if they aren't goodly aligned, but i can't script, i can't even get the program working
I'm Devious

This is my Gift. This is my Curse. Who am I? I'm SpiderCraig
User avatar
frogus
Posts: 2682
Joined: Thu Jan 31, 2002 3:54 pm
Location: Rock 'n Roll Highschool
Contact:

Post by frogus »

ahh yeah...my scripting skills are now reaching phonomenal levels of power and complexity.
This is my logic.
I have the thing generate a random number every script round,
Some variable or other (call it 'v') is set to whatever it came out with. This will be going on with no use for quite some time.
I have timers going so that the sword will check what 'v' is every 5 mins or something.
If 'v' is 1 it will shout 'something or other' if v is 2 it will 'something else' and so on....this way I can have it shout as many exclamations as often as I want all randomly.
I have ideas for using the random numbers again to determine how often it will shout...but these are a bit abstract.

Cheers sabre :) I now know all about the dialogues...this is no problem. The only problems I have remaining are these:
How can I create my own variables (which I can set just like states or globals)? I have seen instructions for setting timers, but how can I set variables?

and the other thing...although I'm sure I can figure this out very easily by myself, I might as well ask now, how do add the scripts to the weapons once I've finished them?

thanks all :)
Love and Hope and Sex and Dreams are Still Surviving on the Street
User avatar
Mr.Waesel
Posts: 944
Joined: Tue Feb 26, 2002 4:38 am
Contact:

Post by Mr.Waesel »

No strange alter-ego here, just someone who really likes weasels ;)
Beauty is only skin deep, but ugly goes right down to the bone
User avatar
Sabre
Posts: 1658
Joined: Sun Apr 29, 2001 10:00 pm
Location: Melbourne, Australia
Contact:

Post by Sabre »

You don't really have to create it as such, all the things are there already, they just don't have a number value. Let say I'm using the variable S-Timer for something; if I don't give it a number then the value of S-Timer is 0, if I set it to 2 - using SetGlobal("S-Timer","GLOBAL",2) - then it become 2.

The only way that I can find of assigning script to an item is to add that script to the Baldur.bcs file - and Baldur25.bcs if you have ToB. These files are universal scripts, which are constantly active, you'll have to redo the script if you're running a MOD that changes those scripts - TDD or the Nalia Romance.
User avatar
Damien Godchild
Posts: 30
Joined: Fri Feb 01, 2002 7:45 am
Contact:

Post by Damien Godchild »

ras+2

a merchant in trade meet sells a sword called ras that has an ability to turn into mordankeins sword 1nce a day-damien :cool:
those the gods wish to destroy they first make mad, Mad mad maaaaaaaaaaaaaaad!!
Post Reply