Jump to content
StrongArmand

Only demi-orc for my itm

Recommended Posts

I've created an itm in DLTCEP and I would like to allow my weapon to half-orc and only for them. So I've used the slot for hal-orc. However when I try to equip this weapon to an half-orc, I have an error... Something works wrong with this component ?

Edited by StrongArmand

Share this post


Link to post

Items aren't really my forte, but have you tried checking every other box except for the non-halforcish races?

Share this post


Link to post

Well, with usabilities, you NEED to have "True Class" selected, all alignments you want (all) and all classes you need to use, as well as races. Try checking EVERY box and only unticking the race boxes.

 

Next, check everything else is OK, like it isn't 2handed with a 1handed animation, or vice versa, and make sure that it is specified as a weapon to begin with.

 

 

Icen

Share this post


Link to post

I've checked everything ans if I click on human boxes human and half orc works great. I don't understand where is the problem. Here you have my usabilyty screen :

 

sanstitreym.png

 

I giving you my sharing url. Maybe someone could help me thanks to this files.

 

http://www.mediafire.com/?5tqjmvdtmmj

Edited by StrongArmand

Share this post


Link to post

Maybe i've found an answer to my own asking. I've seen a piece of tp2 in amber's mod and I trying to reproduce it. But weidu send me an error (at the end of tp2). I post it here :

 

 

COPY_EXISTING_REGEXP GLOB ~^.+\.cre$~ ~override~

READ_BYTE 0x272 "race"

 

 

COPY_EXISTING ~#vsku1.itm~ ~override~

READ_LONG 0x6a "fx_off"

READ_SHORT 0x70 "fx_num"

WRITE_SHORT 0x70 ("%fx_num%" + 1)

INSERT_BYTES ("%fx_off%" ) 0x30 // insert new global effect

WRITE_SHORT ("%fx_off%" ) 180 // disallow item

WRITE_BYTE ("%fx_off%" + 0x02) 1 // target: self

WRITE_BYTE ("%fx_off%" + 0x0c) 2 // instant/while equipped

WRITE_BYTE ("%fx_off%" + 0x12) 100 // probability

WRITE_EVALUATED_ASCII ("%fx_off%" + 0x14) "%exclude_file%" // file

// this tree simply adds a display string based on the race type

PATCH_IF ("%race%" = 1) BEGIN // if human

SAY ("%fx_off%" + 0x04) @803

END ELSE

PATCH_IF ("%race%" = 2) BEGIN // if elf

SAY ("%fx_off%" + 0x04) @803

END ELSE

PATCH_IF ("%race%" = 3) BEGIN // if half-elf

SAY ("%fx_off%" + 0x04) @803

END ELSE

PATCH_IF ("%race%" = 4) BEGIN // if dwarf

SAY ("%fx_off%" + 0x04) @803

END ELSE

PATCH_IF ("%race%" = 5) BEGIN // if halfling

SAY ("%fx_off%" + 0x04) @803

END ELSE

PATCH_IF ("%race%" = 6) BEGIN // if gnome

SAY ("%fx_off%" + 0x04) @803

END

END

BUT_ONLY_IF_IT_CHANGES

 

Well, this block should be allow to forbidden this weapon to all race exept for half-orcs. Thanks in advance for your help.

Edited by StrongArmand

Share this post


Link to post

You've got one END too many just before BUT_ONLY.

But that code will not do what you want. At least not well.

 

It's better to use the usability flags for this.

As I recall, DLTCEP inverts the flags. Everything that is checked in the usability window can use the item and everything that isn't checked can't use the item. If you were to look at the item with e.g. NI or another "faithful" editor, you'd see the opposite (an item only usable by half-orcs would have everything but half-orc checked).

Edited by Wisp

Share this post


Link to post
Yes but as I've already said half-orc flag doesn't work...

Huh, half-orcs apparently count as humans. The half-orc flag doesn't seem to have any effect on them (like you said).

 

Maybe someone more savvy than me can help you, but I can't think of a good way and don't really want to suggest a bad way. You'd probably need to do something with scripts and spells and stuff, however. I don't think using weidu to patch in opcodes 180 would work out well.

Share this post


Link to post
Huh, half-orcs apparently count as humans.
Whaaat? Maybe an .exe patch for this is in order, if someone could figure out where in it the defect is.

Share this post


Link to post

Ok, so the half-orc field isn't working at all, or it is just for something else?

Share this post


Link to post

Not sure what else it would be for - I don't think it works at all, or it does the same thing as the "human" flag.

Share this post


Link to post

First off, don't make items from scratch. Find an already-existing item, so you KNOW that it works, and then flag it as unusable by most races. Make no other changes. Save it under a different name, and then test it. If it crashes the game, then there's something weird going on.

Share this post


Link to post
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...