Page 1 of 1

Argonian only armor script :)

PostPosted: Mon Mar 01, 2010 6:55 am
by SGMonkey
Hey all, first off. I have little experience scripting for morrowind. I'm a programmer but morrowind boggles me sometimes it really does :P

So all im looking for is either a global script or a script attached to each piece of armor that pops up with a message if your any race other than an argonian.

I've not tried, and I really wouldn't know where to start. And i don't need another problem to drive me even more insane. So if anyone has any ideas how to do this please help me out :)

Thanks in advance

Monkey

Re: Argonian only armor script :)

PostPosted: Mon Mar 01, 2010 7:33 am
by melian
Sorry, are you saying you *only* want a message? You don't want to prevent the player equipping it if they're not Argonian? It's quite easy to do both... Here's an example (basically copied from the MWSfD example, btw):

Code: Select all
begin argoniansonly

short PCSkipEquip
short OnPCEquip

if ( "player"->GetRace "Argonian" )
   set PCSkipEquip to 0
   return
else
   set PCSkipEquip to 1
endif

if ( OnPCEquip )
   set OnPCEquip to 0  ;use as doonce check
   MessageBox "insert message here"
endif

end


That would be a local script on the armor. If you'd rather a global script you can use HasItemEquipped and force unequip from there too.

Re: Argonian only armor script :)

PostPosted: Mon Mar 01, 2010 7:36 am
by SGMonkey
Ahh sorry, yeah i meant it as its supposed to disallow none argonians to wear it. So if an imperial for example tries to wear a piece a message will pop up saying why they can't wear it and they would be unable to equip any of the argonian armor :)

EDIT: Excellent! Just tried it out and that is exactly as i wanted it. :) Cheers buddy. You will get your name in the readme :P

Now all i have to do is think of a decent message

Other than "Argonians only sucka!"

Re: Argonian only armor script :)

PostPosted: Mon Mar 01, 2010 10:02 am
by Jac
"For some reason, this piece of armor doesn't fit properly. You surmise that it was made for reptilian bodies and not mammalian."

Re: Argonian only armor script :)

PostPosted: Mon Mar 01, 2010 10:41 am
by melian
What, you mean "insert message here" isn't good enough for you? :P

Re: Argonian only armor script :)

PostPosted: Mon Mar 01, 2010 3:00 pm
by SGMonkey
Ha ha! Yeah i'll leave it as it is then.

And @ Jac, thats the sorta thing im thinking, but i think it needs rephrasing slightly

Re: Argonian only armor script :)

PostPosted: Mon Mar 01, 2010 3:10 pm
by Jac
Have at it.