Jump to content

Trying to write a script


Stormscape

Recommended Posts

I'm trying to make a script. I've made this armor I only want Wood Elfs tyo be able to wear, because for logical reasons, why would a piece of armor be able to be worn by people of massive size differences. Anyway, I'm stuck. I know the raceid numbers (10 = Woodelf is all I need to know) and a few other things but not enough to complete the script. Is there a if PCRace DOES NOT = 10 do this command?
Link to comment
Share on other sites

There unfortunately is no GetClass function <_<

 

However there is a GetRace function so ...

 

begin Woodelfarmour

 

short OnPCEquip

 

If ( OnPCEquip == 1 )

If ( player->GetRace "Wood Elf" != 1 )

PCSkipEquip

Messagebox, "Only Wood Elves can wear this armor!"

endif

endif

 

end

 

this goes on the armour ;)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...