![]() |
The Black Wyrm's Lair Terms of Use |
![]() ![]() ![]() ![]() |
![]() |
![]()
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 |
|
|
![]() |
![]()
Post
#2
|
|
![]() The Tactician ![]() Distinguished Developer Posts: 7794 Joined: 1-December 05 ![]() |
The method to do it is very easy. You make a custom spell which applies the intoxication effect and then forcecast it on the creature in the dialogue file or in a script (deending on the situation).
If you want, I can do it for you. Just send me your prefix (in order to name the new spell correctly to make sure that it won't cause conflicts with other mods) and the dialogue file in which you want to apply the effect (you can send them to me via PM if you want). -------------------- Improved Anvil
![]() Cheating is not confined to using external software or the console commands. Abusing the flaws and limitations of the game engine to do something that a human Dungeon Master would not accept or allow is cheating. |
|
|
![]()
Post
#3
|
|
![]() Retired team member Posts: 490 Joined: 8-April 08 From: U.S.A ![]() |
The method to do it is very easy. You make a custom spell which applies the intoxication effect and then forcecast it on the creature in the dialogue file or in a script (deending on the situation). If you want, I can do it for you. Just send me your prefix (in order to name the new spell correctly to make sure that it won't cause conflicts with other mods) and the dialogue file in which you want to apply the effect (you can send them to me via PM if you want). Easy is a very relative word. ![]() I would be very appreciative if you would do that, Sikret. I'll PM the info over later. -------------------- "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 |
|
|
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 29th August 2025 - 08:52 AM |