Jump to content


Photo

New kits and NPCs


  • Please log in to reply
3 replies to this topic

#1 Bhasbuto

Bhasbuto
  • Member
  • 6 posts

Posted 30 May 2003 - 06:18 AM

Hello.

I'm having a problem with kits and NPCs and I've no idea of tha way to solve it

Well, basically, is this. I'm trying to put a NPC as a Troll Slayer, a fighter kit. In the third pack of the mod, the tp2 file writes this:

ADD_KIT ~Troll~


~Troll                   0           0           1           0           0           1           1           1~

~Troll 0  0  0  5  5  5  5  0  0  0  0  5  0  0  0  0  5  5  5  5  5  5  5  0  0  0  5  0  2  2  2  2  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5 ~

~Troll                   9       0       0       0       0       0~

~Troll                   0       0       0       0       0       0~

~Troll                   17      0       0       0       0       0~

~Troll                   15      0       0       0       0       0~

~Troll                   0       0       0       0       0       0       1       1       1~

~Troll                   0       0       0       0       0       0~

~tdd\kits/CLABFI19.2DA~

~ K_F_D ~

~0X00004000 2~

~Fi0~

~CHAN09  *  HELM07  BAG21  *  *  *  *  *  *  *  AROW11,40  BULL03,40  BOLT06,40  POTN52,5  POTN04,2  POTN14,5  HAMM07  SW1H27  STAF08 ~

SAY @3855
SAY @3856
SAY @3857


And this is in the fourth pack of the mod. Here it is the tp2 file:

COPY ~TDD\NPCs\Kagain\Kagain11.cre~ ~override\Kagain11.cre~
   WRITE_SHORT 0x244 0
   WRITE_BYTE 0x246 ~%Troll%~
   WRITE_BYTE 0x247 0x40
   SAY NAME1 @4181
   SAY NAME2 @4181
   SAY BIO @4182


But it has an error in the first WRITE_BYTE, something like "Can't convert "%Troll%" in an integer. After that, I tried doing APPEND ~Kit.ids~ ~0X00004000 Troll~ At last place in the kits installation, but WRITE_BYTE gives the same error.
...
...
Help?  :(

#2 weimer

weimer
  • Member
  • 1569 posts

Posted 31 May 2003 - 04:21 PM

Rerun it with --debug-assign and paste all of the output here so that I can take a look.

#3 Bhasbuto

Bhasbuto
  • Member
  • 6 posts

Posted 02 June 2003 - 04:13 AM

It's already solved (Thanks, Sim). I just put the three *.cre files which needed kits behind its correspondent kit :) I mean, instead of

BEGIN ~Kits~

(79 kits)

BEGIN NPCs
...
...
...
COPY ~TDD\NPCs\Kagain\Kagain11.cre~ ~override\Kagain11.cre~
  WRITE_SHORT 0x244 0
  WRITE_BYTE 0x246 ~%Troll%~
  WRITE_BYTE 0x247 0x40
  SAY NAME1 @4181
  SAY NAME2 @4181
  SAY BIO @4182


I did:

BEGIN ~Kits~

(kits)
(troll kit installation)

COPY ~TDD\NPCs\Kagain\Kagain11.cre~ ~override\Kagain11.cre~
  WRITE_SHORT 0x244 0
  WRITE_BYTE 0x246 ~%Troll%~
  WRITE_BYTE 0x247 0x40
  SAY NAME1 @4181
  SAY NAME2 @4181
  SAY BIO @4182

(more kits)

BEGIN ~NPCs~

(NPCs installation without add COPY Kagain11.cre)



Anyway, I'll do what you say and if you still want it, I'll post it here :)

#4 weimer

weimer
  • Member
  • 1569 posts

Posted 02 June 2003 - 08:28 AM

If you got it to work, it's no big deal.

The %Troll% variable *should* be available anytime after you add the Troll kit. If WeiDU is "forgetting" your variable, that's a bug and you should send me the TP2 file.