Arturun Posted May 31, 2005 Share Posted May 31, 2005 Hello again!This isn't exactly MeMod-realted, per se, but I figured with all that ground-breaking work you guys did with the temp, food, etc, maybe you'd know. Does anyone have any ideas on how to check what the Player's class is in a script? It's been a while since I scripted for Morrowind, and I'm very confused and lost. I'd also like to know how to check the player's race if I'm using only hand-made races. i.e. no bretons, etc. I'm trying to make a Total Conversion based upon a world created almost entirely by a friend and I (more details later, if anyone's interested). I'd like to have separate starting points, storylines, restrictions, etc. So, in recap, here's what I need, and if you guys can't help me, can you point me in the direction of someone who can or somewhere better to ask: 1. A way to check a player's class within a script2. A way to check a player's race within a script when using non-standard races.3. maybe more as I go along, possibly some issues with inventory encumbrance Thanks,~Arturun Link to comment Share on other sites More sharing options...
Morgoth Posted May 31, 2005 Share Posted May 31, 2005 1. Don't think that there is such a function, with the prolem that you have a huuuge number of possible classes with an even greater number of names one can make up for them. 2. GetPCRace [RaceID] returns 1 or 0 depending on whether the PC belongs to that race or not. Replace [RaceID] by the ID you have specified during the creation of your race. 3. You'll probably find more helpful people in the Morrowind Plug-ins/Help section -> Moving this thread there. Link to comment Share on other sites More sharing options...
Arturun Posted May 31, 2005 Author Share Posted May 31, 2005 Thanks for the help, Morgoth. But as to your comment about the possibilities of huge numbers of classes, here was my plan: You choose a class. Somehow I check what class that is (dialogue has something about PCclass, I think, maybe I could use a dialogue-script combo, like the MEMod mechanics). Then, based upon that class and your race, you start in a preset location with certain items. If you use a class or race I didn't make, there'd be a 'default' location with very general things. So if anyone else would like to take a stab at this problem, I'd be very grateful. And thank you for moving this for me Morgoth, by the way. I wasn't sure where to put it, so I tried MEMod since they had done some dialogue-script combos from what I've seen in the released mechanics. Man it's hard to find a moved topic :P There should be an email or something to the author saying where it's been moved. Thanks in advance for any more help~Arturun Link to comment Share on other sites More sharing options...
Abramul Posted June 1, 2005 Share Posted June 1, 2005 I know there's a dialogue function that returns player's class, what happens if you use that? Link to comment Share on other sites More sharing options...
Arturun Posted June 1, 2005 Author Share Posted June 1, 2005 That was my plan. I just haven't figured out how to connect it to my script yet. I haven't scripted in over a year, so I'm totally lost again. I just took C++ in school, and the teacher was clueless. So I didn't learn really anything helpful of C++, and it's just similar enough to MW scripting that I'm very confused. Link to comment Share on other sites More sharing options...
Arturun Posted June 4, 2005 Author Share Posted June 4, 2005 Does anyone know? Perhaps someone from MEMod would know, as they did similar work. If anyone can help, it would be most appreciated. ~Arturun Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.