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
plainab
post Sep 1 2008, 04:52 PM
Post #2





Forum Member
Posts: 21
Joined: 18-November 06




I don't know if you were ever given the solution to resolve the error you were receiving regarding the use of CD_STATE_NOTVALID.
I will go ahead and answer here so that others who may look here for a solution to your problem as a help to their problem will understand what is going on.

1) If you wish to check for a certain state, you need to make sure that that state is present in the state.ids file.
2) if not, you need to add it somewhere within your tp2 prior to the script or dialog file where you wish to use the associated state.
Example from this topic:
CODE
APPEND ~STATE.IDS~ ~0x80101FEF CD_STATE_NOTVALID~
         UNLESS ~CD_STATE_NOTVALID~

3) however, weidu will not recognize the new entry until it's memory has been flushed and base game files reread.
Example to do this:
CODE
APPEND ~STATE.IDS~ ~0x80101FEF CD_STATE_NOTVALID~
         UNLESS ~CD_STATE_NOTVALID~
CLEAR_IDS_MAP


The addition of CLEAR_IDS_MAP tells weidu to clear it's memory of script dependent files and reread them. Once it does this, you will be able to use the new addition in any script or dialog file as you deem necessary. You only need to have the CLEAR_IDS_MAP one time before you compile any files using the additions. Therefore, you can append multiple states, spells, triggers, actions, shouts, etc. and have a single CLEAR_IDS_MAP on the line above your first file taking advantage of the new additions.

I hope this is helpful and clear to you and anyone else who has a similar question.

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:53 PM