Jump to content


Photo

A technical question


  • Please log in to reply
28 replies to this topic

#21 Cuv

Cuv

    Area Maker (retired)

  • Modder
  • 925 posts

Posted 12 July 2003 - 12:02 AM

PartyHasItem("WA2ROBE")

This takes alot of resources though... if you set it to constantly check for the robe as the script will look through every item you have. It would be best to do a check to see who has it OnCreation(), then set another local variable for your other scripts.

Cuv

#22 hlidskialf

hlidskialf

    Incarnation of the Eternal Ale Warrior

  • Modder
  • 2510 posts

Posted 12 July 2003 - 12:16 AM

As Cuv mentioned, it can take a lot of resources if it runs constantly. For example this is the cause of the infamous "stutter bug" (The non-multiromance one.) that's plagued so many. It comes from the game looking for drow items to turn into dust. It really doesn't take much, until the party has fully packed container items, with every arrow, potion, gem, scroll, etc... being checked. ;)

The great wolf Fenrir gapes ever at the dwelling of the gods.


#23 Dark Phantom

Dark Phantom

    Juna's true master

  • Member
  • 85 posts

Posted 12 July 2003 - 12:18 AM

No, because it is simply a single dialouge script.   one time run.

#24 Dark Phantom

Dark Phantom

    Juna's true master

  • Member
  • 85 posts

Posted 12 July 2003 - 02:06 PM

I have this in my TP2 file.  I have read on scripting, but am unsure this is legitamite.   Can you tell?  It is supposed to create the creature Vithroth after you put the heart and body in the arms of the statue of amunator.  And if this is not it, any suggestions how?

APPEND CLEANSE.BCS
IF Contains("Junabody", myself)
Contains("MISCBP", myself)
THEN
     Response 100
        CreateCreature("Vithrot", [2645.174])
        DestroyItem("JunaBody")
        DestroyItem("MISCBP")
END
END

#25 -jcompton-

-jcompton-
  • Guest

Posted 12 July 2003 - 09:13 PM

Question: Have you ever seen a TP2 file that appends to a BCS in that fashion?

Read the TP2 file syntax. Look at the examples.

#26 MagusWizardo

MagusWizardo

    Don't ask... please don't ask.

  • Member
  • 201 posts

Posted 13 July 2003 - 04:32 AM

And you may want to fix your scripting syntax a little bit... put the IF-THEN-END block into a text editor, save as .BAF, and use your favourite program to compile it. See what it says.

#27 Dark Phantom

Dark Phantom

    Juna's true master

  • Member
  • 85 posts

Posted 18 July 2003 - 07:17 PM

thanks to your help, I am finally Beta.  THANKS!

#28 Dark Phantom

Dark Phantom

    Juna's true master

  • Member
  • 85 posts

Posted 22 July 2003 - 08:12 AM

Or, I thought I was.    I had it install, but now I am having trouble.  can somebody tell me how to make this script, well, work?  I have looked through the readme, but I can not see what I have done wrong.   I have no idea where to look for it in the NPC Mods.

EXTEND_TOP LEHTIN 15
IF ~Global(?SlavingJerk?,?GLOBAL?,2)
PartyGoldGT(1999),
!GLOBAL("JunaBought", "GLOBAL", 1)~ THEN REPLY ~I saved your life, and your tavern.  I require more reward than a simple sword and armor.~ GOTO notenough
END

The codeing is correct, that is The slaving Jerk and Party GoldGT variables are taken from NI.    Is it the third, which I added to make sure you can not do this more than once?   Or is it wrong in other way's.

#29 -jcompton-

-jcompton-
  • Guest

Posted 22 July 2003 - 09:05 AM

You have a comma in the transition trigger. Get rid of it.