StrongArmand Posted February 18, 2010 Share Posted February 18, 2010 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 ? Link to comment
berelinde Posted February 18, 2010 Share Posted February 18, 2010 Items aren't really my forte, but have you tried checking every other box except for the non-halforcish races? Link to comment
Icendoan Posted February 18, 2010 Share Posted February 18, 2010 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 Link to comment
StrongArmand Posted February 18, 2010 Author Share Posted February 18, 2010 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 : I giving you my sharing url. Maybe someone could help me thanks to this files. http://www.mediafire.com/?5tqjmvdtmmj Link to comment
StrongArmand Posted February 20, 2010 Author Share Posted February 20, 2010 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. Link to comment
Wisp Posted February 20, 2010 Share Posted February 20, 2010 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). Link to comment
StrongArmand Posted February 20, 2010 Author Share Posted February 20, 2010 Yes but as I've already said half-orc flag doesn't work... Link to comment
Wisp Posted February 20, 2010 Share Posted February 20, 2010 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. Link to comment
Miloch Posted March 2, 2010 Share Posted March 2, 2010 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. Link to comment
Avenger Posted March 3, 2010 Share Posted March 3, 2010 Ok, so the half-orc field isn't working at all, or it is just for something else? Link to comment
Miloch Posted March 3, 2010 Share Posted March 3, 2010 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. Link to comment
SixOfSpades Posted March 6, 2010 Share Posted March 6, 2010 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. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.