Page 1 of 1
creating a sentient sword
Posted: Mon Feb 25, 2002 11:02 am
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
Posted: Mon Feb 25, 2002 11:20 am
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.
Posted: Tue Feb 26, 2002 1:54 am
by frogus
well...after this one I'll give it a go...although my scripting skills are still somewhat rudimentary
Posted: Tue Feb 26, 2002 4:46 am
by Mr.Waesel
That would be cool...
Posted: Tue Feb 26, 2002 9:14 pm
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.
Posted: Sat Mar 02, 2002 7:36 am
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.
Posted: Sat Mar 02, 2002 12:50 pm
by Vicsun
Originally posted by Mr.Waesel
That would be cool...
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
?
Posted: Sat Mar 02, 2002 1:24 pm
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
Posted: Sat Mar 02, 2002 1:49 pm
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
Posted: Mon Mar 04, 2002 3:30 am
by Mr.Waesel
No strange alter-ego here, just someone who really likes weasels
Posted: Mon Mar 04, 2002 7:03 am
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.
Posted: Tue Mar 05, 2002 5:30 pm
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