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
A technical question
Started by Dark Phantom, Jul 01 2003 11:27 AM
28 replies to this topic
#21
Posted 12 July 2003 - 12:02 AM
#22
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
Posted 12 July 2003 - 12:18 AM
No, because it is simply a single dialouge script. one time run.
#24
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
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-
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.
Read the TP2 file syntax. Look at the examples.
#26
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
Posted 18 July 2003 - 07:17 PM
thanks to your help, I am finally Beta. THANKS!
#28
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.
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-
Posted 22 July 2003 - 09:05 AM
You have a comma in the transition trigger. Get rid of it.