There are some pointers to examples at the bottom of this post. The rest is my advice on how to use your time productively, which you can freely ignore.
You can do it in two easy steps, which will save you all the time needed to script in checks and restrictions:
- Set up all of the conversations, plot and such with reference to
the PC you provide. - Tell people: "This mod is intended to
be played with the provided character. If you don't then the
conversations will be odd, the plot won't make sense, and I'll be sad
because you've Traduced my Art."
Unless you're hosting it on your own server, that's about as
much control as you can realistically get with any mechanism.
- You're
releasing a mod to a gaming community that has the same tool set you do. - Any controls and restrictions you script in are going to serve as a
challenge to stubborn people like me who don't like being told how to
play their game. - If you want total control over the player experience,
this may not be the best medium for that.
To my mind, you're better off explaining why you set it up the way you
did, and leaving people to either take your advice or screw up their own
experience if they insist. That will free up time and creative energy
you can use elsewhere in creating your mod.
Unless you're doing this as an exercise in learning to script, in which case never mind everything I just said.
Xenovant's advice looks workable to me - although most of my scripting experience comes from subverting them - and you can also take a look how they did it in these mods, which are all designed to play with the included character:
Modifié par Cain Maris, 08 novembre 2010 - 03:55 .