

WeidU question
#21
Posted 18 June 2005 - 10:27 AM

#22
Posted 18 June 2005 - 10:42 AM
Pex657, on Jun 18 2005, 12:47 AM, said:
Wow... I feel so dumb. Is it just me or is this CHAIN thing hard. lol
Here is my question.==BFLAN @7 = @8 == BTSUJAT @9where does the file BFLAN has @7 written
That information goes in a TRA file. You are not required to use them.
== BFLAN ~Hello~
would be equivalent.
WeiDU knows where they are (if you choose to use them) if you either employ AUTO_TRA (which I've never used) or the USING command when you compile them, which you can see in various published mod TP2s.
Pocket Plane mods and modlist etc.
#23
Posted 18 June 2005 - 10:52 AM
Quote
IF ~~ THEN REPLY ~If the trade is fair enough.~ DO ~JoinParty() AddJournalEntry(~A strange fellow has joined with my group and asked that I help him start his own business here in Amn. I should go talk with Lord Ketlaar Argrim, he is a local investor and is located in the Government district.[/u]~[/u],QUEST)~ EXIT
Notice that the bolded and underlined tildes are encapsulating different parts, one containing the other. However, WeiDU cannot understand that the first underlined tilde is opening an inner string, it assumes it's closing the bolded one.
Solution: change one of the tilde pairs with either five tildes, quotes or percentage.
My first suggestion would be to change the bolded ones with percentages:
Quote
Don't pick the habit of using quotes to pad actions or triggers in .d, as many of these actions/triggers require quotes in them. Same goes for single tilde, in events such as this.IF ~~ THEN REPLY ~If the trade is fair enough.~ DO %JoinParty() AddJournalEntry(~A strange fellow has joined with my group and asked that I help him start his own business here in Amn. I should go talk with Lord Ketlaar Argrim, he is a local investor and is located in the Government district.~,QUEST)% EXIT
However, you can (and should, for translations' sake) use @references inside actions (EG
Quote
IF ~~ THEN REPLY ~If the trade is fair enough.~ DO ~JoinParty() AddJournalEntry(@1,QUEST)~
EXIT
Italian users: help test the Stivan NPC!
Author or Co-Author: WeiDU - Widescreen - Generalized Biffing - Refinements - TB#Tweaks - IWD2Tweaks - TB#Characters - Traify Tool - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics - Nalia Mod - Nvidia Fix
Code dumps: Detect custom secondary types - Stutter Investigator
If possible, send diffs, translations and other contributions using Git.
#24
Posted 18 June 2005 - 10:57 AM
IF ~~ QUEST ~Dear Diary...~ EXIT
Edited by Shed, 18 June 2005 - 10:57 AM.
Yikari, monk NPC
Shed's Mods - Three time TeamBG Contest winner!
The Jerry Zinger Show
ShedPlant.net
#25
Posted 18 June 2005 - 10:59 AM
Shed, on Jun 18 2005, 08:47 PM, said:
Which shows how much I know of .d synthax after over an yearAlternatively:
IF ~~ QUEST ~Dear Diary...~ EXIT

However, the percentage padding will also hold good for other instructions, such as DisplayStringHead() or stuff.

Italian users: help test the Stivan NPC!
Author or Co-Author: WeiDU - Widescreen - Generalized Biffing - Refinements - TB#Tweaks - IWD2Tweaks - TB#Characters - Traify Tool - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics - Nalia Mod - Nvidia Fix
Code dumps: Detect custom secondary types - Stutter Investigator
If possible, send diffs, translations and other contributions using Git.
#26
Posted 18 June 2005 - 11:27 AM
#27
Posted 18 June 2005 - 11:52 AM
Yikari, monk NPC
Shed's Mods - Three time TeamBG Contest winner!
The Jerry Zinger Show
ShedPlant.net
#28
Posted 18 June 2005 - 12:02 PM

#29
Posted 18 June 2005 - 12:13 PM
Yikari, monk NPC
Shed's Mods - Three time TeamBG Contest winner!
The Jerry Zinger Show
ShedPlant.net
#30
Posted 18 June 2005 - 12:31 PM
IF ~~ THEN REPLY ~If the trade is fair enough.~ DO %JoinParty() AddJournalEntry(~A strange fellow has joined with my group and asked that I help him start his own business here in Amn. I should go talk with Lord Ketlaar Argrim, he is a local investor and is located in the Government district.~,QUEST)% EXITI had it like this. When I moved it to:
IF ~~ THEN REPLY ~If the trade is fair enough.~ DO %AddJournalEntry(~A strange fellow has joined with my group and asked that I help him start his own business here in Amn. I should go talk with Lord Ketlaar Argrim, he is a local investor and is located in the Government district.~,QUEST) JoinParty()% EXIT
The journal entry now works. Once again thanks to all. I can't really repay you by helping you out with something you need done for your mod(if you can't tell, i am not very good at this stuff) but if any of you who helped need a mirror of your files, let me know.
Edited by Pex657, 18 June 2005 - 12:33 PM.
#31
Posted 18 June 2005 - 01:59 PM

Yikari, monk NPC
Shed's Mods - Three time TeamBG Contest winner!
The Jerry Zinger Show
ShedPlant.net
#32
Posted 18 June 2005 - 04:57 PM
IF ~ InParty("Lokyr") !StateCheck("Lokyr",STATE_SLEEPING) Global("Businlokyr","LOCALS",0) !Died(Lokyr)~ SAY ~I am a very busy man, with lots of money to put towards investments, if you could let me do that, I would be very glad.~ IF ~~ THEN REPLY ~I think you should listen to us. We have a investment that you might be interested in. It would be worth your time, and money to listen.~ GOTO Listen IF ~~ THEN REPLY ~We do not care how busy you are! We have a business proposal and we think you should listen.~ GOTO Listen IF ~PartyGoldGT(101)~ THEN REPLY ~ We know that you like to invest in new investments. We will give you 100 gold pieces to listen to a proposal.~ GOTO Listengold IF ~CheckStatGT(Player1,18,CHR) OR(1) CheckStatGT(Player1,17,Int)~ THEN REPLY ~My dear friend. I am not here to burdon you. I hear around that you are the man to see if one wants to invest in to a new store. I have lots of money and I am ready to spend, if you know what I mean!~ GOTO Listentrick IF ~~ THEN REPLY ~I am sorry to bother you. I will be on my way.~ GOTO Leave END IF ~~ THEN BEGIN Listen SAY ~Why are you still talking with me. I do not deal with the slum population.~ IF ~~ THEN REPLY ~Do not anger us. If you have not noticed, it is very easy for us to hurt you. So if your smart you will listen.~ GOTO Threat IF ~~ THen REPLY ~Why are you so rude. We are just trying to talk business with you and all you are doing is insulting us.~ GOTO Cry IF ~PartyGoldGT(101)~ THEN REPLY ~ We know that you like to invest in new investments. We will give you 100 gold pieces to listen to a proposal.~ DO ~TakePartyGold(100)~ GOTO Listengold IF ~CheckStatGT(Player1,18,CHR) OR(1) CheckStatGT(Player1,17,Int)~ THEN REPLY ~My dear friend. I am not here to burdon you. I hear around that you are the man to see if one wants to invest in to a new store. I have lots of money and I am ready to spend, if you know what I mean!~ GOTO Listentrick IF ~~ THEN REPLY ~I am sorry to bother you. I will be on my way.~ GOTO Leave END CHAIN IF ~~ THEN BEGIN Listengold Say ~Well, I might have time to listen to your proposal after all.~ Do ~SetGlobal("Businlokyr","LOCALS",1)~ == BLokyr ~This is only a small amount of money that you have recieved from us. There is much more money if you invest in my business. I come from Waterdeep and own trade corporation there. I want to extend my look outs down in Amn.` == ARGRIM ~I see, but how much money would you need?~ == BLokyr ~Atleast 10,000 upfront and then some. The payback would be atleast double this amount. Plus my merchants can offer other services.` == ARGRIM ~Other services? Go on...~ == BLokyr ~Protection, warehousing, just to name a few.~ == ARGRIM ~I am interested, but I cannot give you the space or money at this moment. One of my deals went sower.. wait.. Maybe you can help me out in my situation and I would lend you all the money you need.~ == BLokyr ~Tell us about your situation.~ == ARGRIM ~A man called Torvald, at the moment holds most of my belongs. If you could some how... make him... disappear. He has deed papers. If he is dead, he won't really need them anymore.~ END IF ~~ THEN REPLY ~we will see what we can do.~ EXITin my .tp2 file it has
COMPILE ~lokyrNPC\ARGRIMG.d~
when i try to install it gives me this error:
[/quote]WARNING: cannot verify trigger ~
InParty("Lokyr")
!StateCheck("Lokyr",STATE_SLEEPING)
Global("Businlokyr","LOCALS",0)
!Died(Lokyr)~: Not_found
[LokyrNPC\ARGRIM.d] PARSE ERROR at line 71 column 1-3
Near Text: SAY
syntax error
[LokyrNPC\ARGRIM.d] ERROR at line 71 column 1-3
Near Text: SAY
Parsing.Parse_error
ERROR: parsing [LokyrNPC\ARGRIM.d]: Parsing.Parse_error
ERROR: compiling [LokyrNPC\ARGRIM.d]!
Stopping installation because of error.[/QUOTE]
I tried changing things around, but nothing seems to be working so far

#33
Posted 18 June 2005 - 06:59 PM
Pex657, on Jun 18 2005, 05:47 PM, said:
~This is only a small amount of money that you have recieved from us. There is much more money if you invest in my business. I come from Waterdeep and own trade corporation there. I want to extend my look outs down in Amn.`== ARGRIM
~I see, but how much money would you need?~
== BLokyr
~Atleast 10,000 upfront and then some. The payback would be atleast double this amount. Plus my merchants can offer other services.`
Note the red. Those should be tildes. "~".
I heavily recommend you get either Context, TextPad, or similar software that the community has made weidu-specific highlighters for. 99% of your headaches will vanish.
The great wolf Fenrir gapes ever at the dwelling of the gods.
#34
Posted 18 June 2005 - 07:12 PM
Pex657, on Jun 19 2005, 02:47 AM, said:
Should be in qoutes (as in!Died(Lokyr)
!Died("Lokyr")
Quote
Mind-boggling how that may be, you have to do~CheckStatGT(Player1,18,CHR) OR(1) CheckStatGT(Player1,17,Int)~
~OR(2) CheckStatGT(Player1,18,CHR) CheckStatGT(Player1,17,Int)~
to do ORs. Same way as MSExcel formulae.
Italian users: help test the Stivan NPC!
Author or Co-Author: WeiDU - Widescreen - Generalized Biffing - Refinements - TB#Tweaks - IWD2Tweaks - TB#Characters - Traify Tool - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics - Nalia Mod - Nvidia Fix
Code dumps: Detect custom secondary types - Stutter Investigator
If possible, send diffs, translations and other contributions using Git.
#35
Posted 18 June 2005 - 07:24 PM

The great wolf Fenrir gapes ever at the dwelling of the gods.
#36
Posted 18 June 2005 - 07:29 PM
Quote
hahaha!!! the best part about it(or sad part), i think no matter how many times i went over it... it wouldn't have found them...Heh, I didn't even get to the code content. Those tildes are just too easy a fix. tongue.gif
Which is better contect or textpad
#37
Posted 18 June 2005 - 07:34 PM
Pex657, on Jun 18 2005, 08:19 PM, said:
Quote
hahaha!!! the best part about it(or sad part), i think no matter how many times i went over it... it wouldn't have found them...Heh, I didn't even get to the code content. Those tildes are just too easy a fix. tongue.gif
Which is better contect or textpad
It depends on your tastes. IIRC Context is free, and it has the largest following. (And I think it's highlighter is about 5 versions of weidu newer than my TextPad one.) However, I much prefer TextPad as Context seems to be a resource eater on my system. Others have reported no problems but I have serious ones with it. *shrug* There are also several others out there. If you are just sampling things, I'd say go with Context for now.
The great wolf Fenrir gapes ever at the dwelling of the gods.
#38
Posted 18 June 2005 - 07:35 PM
hlidskialf, on Jun 19 2005, 05:14 AM, said:
The Not_found was a dead giveout anywayHeh, I didn't even get to the code content. Those tildes are just too easy a fix.

Quote
I prefer to use ConTEXT http://fixedsys.com/context/, along with the custom highliters from WeiDU's site (http://www.weidu.org...T_idobek_v1.zip, http://www.weidu.org...hlighter-v7.zip and http://www.weidu.org...hlighter-v1.zip)hahaha!!! the best part about it(or sad part), i think no matter how many times i went over it... it wouldn't have found them...
EDIT: Hlid beated me

Edited by the bigg, 18 June 2005 - 07:36 PM.
Italian users: help test the Stivan NPC!
Author or Co-Author: WeiDU - Widescreen - Generalized Biffing - Refinements - TB#Tweaks - IWD2Tweaks - TB#Characters - Traify Tool - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics - Nalia Mod - Nvidia Fix
Code dumps: Detect custom secondary types - Stutter Investigator
If possible, send diffs, translations and other contributions using Git.
#39
Posted 18 June 2005 - 08:07 PM
#40
Posted 18 June 2005 - 08:34 PM
Quote
I am guessing there is something wrong with my BLokyr.d. to install a Bxxx.d, do you do it different then just compile ~Bxxx.d~? At the moment my BLokyr is empty. Do i have to put something in it so it would link up the the CHAIN i have in the ARGRIM file.ERROR locating resource for 'CHAIN3'
Resource [BLOKYR.DLG] not found in KEY file:
[./chitin.key]
ERROR: preprocessing APPEND_EARLY [LokyrNPC\BLokyr.d]: Failure("resource [BLOKYR.DLG] not found for 'CHAIN3'")
Stopping installation because of error.
My CHAIN if it would help fix the problem:
CHAIN ARGRIM Listengold ~Well, I might have time to listen to your proposal after all.~ DO ~SetGlobal("Businlokyr","AR1002",1)~ == BLokyr ~This is only a small amount of money that you have recieved from us. There is much more money if you invest in my business. I come from Waterdeep and own trade corporation there. I want to extend my look outs down in Amn.~ == ARGRIM ~I see, but how much money would you need?~ == BLokyr ~Atleast 10,000 upfront and then some. The payback would be atleast double this amount. Plus my merchants can offer other services.~ == ARGRIM ~Other services? Go on...~ == BLokyr ~Protection, warehousing, just to name a few.~ == ARGRIM ~I am interested, but I cannot give you the space or money at this moment. One of my deals went sower.. wait.. Maybe you can help me out in my situation and I would lend you all the money you need.~ == BLokyr ~Tell us about your situation.~ == ARGRIM ~A man called Torvald, at the moment holds most of my belongs. If you could some how... make him... disappear. He has deed papers. If he is dead, he won't really need them anymore.~ END