Jump to content


Adding to WSMITH01.dlg


  • Please log in to reply
1 reply to this topic

#1 -Arch_Angel-

-Arch_Angel-
  • Guest

Posted 08 October 2002 - 02:13 AM

Ok I want to add one item to wsmith01.dlg (Cromwell's in case you are wondering)

I'm using the following code but in-game nothing happens. The entry seems to be skipped any ideas?

//==================================================
// Kron Hammer Upgrades
//==================================================

// SoA Content

EXTEND_TOP WSMITH01 13
IF ~PartyHasItem("KR_RUNEH")
PartyHasItem("KR_HAM1")~
THEN REPLY ~~ GOTO Hammer_Upgrade
END

APPEND WSMITH01

IF ~~ THEN BEGIN Hammer_Upgrade
SAY @280
=
@312
IF ~~ THEN REPLY @281
DO ~~ EXIT
IF ~PartyHasGoldGT(10001)~ THEN REPLY @282
DO ~TakePartyGold(10000)
DestroyGold(10000)
TakePartyItemNum("KR_HAM1",1)
DestroyItem("KR_HAM1")
TakePartyItemNum("KR_RUNEH",1)
DestroyItem("KR_RUNEH")
GiveItemCreate("KR_HAM2",Player1,1,1,1)
CreateVisualEffect("spcrtwpn",[401.348])~ EXIT
END

END

==========================

Cheers Kron

#2 weimer

weimer
  • Member
  • 1569 posts

Posted 08 October 2002 - 11:46 AM

Off the top of my head, use EXTEND_BOTTOM instead of EXTEND_TOP when you have a transition with no REPLY. Read the DOCs for why. Short version: IE considers transitions "bottom up".