"Invisible" Errors
#1
Posted 27 September 2002 - 01:35 AM
IF ~~ THEN BEGIN Refuse
SAY ~Very well, you know where to find me if you change your mind.~
@EXIT@
END
I have compared it with previous blocks, and they compiled OK, but theres about five or six p.o.e.s. I have checked the tildes before you say, that was one reason for one of them, but i've rectified it.
If necessary, I can send the whole thing to someone.
Edit (Oh, before I forget, make sure you have an open mind)
#2
Posted 27 September 2002 - 02:07 AM
IF ~~ THEN BEGIN Refuse SAY ~Very well, you know where to find me if you change your mind.~ IF ~~ THEN EXIT END
#4
Posted 27 September 2002 - 03:27 AM
#6
Posted 27 September 2002 - 03:35 AM
#7 -jcompton-
Posted 27 September 2002 - 05:40 AM
#8
Posted 27 September 2002 - 05:43 AM
A question than: I do not think so, but do you need to have a line such as
IF ~~ THEN GOTO?
#9
Posted 27 September 2002 - 06:25 AM
#10
Posted 27 September 2002 - 06:30 AM
IF ~!Global ("JunaRomanceActive",3)
Global("LoveTalk", 2)
!CheckState(Player1,STATE_SLEEPING)~ THEN BEGIN LT4.1
SAY "Master? Might I have a word with you, without being punished?"
If ~Global("JunaAbuse", 0)~ THEN REPLY ~Of course, pretty young Juna. Whats on your mind?~ GOTO LT4.2
IF ~Global("JunaAbuse",1)~ THEN REPLY ~Speak your mind, slut, but be quick about it!~GOTO LT4.3
IF ~Global("JunaAbuse",2) THEN REPLY ~Speak, but If you grumble about your situation again, be prepared to be hurt!~ GOTO LT4.4
IF ~~ THEN REPLY ~No, you may not! I did not buy you to talk to, but to bed with...UNDERSTAND~ GOTO LT4.6
with all of the "goto's" going to a differant block of text in the file.
#11 -jcompton-
Posted 27 September 2002 - 09:34 AM
You're not using the Global() trigger properly.
The format is
!Global("JunaRomanceActive","GLOBAL",3)
Note that if it IS a GLOBAL (as opposed to a LOCALS or an area variable) you CAN use
!G("JunaRomanceActive",3)
...but G() requires that it IS a GLOBAL.
The other problem is that
IF ~Global("JunaAbuse",1)~ THEN REPLY ~Speak your mind, slut, but be quick about it!~GOTO LT4.3
I believe you need a space between ~ and GOTO.
Oh, and that state needs an END.
Finally, I'm not entirely sure periods are valid for WeiDU labels. Syntax-meister Weimer?
#12
Posted 27 September 2002 - 09:46 AM
#13
Posted 27 September 2002 - 10:06 AM
#14
Posted 27 September 2002 - 11:26 AM
Well, I know aria's are pieces of music, but in relation to BG2, I think Globals refer to everything, local affect one thing (e.g. a character), and area affect one map area. I aren't sure about the last one, and I'm probably wrong with the other twowhat are the differances between a global, local, and aria? I have done a bit of programing work, so I would wonder if a global isn't just that which effects throughout the game, instead of say in D'arnes keep, or the theif guild. Or am I just off in understanding you?
#15
Posted 27 September 2002 - 11:38 AM
#16 -jcompton-
Posted 27 September 2002 - 11:39 AM
A GLOBAL variable can be read or modified by any game script or dialogue.
A LOCALS variable can only be read or modified by the object it belongs to (typically an individual character/creature, but I believe there are other things that can have their own LOCALS)
An area variable is of the form Global("Blah","AR0500",2) and that can only be read or modified from within the specified area.
Some modders, Wes in particular, almost exclusively use GLOBAL variables. It's partially a matter of taste and a matter of convenience.
#18
Posted 27 September 2002 - 11:52 AM
I would type in SetGlobal ("JunaKnows","GLOBAL",1), but for say a local it would be "SetGlobal("JunaKnows","LOCAL",1)? What would the Love talks be, or do you set them?
#20
Posted 27 September 2002 - 12:25 PM