The Black Wyrm Lair Forums
The Black Wyrm's Lair Terms of Use Help Search Members Calendar

Welcome Guest ( Log In | Register )

> More State Checks...
Sir_Carnifex
post Jun 5 2008, 12:48 AM
Post #1





Retired team member
Posts: 490
Joined: 8-April 08
From: U.S.A




Two questions here...

I know I saw somewhere (but can't remember where) that someone mentioned using this because it includes a lot of states... The problem is WeiDu gives me this message when I use it:

[StateCheck] argument [CD_STATE_NOTVALID] not found in [State.IDS]

The mod still installs, but with warnings. Is this usual when using that state check, or am I using/typing it wrong? This is how I have it:

!StateCheck("character",CD_STATE_NOTVALID)



And the second question. What is the check to determine if it is raining or not? I did find the weather identifiers, but not what check to put in place. Or is there such a thing?
Edit: Found the answer to the weather question.

This post has been edited by Sir_Carnifex: Jun 6 2008, 12:19 AM


--------------------
"Once the game is over, the king and the pawn go back into the same box." - Italian Proverb

"I like criticism, but it must be my way." - Mark Twain

"A positive attitude may not solve all your problems, but it will annoy enough people to make it worth the effort." - Herm Albright
Go to the top of the page
 
Quote Post
 
Start new topic
Replies
jastey
post Jun 6 2008, 10:37 AM
Post #2





Forum Member
Posts: 1366
Joined: 22-August 04
From: Germany




What parse error do you get? Is it still there after you add the custom state to the ids via the tp2-patching? (Sorry for not pointing that out earlier, btw. I mentioned the custom state but didn't tell you how to implement it. It's from CamDawg, btw., just for the credits.)

To weather: No check, unfortunately, only action. So, if you want a banter only fire if it's raining (or not), you have to set the whether, run a timer of say 5 sec and then trigger the banter. I did that for one of Ajantis's love talks in BG1NPC project (script block slighty adapted to the example):

/* Weather change (no weather) */
IF
InParty(Myself)
(...)
!Detect([ENEMY])
See(Player1)
!StateCheck(Player1,CD_STATE_NOTVALID)
CombatCounter(0)
Global("C#WeatherTalk","GLOBAL",0)
OR(3)
AreaType(OUTDOOR)
AreaType(WEATHER)
AreaType(FOREST)
THEN
RESPONSE #100
SetGlobal("C#WeatherTalk","GLOBAL",1)
Weather(NOWEATHER)
RealSetGlobalTimer("C#WeatherTalkTimer1","GLOBAL",5)
MoveToObject(Player1)
END

Have a look in the IESDP which weather can be set: http://iesdp.gibberlings3.net/files/ids/bg2/weather.htm

This post has been edited by jastey: Jun 6 2008, 10:39 AM
Go to the top of the page
 
Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:



- Lo-Fi Version Time is now: 29th August 2025 - 07:51 PM