MW scripting

Old and generally outdated discussions, with the rare hidden gem. Enter at your own risk.

Moderators: Haplo, Lead Developers

Locked
Anonymous

MW scripting

Post by Anonymous »

Is morrowind scripting remotly related to viual BASIC? That is the only language I program in currently but I'm taking java this fall.
Starcrunch
Developer Emeritus
Posts: 1649
Joined: Tue Aug 17, 2004 5:12 am
Location: DC, USA

Post by Starcrunch »

It has differences but the key to scripting is thinking like a programmer, and all simple languages are common in this respect. The differences are just commands and syntax. That said the Morrowind scripting language is rather inflexible in its capabilites compared to "normal" programing languages (damn, what I'd give to have strings). If you understand the logic of programing its just a matter of learning the commands (and some of their more interesting quirks).

EDIT: For learning the commands find a copy of Morrowind Scripting for Dummies (at Morrowind Summit or EuroMorrowind).

-Starcrunch
Stalker
Developer Emeritus
Posts: 4576
Joined: Fri Apr 09, 2004 9:12 pm
Location: Ukraine
Contact:

Post by Stalker »

Well...MW script is script in the first place so it will look like JScript, VBScript etc. THe main thing here is to be patient. Because 90% of functions doesn't work and the other 10% doesn't work as intended to. Spacing in if's are VERY important for example.
[img]http://img430.imageshack.us/img430/3336/oblivionforum5tb.jpg[/img]

Your friendly slavedriver.
Coronus
Member
Posts: 7
Joined: Sun Mar 27, 2005 1:11 am

Post by Coronus »

The way the scripting is set up in Morrowind is, well, rather stupid at time, but with the tools you are given, you can still accomplish quite a bit.
User avatar
Massalinie
Developer Emeritus
Posts: 1670
Joined: Sat Feb 12, 2005 12:08 pm
Location: Canada, MB
Contact:

Post by Massalinie »

Stalker wrote:Spacing in if's are VERY important for example.
Is it? That's not what i read.... In the tutuorial I read it said spacing was just a matter of look...... Am I wrong here?
Assassinace
Developer
Posts: 811
Joined: Thu Aug 21, 2003 10:56 am
Location: Dreamland

Post by Assassinace »

well indenting isn't important although the thing is so buggy I would just space correctly on the safe side. Most programming languages (especially VB, C, Java ect) are very similar. As far as I can tell the closest thing to MW is C++ with all higher level functions turned off.
Stalker
Developer Emeritus
Posts: 4576
Joined: Fri Apr 09, 2004 9:12 pm
Location: Ukraine
Contact:

Post by Stalker »

Assassinace wrote:As far as I can tell the closest thing to MW is C++ with all higher level functions turned off.
If you ask me it's not so familiar.
Is it? That's not what i read.... In the tutuorial I read it said spacing was just a matter of look...... Am I wrong here?
Yeap. One of my script wasn't working just because I missed a space between if and condition. No jokes.
[img]http://img430.imageshack.us/img430/3336/oblivionforum5tb.jpg[/img]

Your friendly slavedriver.
User avatar
Stumpytheguar
Member
Posts: 631
Joined: Sun Jun 27, 2004 2:22 am
Location: Irrelevant

Post by Stumpytheguar »

I kinda like the spacing requirements... I always use the correct spacing out of habit, and it makes it much easier to read other people's scripts. I just wish C had the same laws, 'cause I've started tutoring other students and it's usually hard to read exactly what they're trying to do...
Retired - Sept. 15, 2005
Stalker
Developer Emeritus
Posts: 4576
Joined: Fri Apr 09, 2004 9:12 pm
Location: Ukraine
Contact:

Post by Stalker »

Stumpytheguar wrote:I kinda like the spacing requirements... I always use the correct spacing out of habit, and it makes it much easier to read other people's scripts. I just wish C had the same laws, 'cause I've started tutoring other students and it's usually hard to read exactly what they're trying to do...
Partially I agree with you. Partially only because sometimes I'm too lazy to add extra spaces :)
[img]http://img430.imageshack.us/img430/3336/oblivionforum5tb.jpg[/img]

Your friendly slavedriver.
Locked