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

Welcome Guest ( Log In | Register )

> Global Not Setting, And one other thing...
Sir_Carnifex
post Jun 22 2008, 04:05 AM
Post #1





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




I'm having a problem with a global variable not setting properly. This dialogue works fine, but I can't get the next in the series to occur unless I manually set it. Yet, you'd think that if it weren't being changed, that the initial dialogue would repeat over and over, but it doesn't.

Here's the code:

CODE
APPEND BKORGAN
IF ~InParty("CXHalbo")
See("CXHalbo")
!Dead("CXHalbo")
!StateCheck("CXHalbo",STATE_SLEEPING)
Global("KorganHalbo1","GLOBAL",0)~ THEN BEGIN KorganHalboTalkDwarf1
SAY ~Blah Blah.~
=
~Blah Blah.~
IF ~~ THEN DO ~SetGlobal("KorganHalbo1","GLOBAL",1)~ EXTERN BCXHALBO KorganHalboTalkDwarf1.1
END
END



The second question is:

How do I go about setting a character's state to intoxicated? I couldn't find any specific state for that. The only thing I could find was the wish spell.


--------------------
"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
Tervadh
post Jun 22 2008, 02:41 PM
Post #2





Forum Member
Posts: 49
Joined: 20-October 06




QUOTE(Sir_Carnifex @ Jun 22 2008, 12:05 AM) *
The second question is:

How do I go about setting a character's state to intoxicated? I couldn't find any specific state for that. The only thing I could find was the wish spell.
It's a stat (stats.ids) not a state (state.ids). So you can do a StatCheck and then apply a Drunkenness modifier (opcode #94) via spell, etc.


--------------------
"Humor is an affirmation of dignity, a declaration of man's superiority to all that befalls him." -Romain Gary, Promise at Dawn
Go to the top of the page
 
Quote Post
Sir_Carnifex
post Jun 24 2008, 02:07 AM
Post #3





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




QUOTE(Tervadh @ Jun 22 2008, 09:41 AM) *
QUOTE(Sir_Carnifex @ Jun 22 2008, 12:05 AM) *
The second question is:

How do I go about setting a character's state to intoxicated? I couldn't find any specific state for that. The only thing I could find was the wish spell.
It's a stat (stats.ids) not a state (state.ids). So you can do a StatCheck and then apply a Drunkenness modifier (opcode #94) via spell, etc.

Alright, back to the intoxication thing. I have to admit that when I look at this explanation, then the stats, then the set spell, then the opcodes, I'm sure if anyone were looking at me, he'd see question marks floating above my head. So would it be too much to ask for a demonstration of HOW to use these to set a character to be drunk after a dialogue? Thanks!


--------------------
"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

Posts in this topic
Sir_Carnifex   Global Not Setting   Jun 22 2008, 04:05 AM
Bookwyrme   One way to check to see if it is or is not setting...   Jun 22 2008, 06:01 AM
Sir_Carnifex   Thanks, I'll check to see if it sets. I didn...   Jun 22 2008, 06:06 AM
Sikret   Variabes take a little bit time to be set. If you ...   Jun 22 2008, 06:31 AM
Moongaze   "The next in the series" being the next ...   Jun 22 2008, 09:11 AM
Tervadh   The second question is: How do I go about setting...   Jun 22 2008, 02:41 PM
Sir_Carnifex   [quote name='Sir_Carnifex' post='32497' date='Jun ...   Jun 22 2008, 10:43 PM
Moongaze   [quote name='Sir_Carnifex' post='32531' date='Jun ...   Jun 23 2008, 06:06 AM
Sir_Carnifex   The second question is: How do I go about setting...   Jun 24 2008, 02:07 AM
Bookwyrme   CHAIN rules.   Jun 22 2008, 11:54 PM
Bookwyrme   I wouldn't mind seeing a demonstration myself ...   Jun 24 2008, 02:50 AM
kulyok   Look at Xan's code: there's an intoxicatio...   Jun 24 2008, 10:59 AM
Sir_Carnifex   Alright, I may be wrong, but it looks like that sc...   Jun 24 2008, 09:58 PM
Tervadh   Alright, I may be wrong, but it looks like that sc...   Jul 20 2008, 08:13 PM
Sir_Carnifex   Eh, sorry for the late response... e-mail notifica...   Jul 23 2008, 03:31 AM
Daulmakan   Can't you do a SetStat for it after the dialog...   Jun 25 2008, 01:17 AM
Sir_Carnifex   I could if I knew how. First, I don't remembe...   Jun 25 2008, 02:23 AM
Sikret   The method to do it is very easy. You make a custo...   Jun 25 2008, 06:12 AM
Sir_Carnifex   The method to do it is very easy. You make a custo...   Jun 25 2008, 06:12 PM


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 - 08:40 AM