Circle of Eight Forum

Go Back   Circle of Eight Forum > ToEE Modding > General Modification
User Name
Password
Register FAQ Members List Calendar JavaChat Mark Forums Read

Reply
 
Thread Tools
Old March 20th, 2008   #1
Gaear
Bastard Maestro
 
Gaear's Avatar
 
Join Date: Apr 2004
Posts: 5,575
ToEE Global Flags and Variables

This is reproduced from the list kept by Sitra Achara. If anyobody has any additional information, contrary or otherwise, please post it here.

ALSO: if you are going to add a new flag or variable in a new mod, please post notice of it here so the list can be updated.


FLAGS 001 - 500

Code:
001	Jaroo met
002	Gwynneth mentions barn problem
003	Identified Hemlock
004	Discovered what Corl was doing in Jay's field
005	Killed Corl in Jay's field
006	Exposed Corl as having been in Jay's field
007	Corl assassinated by smigmal
008	Jaroo consulted about mourning period for Filliken
009	Mathilde mentioned she's fond of Filliken
010	Filliken has been told Mathilde likes him (now needs permission from Jaroo)
011	Myella told Y'dey is dead
012	Miller says go talk to Jaroo about flour donation
013	Spoke to Jaroo abt flour, double donation solution offered
014	Carpenter willing to build barn
015	Miller okayed Erliter conversion to Cuthbert
016	Jakk agreed to convert to Cuthbert
017	Terjon okayed Marek conversion to Old Faith
018	Asked Jaroo why he hasn't sent his report
019	Told Jaroo you've cleared the Moathouse
020	Freed Countess Tillahi
021	Terjon becomes available (having dealt with Calmert)
022	Told Terjon about Y'dey brooch (even if it's lost)
023	Jaroo wants consent of Terjon for conversion
024	Terjon wants Erliter for Marek
025	Terjon wants Jakk for Marek
026	Terjon wants Kindlehoppers (Fruella) for Marek
027	Terjon says Mytch is wise to let Erliter follow his heart (can be used to accuse him of being hypocritical with Marek)
028	Asked Calmert to stop asking for donations, having given > 100
029	Spoke to Cavanaugh about church debt
030	Forced (intimidated) Cavanaugh to pay up church dues
031	Temple agent at Construction Site exposed
032	Marek and Althea to be wed
033	Jakk says you must heal Bing to convert him
034	Bing healed
035	Valden told about caravan by LG party
036	Smyth mentioned he can cure light wounds
037	Lareth dead
038	Returned Paida to Valden
039	Man-At-Arms hired
040	Teamster said Traders are fishy
041	Confronted Traders abt courier (got reward or directions)
042	Fruella demands wedding @ church
043	Fruella's father agrees to convert
044	Kobort dead
045	Turuko dead
046	Married Meleny
047	Told Raimol (man-at-arms) you're doing well. If you attack him when you're low on health and he isn't, he says he'll take your things to the traders (and fights); possibly also set when you loot a chest and Raimol makes a comment
048	Making "delivery" to the Master
049	Back from delivery to Moathouse sergeant
050	Master is your prisoner (unused in game?)
051	Caught Furnok cheating
052	Lieutenant okayed recruitment (requires that your party's evil and that you've confronted Ranns and Gremag about the spy)
053	Lareth joins party to guide you to "proving grounds" (evil party; good party forcing him to join won't set this flag); for prisoner Lareth it means he's joined you
054	Gleem said to talk to Nybble
055	Gnome captives freed
056	Hommlet Inn room paid for
057	Furnok has been in party
058	Furnok dead
059	Lubash dead
060	Furnok has been on adventure (will retire when back at Hommlet and gold > 2000)
061	Furnok has retired
062	Have spoken to Lareth (cf. flag 834)
063	Looted potter's stash inside Hommlet well (reset if you pay him back)
064	Lied to potter about looting his stash
065	Peasant laborer said Jayfie is fishy
066	Elmo has been in party (already paid for equipment)
067	Have spoken to vignette's relevant figure in Hommlet (mostly relevant for asking directions); also appears in Verbobonc's Hextor Cleric for some reason (probably shouldn't be there)
068	Marrying Laszlo
069	Encouraged Laszlo a bit (?) (it's right next to a +20 reaction adjustment command)
070	Have spoken to Otis
071	Asked Elmo about Otis, having already met Otis
072	Otis has met Elmo
073	Otis has been to ToEE with you
074	Otis' secret revealed
075	"Introduced" to Ophelia
076	Snake Pit Jenelda paid for
077	Snake Pit Riana paid for
078	Snake Pit Homa & Fuga twins paid for
079	Snake Pit Sheep paid for
080	Snake Pit Iron Maiden paid for
081	
082	Jenelda love proclamation (professed to Ophelia; allows new dialogue option with Jenelda, and then resets)
083	Jenelda exclusive arrangement
084	Riana has been told she'll be freed (resets when you free her and tell her about it); also set when she disappears on you
085	Jenelda agreed to work
086	Mickey taken care of for Ophelia
087	Made wisecrack to Ophelia about a whore, or asked for the chicken instead
088	Rentsch dead
089	Dala has attempted theft; resets after 2 hours
090	Told Bertram he's free
091	Recruited by Rentsch; reset when letter delivered to him
092	Recruited by Wat
093	Preston nice to you
094	Nulb house bought
095	Can tell Pearl that Alira is business associate
096	Alira spills the beans on ToEE
097	Tolub dead
098	Got arrows from Hruda/Murfles
099	
100	Mother Screng has travelled with you
101	Fight Tolub over Bertram instead of Dubloons
102	Told Lodriss about assassination
103	Got reward from Skole
104	Romag dead
105	Belsornig dead
106	Kelno dead
107	Allrem dead
108	Bugbears have defected to Kelno
109	Earth altar desecrated
110	Oohlgrist dead
111	Accepted going to Earth Troop commander for employment
112	Oohlgrist joins Water Temple
113	Put poison vial on Allrem
114	Earth robe planted on dead bugbear for Belsornig
115	Antonio dead
116	Tubal dead
117	Kitchen snake in Temple dead
118	Oohlgrist joins Fire Temple
119	Romag asks to kill fire underpriests instead of delivering letter
120	Romag letter delivered to Rentsch
121	Paid Oohlgrist for safe passage
122	Oohlgrist gets half share
123	Oohlgrist gets quarter share
124	Hartsch spoken to about lost letter; got option to bluff Romag that Rentsch is dead
125	Bluffed Allrem about killing underpriests Antonio & Tubal
126	Cave ogres persuaded to join peacefully
127	Tillahi & Juffer untied
128	Acted mean to Wonnilon (reset if you apologize)
129	Talked to Wonnilon without ungagging and departed
130	Brigand prisoner (Wicked) liberated 
131	Orcs & two female prisoners released
132	Merrolan, Nallorem dead (shared flag)
133	Ted, Ed & Ed liberated
134	Pintark dead
135	Tuelk dead
136	Ted dead
137	Ed 1 dead
138	Ed 2 dead
139	Bassanio dead
140	Tubal related flag; maybe, fire bugbears killed? Possibly removed from game
141	Tubal confessed to cheating Antonio
142	Lost a dice game to Antonio
143	???????????????? Possibly was meant to be set by Tubal when you get him to kill Antonio
144	Temple on alert (also used to double for Escorted to Temple condition, changed by modders); reset when led to Hedrack by an elemental priest; set by: shrieking charmed Paida, talking to Hedrack not as a part of Greater Temple initiation, and Smigmal getting away
145	Met Hedrack
146	Hedrack dead
147	Senshock dead
148	Paida dispelled
149	Paida left alone in Temple after dispell (or kicked out of party not in Hommlet)
150	Thrommel dead
151	Thrommel freed and out of Temple
152	Thrommel reward scheduled
153	Paida dead
154	Spoken to werewolf mirror
155	Werewolf dead
156	Curry Leaf (Murraya) dead
157	Commited to killing Senshock and Hedrack for Barkinar, otherwise he attacks you next time you talk
158	Barkinar wants a taste of Curry Leaf and Green Coconut
159	Met Curry Leaf or Green Coconut
160	???????? Not sure how this flag is set, but it's set to 0 by Valden if you bring back Paida and ask for no reward, and it allows you to buy spiked shields from him. Possibly bugged!
161	Curry Leaf agrees to meet Barkinar
162	Barkinar offered reward for providing him Green Coconut
163	Barkinar's request fulfilled (either Hed&Sensh or Coconut)
164	Falrinth away (reset to 0 when he returns, timed event) (actually, this would only be meaningful if Falrinth actually tried to use a dimension door or somesuch and was blocked by Dimensional Anchor - which he isn't. About half of his dialogue file is locked away as a result)
165	Spoken with Deggum; the way the dialogue is structed, this flag is only set if he didn't mention the curry leaf business, and if the dialogue wasn't hijacked by Barkinar
166	Deggum said Barkinar's addicted to Green Coconut (you need to talk to Deggum for the first time in private to get the conversation node that leads to this)
167	Met Falrinth
168	Met Thrommel
169	Freed whitman (and Mandy if she's not eaten)
170	Mandy dead
171	Grank story revealed to you (either by Grank or Whitman)
172	Suggested to Water Bugbears to defect to Air Temple
173	Sargen reward doubled
174	Brunk dead
175	You know who Brunk is (never set ingame, it seems)
176	Feldrin goes away, will kill Brunk shortly
177	Feldrin dead
178	Taken Brunk quest - kill Feldrin
179	Darley demonhood revealed (flag is set on transformation; transformation can occur outside dialogue as a result of True Seeing spell)
180	Darley demonhood revealed (set once spoken to in demon form)
181	Zuggtmoy is hiding (waiting for either: 1. You taking the gems; 2. You trying to get away; 3. True Seeing spell (which probably doesn't work) )
182	Scorpp dead (note: for some reason a piece of Hedrack's dialogue appears inside Scorpp's dlg, include a check for this flag. It's unreachable except by console, however)
183	Taken Zuggtmoy pillar
184	Surrendered yourself to Zuggtmoy
185	Zuggtmoy offered to surrender
186	Zuggtmoy surrenders and serves evil party
187	Zuggtmoy gives you treasure 
188	Zuggtmoy banished
189	Zuggtmoy dead
190	Given Orb to Zuggtmoy for pillar
191	Zuggtmoy charms a PC
192	Allrem - Ashrem encounter took place
193	Zuggtmoy transformed to demon form
194	Scorpp surrendered
195	Burne was shown the Orb of Golden Death
196	Meleny mistreated or dead
197	Met one of the Traders (Rannos or Gremag)
198	Told Lareth BRB to remove party member so he could join
199	Erliter is beggar
200	Lareth said you've arrived at secret entrance, should go in (at Temple tower map)
201	Lodriss has Skole killed
202	Skole to attack you for not completing assassination in 3 days (including the encounter with the goons)
203	Riana disappeared on you in Snake Pit
204	Y'dey to leave party on return to Nulb/ Show beggar Otello (clash!)
205	Cavanaugh is beggar
206	Otello has told you family state (complication due to multiple states, I.E. depends on how much money you've given him it can be reverse logic)
207	Cavanaugh beggar drunk
208	Turnkey fears you
209	Rumors
210	Rumors
211	Rumors
212	Rumors
213	Rumors
214	Rumors
215	Rumors
216	Rumors
217	Rumors
218	Rumors
219	Rumors
220	Rumors
221	Rumors
222	Rumors
223	Rumors
224	Rumors
225	Rumors
226	Rumors
227	Got Ochre Jelly encounter
228	Got Zaxis encounter
229	Got Adventuring party encounter
230		
231		
232		
233		
234		
235		
236		
237		
238		
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271		
272		
273		
274		
275		
276		
277	Got Assassin encounter
278	Got Thrommel reward encounter
279	Got Tillahi reward encounter
280	Got Sargen reward encounter
281	Got Skole goons encounter
282	[Set aside for DH: Gwenno encounter]
283	Got Moathouse Ambush encounter (also set when you arrive at any worldmap location after Lareth is dead if you haven't gotten the encounter, so it won't happen later)	
284		
285		
286	You have been to Temple Dungeon level 2
287	Taken to Romag/Allrem blindfolded and haven't entered level 2 normally (can't give directions; unset when entering/exiting temple normally)
288	Gnolls run off
289	Paid for bed at Waterside Hostel
290	Tolub has told story of how he became pirate
291		
292	Assassin mentioned how he tracked you; (in vanilla ToEE scripting resets once you confront Rannos or Gremag about it, no longer the case; Also, I intended for THIS flag to enable you to attack the traders from within dialogue, but Allyx changed this so that the "Assassin Dead" flag is checked instead)
293	Gremag has offered assassination quest
294	Assassinate Cabinet Maker accepted
295	Assassinate Elder Nevets accepted
296	Assassinate Terjon accepted
297	Cabinet Maker Armario dead
298	Town Elder Kenter Nevets dead
299	Terjon dead
300	Corl killed by you inside his room
301	Introduced to weaver
302	Erliter has visited church
303	Meleny courtship flag no. 1
304	Meleny courtship flag no. 2
305	Meleny says you need to marry
306	Discovered that Screng is Y'dey
307	Talked to Murfles about Y'dey
308	Captain Renton has commented on Elmo
309	Captain Renton has commented on Otis
310	Tubal assassinated by Antonio
311	Antonio assassinated by Tubal
312	Allrem assassinated by Tubal
313	Murfles calls on Y'dey to kill you
314	Mona offered to sell Serena
315	Bought Serena off of Mona or traded Meleny for her
316	Mona has told fortune
317	Mona friendly (either due to Grud or returned Orb)
318	Traded Meleny for serena (currently never set, it seems)
319	Riana and Serena reunited
320	Met Ophelia (makes Preston collect from her instead of Mona)
321	Met Mona
322	Streetwalker (??) set on first_heartbeat somewhere (probably Nulb). Enables females to wink at scorpp and a minor Mickey dlg option. Needs testing!
323	Met straight Bertram (gay one vanishes)
324	Met gay Bertram (straight one vanishes)
325	Hedrack killed in his quarters (in front of Curry Leaf & Green Coconut) (meaningless since he never appears there)
326	Destroy Orb script fired (3 days to finish game)
327	Iuz dead
328	Cuthbert showed up
329	Grud dead
330	Jenelda dead
331	Laszlo dead
332	Killed ochre Jelly (Can be any Ochre Jelly - tested this myself. If unset, an ochre jelly eats Meleny & Filliken & Mathilde in endslide if married)
333	Filliken dead
334	Mathilde dead
335	Falrinth dead
336	Burne or Rufus dead
337	Jaroo dead
338	Smigmal dead
339	Swore fealty to Hedrack
340	Playing demo version (will get demo ending after dealing with Lareth)
341	Got Orb of Golden Death
342	Wonnilon in hideout
343	Wicked went elsewhere (obsolete)
344	Fire Temple KOS override (gets reset if you attack faction leader)
345	Water Temple KOS override
346	Air Temple KOS override
347	Earth Temple KOS override
348	Oohlgrist demanded more (10k gp) to join Temple (allows you to tell Allrem you've failed)
349	Oohlgrist surrendered in combat
350	Oohlgrist offers ruby necklace
351	Mona wish: Humor in all things (spawns Ted, Ed and Ed)
352	Mona wish: Gold (merchant prisoner gives you 1030gp when liberated)
353	Mona wish: Honor & Heroics (USED TO spawn heroic merchant; heroic merchant spawns anyway with Verbomod)
354	Mona wish: Something pitiful & easy to kill (USED TO spawn sad merchant; spawns anyway with Verbomod)
355	Merchant prisoner liberated
356	Met Mickey
357	Mickey confessed to taking Orb
358	Burne has described how to destroy Orb
359	Destroyed Orb (Zuggtmoy weakened)
360	Otis has been paid to for joining
361	Iuz has had a heartbeat
362	Otis has spotted his equipment in your inventory (busted!)
363	Moathouse sergeant stops initiating dialogue (you attack or scared him off)
364	Fruella dead
365	Bertram dead
366	Otis to betray evil party (on low HP or secret revealed) at ToEE
367	Otis disbands, having been to Temple & returned to Nulb
368	Murfles dead
369	Lodriss dead
370		
371		
372		
373		
374		
375		
376		
377		
378		
379		
380		
381		
382		
383		
384		
385		
386		
387		
388		
389		
390		
391		
392		
393		
394		
395	NOTE: most of the flags below were part of unfinished work of mine
396		
397		
398		
399		
400	Enable Big Quest Chain (TM) teleports (Sitra)
401	Enable minor Hommlet quests teleports (Sitra)
402	Turn off Carrion Crawlers
403	Generate CE revenge encounter after 3 days instead of 365 (must be set before killing peasants!); also, drop level req
404		
405		
406		
407		
408		
409		
410	Have spawned Jay's ring
411	Have spawned Orc prespawn in ogre cave
412		
413		
414		
415		
416		
417		
418		
419		
420	Reserved for Sitra Achara
421	Reserved for Sitra Achara
422	Reserved for Sitra Achara	
423	Reserved for Sitra Achara	
424	Reserved for Sitra Achara	
425	Reserved for Sitra Achara	
426	Reserved for Sitra Achara	
427	Reserved for Sitra Achara	
428	Confronted traders about assassination attempt
429	You are suspicious of the traders after confronting them with the assassination thing (changed by Allyx :-[ no longer the case; also in original script I forgot to add this to Rannos)
430	Demanded reward from Burne
431	Burne has discussed council events with you
432	Have spawned in Town Hall
433	Said you'd deal with traders yourself
434	Triple cross with traders
435	already set council time event
436	Have had wilderness encounter with traders
437	Reserved for Sitra Achara
438	Reserved for Sitra Achara	
439	Reserved for Sitra Achara	
440	Assaulted traders BEFORE consulting Burne
441	Reserved for Sitra Achara	
442	Reserved for Sitra Achara	
443	Reserved for Sitra Achara	
444	Reserved for Sitra Achara	
445	Reserved for Sitra Achara	
446	Reserved for Sitra Achara	
447	Reserved for Sitra Achara	
448	Reserved for Sitra Achara	
449	Reserved for Sitra Achara	
450	Reserved for Sitra Achara	
451		
451		
453	
454	
455	
456	
457	
458	
459	
460	
461	
462	
463	
464	
465	
466	
467	
468	
469	
470	
471	
472	
473	
474	
475	
476	
477	
478	
479	
480	
481	
482	
483	
484	
485	
486	
487	
488	
489	
490	
491	
492	
493	
494	
495	
496	
497	
498	
499	Wat told you about Tarah's visit to Snakepit	
500
__________________
SUPER MODERATOR, Circle of Eight Forums

Last edited by Gaear; April 8th, 2010 at 09:48 AM.
Gaear is online now   Reply With Quote
Old March 20th, 2008   #2
Gaear
Bastard Maestro
 
Gaear's Avatar
 
Join Date: Apr 2004
Posts: 5,575
Re: ToEE Global Flags and Variables

FLAGS 501 - 999

Code:
501	Give Golden Skull to Hextor Priest
502	Invaded Homlet
503	Warlord of Homlet
504	Spoke to Hommlet Commander about Fireforge. #Not Implemented in Current Mod
505	Decide to Make Castle
506	Informed of Delko Bandits
507	Killed Delko Bandits
508	Informed of Quarry
509	Handled Quarry Problem (Through Diplomacy)
510	Handled Quarry Problem (Through Force)
511	Informed of Church Problem #Not Implemented in Current Mod
512	Killed Adderly #Not Implemented in Current Mod
513	Killed Hextor Priests
514	Good Priest in Hommlet #Not Implemented in Current Mod
515	Hextor Priests in Hommlet #Not Implemented in Current Mod
516	Made Fireforge Town Blacksmith #Not Implemented in Current Mod
517	Upgraded Guards (Good or Evil) #Not Implemented in Current Mod
518	Castle is Complete
519	Give Golden Skull to Burne (Agree to Scout Road)
520	Defeated Wizard Before Hommlet Invasion or Hextor Priest
521	Become Lord of Hommlet
522	Informed of Invasion Plans by Hextor Priest
523	Informed Burne of Hextor Invasion Plot
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601	Shopmap exit portal activated
602	Shopmap description box played
603	Hommlet description box played
604	Moathouse description box played
605	Welkwood Bog description box played
606	Verbobonc description box played
607	Emridy Meadows description box played
608	Hickory Branch description box played
609	Nulb description box played
610	ToEE description box played
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687		
688		
689		
690	DH: Delivered all items (makes Saduj and co spawn; reset once they spawn)
691	DH: got item from Paida
692	DH: Gwenno encounter added to random encounter queue.
693		
694	DH: Met Frank
695	DH: Frank has been spawned already (map 5120)
696	DH: Saduj dead
697	DH: Given a Hemlock already
698	DH: Clarisse has been spawned (the ghost of Laszlo's wife IIRC)
699	DH: DH spawns enabled
700	Zert dead
701		
702		
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799		
800	
801	Kent has told you his name
802	Kent has told you about Hommlet
803	Kent has informed you of mod changes (slightly bugged?)
804	Got quest info from Kent
805	Spugnoir sold starting equipment
806
807
808	Turuko sold starting equipment (appears in Serena's retard dialogue - probably bug!)
809
810
811	Spell flag: Animate Dead, Command, Doom, Hold Person, Tasha's Hideous Laughter, Mass Hold Person, Petrifying Breath
812	Hedrack proactivity flag (replaces game.new_sid = 0 in heartbeat script)
813	Password 'Epiphany' known (this has recently been modified, needs to be incorporated here - I think it's in the Priests' dialogues)
814	Rannos Davl dead
815	Gremag dead
816	Terjon dead (299 also checks that)
817	Calmert dead
818		
819	Attacked Calmert or Terjon in front of Spugnoir, makes him turn on you (turns on his KOS flag)
820	Control Box disarmed
821	Falrinth's scroll generating script has already fired, do not repeat
822	Falrinth has terminated combat once already (prevents him from doing so again)
823		
824		
825		
826		
827		
828		
829		
830		
831		
832		
833	Temple		Walked into Lareth's trap/tower (I.e. the "to arms my men!" dialogue. a fight ensues on reentry without liberated Lareth)
834	Moathouse	Met Lareth (Livonya's flag; almost identical to flag 62, except when you ignore his surrender and go on with the battle - flag 62 is not set in this case, while 834 is)
835	Temple		Handled Tower fight diplomatically (KOS on return to Tower; also triggers Lareth prisoner if he's alive)
836	Encounters	Killed Temple Assassin
837	Hommlet		Dispelled Lareth's binding enchantment
838	Hommlet		Met Prisoner Lareth
839	Hommlet		Liberated Lareth; makes Burne and Rufus pissed at you
840	Temple		Have spoken to Lareth after he's back in the Brigand Tower; or rather, you're now chummy with him. Reset when entering combat (if you attack the brigands)
841	Moathouse	Lareth related temp flag, set when you escort Lareth directly to the moathouse, reset by brigand upon reentry
842	Hommlet		Heard about prisoner Lareth
843	Hommlet		Asked Rannos or Gremag about Lareth's whereabouts (can't ask again once it's set)
844		
845	Hommlet		Attacked Badgers guarding imprisoned Lareth (prevents them from going proactive again on that level)
846	Hommlet		Lareth died escaping
847	Temple		Lareth goes to tower alone after escape (reset once you go there via witch/wizard/brigand script)
848	Encounters	Zaxis sold starting equipment
849	Temple		Override Tower Brigands' combat override (yes, override the override! So there's a fight! This flag gets set when you start a fight after becoming friends with Lareth)
850	Hommlet		Destroyed Rufus' quiver of arrows +2 (via script; probably to get him to melee. Resets on his death and spawns back the arrows if he's not in the party)
851	Nulb		Skole has given you information about R&G looking for you, or you've had the encounter anyway (if set to 1 it doesn't come up in dialogue)
852	Temple		Smigmal has already aborted combat in an attempt to fool you
853	Temple		Bassanio has already initiated dialogue once flag (otherwise he will address you when you get close to him)
854	Temple		Have spawned spawners in Temple level 1
855	Hommlet		Jaroo said full Heal not enough to cure Amii, need Lotus Flower; triggers spawn in swamp area
856	Encounters	Got Gnoll Bandits encounter
857	Hommlet		Gnolls have stolen item ordered from woodcutter (unset when you encounter them) (bugged in 228?)
858	Nulb		Got Orb of Sah from Mickey (the game also checks via heartbeats if Mickey still has it; if not, the flag is set, because presumably you've taken it from him)
859	Nulb		Mickey fears you and/or Nulb (set after the whole Orb deal is taken care of)
860	Nulb		Killed Mickey
861	Hommlet		Have spawned Amii (indoors, at woodcutter's)
862	Hommlet		Amii dead
863	
864	Hommlet		Have spawned Amii (outdoors)
865	Hommlet		Have spawned Ganna
866
867	Hommlet		Told Meleny to throw away her starting equipment
868	Hommlet		Raimol (man-at-arms) sold starting equipment
869
870
871	Nulb		Beat Mickey unconscious
872	Temple		Fire Temple chest has been spawned already (the one near Antonio, not where the Salamanders are)
873	Temple		Bassanio's chest has been generated (modded one in place of the original one)
874	Temple		Stole from Fire Temple chest (or attempted to) - probably obsolete
875	Encounters	Lotus flower has been spawned once, stop spawning more
876	Hommlet		Amii death sequence (in two weeks) has been triggered ("hope is lost" flag, I guess); set by Amii related NPCs when 875 is set on and the flower is not in your possession (and the quest in not complete)
877	Encounters	Zaxis runoff fired (not the second one); makes him spawn in Brothel (unless he's already got the Ima note)
878	Encounters	?????????? Allows you to say that you don't think you've met [Ima?] if [878] == 0. Maybe Liv intended to let you find Ima? Probably unfinished scripting
879	Encounters	Zaxis has been in party
880	Encounters	Zaxis gets Ima note
881	Nulb		Serena sold starting equipment
882	Encounters	attacked by gnolls caravan encounter
883	Nulb		Got Rannos and/or Gremag revenge encounter	
884		
885		
886		
887		
888		
889		
890		
891		
892		
893		
894		
895		
896		
897		
898		
899		
900		
901		
902		
903		
904		
905	Verbobonc	Scarlett Brotherhood cousin has attempted theft, will reset in 2 hours (similar to Dala)
906	Verbobonc	Killed Darlia (beta?)
907		
908		
909		
910		
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930	Nulb		Riana disbanded (deactivates first Riana and activates Riana at Mona's)
931	Nulb		Serena disbanded (deactivates first Serena and activates Serena at Mona's)
932	Temple		Paida spoke to you after getting charm removed (used to defeat loophole where she won't talk to NPCs if they remove the charm)
933	Hommlet		Turns off original Valden and turns on replacement valden who stays at home after Paida safely returned
934	Hommlet		Elmo dead
935	Verbobonc	Killed Wilfrick in Verbobonc (authorities will arrest you)
936	Verbobonc	Senshock turned on
937
938
939
940
941
942
943
944	Arena		opted to go away and come back later
945	Arena		MOTA on/off switch
946	Verbobonc	Told Wilfrick that you've been asked to kill him
947	Encounters	Slave children rescued
948	Encounters	Kenan dead
949	Encounters	Tarah dead
950	Encounters	Sharar dead
951	Encounters	Gadham dead
952	Encounters	Abaddon dead
953	Encounters	Gershom dead
954	Encounters	Persis dead	
955	Verbobonc	Sentenced to die in Verbobonc
956	Verbobonc	Gunter Gladstone dead
957	Verbobonc	Kendrew Commonworth dead
958	Verbobonc	Quintus Corpus dead
959	Verbobonc	Holly commented about Maroon Moon
960	Verbobonc	Doing business with Darlia
961	Verbobonc	Scarlet Brotherhood surveillance initiated
962	Verbobonc	Corporal Holly dead
963	Verbobonc	Verbobonc guard called for backup
964	Verbobonc	Verbobonc guard killed for Darlia
965	Verbobonc	Jewel merchant in Nulb killed for Darlia
966	Verbobonc	Have acquired Castle in Verbobonc
967	Verbobonc	Jylee's Inn room paid for
968	Verbobonc	Met Lerrick
969	Verbobonc	Met Prince Zook
970	Verbobonc	Met Wilfrick
971	Verbobonc	Elysia dead
972	Verbobonc	Jenna dead
973	Verbobonc	Hextor Priest dead
974	Verbobonc	Lerrick dead
975	Verbobonc	Prince Zook IV dead	
976	Welkwood	Mathel dead
977	Hommlet		Armario masterwork switch (turns off regular Armario and turns on masterwork Armario)
978	Hommlet		Bing masterwork switch (turns off regular Bing and turns on masterwork Bing)	
979	Hommlet		Brother Smyth masterwork switch (turns off original Smyth and turns on masterwork Smyth)
980	Verbobonc	Captain Abiram gave you verbal tour of Verbobonc	
981	Verbobonc	Prince Zook told you Lerrick is poisoning Viscount's mind against him
982	Verbobonc	Darlia becomes available (having dealt with cousin)	
983	Verbobonc	Cousin let you in to see Darlia via Gremag connection (rep 24)	
984	Verbobonc	Cousin opened option to see Darlia via future payment of 100 gold	
985	Verbobonc	Drow problem in Verbobonc mentioned.	
986	Verbobonc	Viscount told you Lerrick says not to trust gnomes.	
987	Verbobonc	Elysia confronted you about botching quest to have Viscount let her go
988	Verbobonc	Came to Verbobonc with Rufus (?)
989	Verbobonc	Assassin leader dead
990	Temple		Senshock has escaped
991	Verbobonc	Gnome party from the moathouse appears in Verbobonc (flag set when they're released, basically a duplicate of flag 55)
992	Verbobonc	Verbobonc Viscount dead; also connected with Senshock death script (it seems that if you kill Senshock while it's set, then it resets - and flag 147 isn't set); also associated with a KOS override (overrides KOS when == 0 )
993	Temple		Female prisoner 1 ran off (beautiful strawberry blonde / Jenna); appears in Verbobonc
994	Temple		Female prisoner 2 ran off (dark exotic beauty / Tinafer / Elysia); appears in Verbobonc
995	Verbobonc	White Dragon dead
996	Temple		Smigmal has spawned assassin henchmen
997	Verbobonc	Spruce Goose Inn room paid for (also triggers a merchant's appearance?)
998	Temple		Heroic merchant liberated (won't appear in Temple anymore) (bugged in 237?)
999	Hommlet		Elmo Sober
__________________
SUPER MODERATOR, Circle of Eight Forums

Last edited by Gaear; 5 Days Ago at 02:30 PM.
Gaear is online now   Reply With Quote
Old March 21st, 2008   #3
Shiningted
Gophers, consarn it!
 
Shiningted's Avatar
 
Join Date: Oct 2004
Location: Sydney
Posts: 9,553
Re: ToEE Global Flags and Variables

Well done Gaear!

I have set aside flag 282 to modify DH's Gwenno encounter: looks like it was conflicting with something else.

Last edited by Shiningted; March 21st, 2008 at 01:53 AM.
Shiningted is offline   Reply With Quote
Old March 21st, 2008   #4
Shiningted
Gophers, consarn it!
 
Shiningted's Avatar
 
Join Date: Oct 2004
Location: Sydney
Posts: 9,553
Re: ToEE Global Flags and Variables

Added flag 811, used by several flags
Shiningted is offline   Reply With Quote
Old April 27th, 2008   #5
Sitra Achara
Demon Lord
 
Join Date: Sep 2003
Location: Israel
Posts: 598
Re: ToEE Global Flags and Variables

*cough* I'd like to reserve flags 420 - 450 and vars 390 - 460. Thanks

Also, there was a mistake in my list - flag 882 is actually associated with the attacked by gnolls caravan encounter, not the Rannos and Gremag encounter. Can you please modify it to flag 883?

(see attached for updated list, which also contains some unpublished stuff of mine)
Attached Files
File Type: rar flags and vars.rar (35.0 KB, 5 views)
Sitra Achara is offline   Reply With Quote
Old April 27th, 2008   #6
Gaear
Bastard Maestro
 
Gaear's Avatar
 
Join Date: Apr 2004
Posts: 5,575
Re: ToEE Global Flags and Variables

I guess we should have a variables list too, shouldn't we?


VARIABLES 001 - 500

Code:
001	Jinnerth state (1 = renton agreed that he sows uniforms; 2 = informed him of the news; 3 = paid for his expenses; 0  + quests[1] completed = renton accepted him because of Elmo, makes Jinnerth offer crossbow reward (currently broken!); 4 = have informed Jinnerth (Elmo path) )
002	Gold donated to Grove (if >= 100 triggers rep when talking to Jaroo; affects services' prices)
003	Deklo spiders killed
004	Otello quest state
005	Church service price index (low -> cheap)
006	Gold donated to Church
007	Furnok dice/card result
008	Times you lost played cards & dice with Furnok (in vanilla ToEE it was times played)
009	Eddie state
010	Tolub brawl related; 0 = unmentioned; 1 = mentioned; 2 = you lost; 3 = you won
011	Number of defecting bugbears killed
012	Prison guards killed (Bugbear & Ogre on second level, for Belsornig)
013	Cave Ogres subdued
014	Cave Ogres killed
015	Tubal bugbears killed
016	Antonio gambling dice result
017	Number of shields made by Valden as reward
018	Grank thugs killed (reset after 7 and initiate dialogue with Grank)
019	Gold given to beggar Erliter ( if > 100 he goes to Verbobonc to start anew)
020	Gold given to beggar Otello
021	Related to amount of gold given to beggar Cavanaugh (determines how long he's drunk afterwards)
022	Stores game.story_state from the last time you checked for rumors
023	Hommlet dwellers killed by you ( if >= 2 gets Butcher of Hommlet)
024	Hommlet beggars (if >=3 gets you Tatterdemalion Tutelary rep)
025	Number of attempted rapes (if >=3 gets master ravager rep)
026	Temple prisoners liberated
027	Vignette bandits killed or knocked out (when >=3 it is changed to -1000 )
028	Vignette peasants killed or knocked out
029	Party NPCs killed (while in party). If > 10 you get a slide about it :)
030	Node guardians slain
031	Tolub trash talk counter/timer
032	Rounds fought with Iuz
033	Cabinet maker masterwork making status (3 - will be ready soon, 4 - ready)
034	Skole inventory respawn related (?)
035	Random encounter survival check
036	Brother Smyth has mentioned he can do healing (used like a flag…)
037	
038		
039		
040		
041		
042		
043		
044		
045		
046		
047		
048		
049		
050		
051		
052	Moathouse respawn related; if greater than 1, do spawn and reset to 1. Is incremented when Lareth's officers are killed
053		
054		
055	Related to number of times visited temple, for giving Tillahi instructions
056	Orcs killed in ogre cave (not counting archers for some reason)
057		
058		
059		
060		
061		
062		
063
064
065
066
067
068
069
070
071
072
073
074
075
076
077
078
079
080
081
082
083
084
085
086
087
088
089
090
091
092
093
094
095
096
097
098
099
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333	Verbobonc	Verbobonc dwellers killed by you (if >= 2 gets Slaughterer of Verbobonc rep)
334	Verbobonc	Verbobonc patrol units killed by you (if >= 2 gets Constable Killer rep)
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400	Reserved for Sitra Achara
401	Reserved for Sitra Achara
402	Reserved for Sitra Achara
403	Reserved for Sitra Achara
404	Reserved for Sitra Achara
405	Reserved for Sitra Achara
406	Reserved for Sitra Achara
407	Reserved for Sitra Achara
408	Reserved for Sitra Achara
409	Reserved for Sitra Achara
410	Reserved for Sitra Achara
411	Reserved for Sitra Achara
412	Reserved for Sitra Achara
413	Reserved for Sitra Achara
414	Reserved for Sitra Achara
415	Reserved for Sitra Achara
416	Reserved for Sitra Achara
417	Reserved for Sitra Achara
418	Reserved for Sitra Achara
419	Reserved for Sitra Achara
420	Reserved for Sitra Achara
421	Reserved for Sitra Achara
422	Reserved for Sitra Achara
423	Reserved for Sitra Achara
424	Reserved for Sitra Achara
425	Reserved for Sitra Achara
426	Reserved for Sitra Achara
427	Reserved for Sitra Achara
428	Reserved for Sitra Achara
429	Reserved for Sitra Achara
430	Reserved for Sitra Achara
431	Reserved for Sitra Achara	
432	Reserved for Sitra Achara	
433	Reserved for Sitra Achara	
434	Reserved for Sitra Achara	
435	Council meeting state: 1 - council to convene in a week unguarded; 2 - badgers to guard town hall; 3 - Council spawns (a week has passed since you spoke to Burne); 4 - Council trap played out; 5 - like 4 but everyone back in their positions; 6 - you attacked or killed the traders so nothing happened
436	Council meeting aftermath: 1 - trap has set off without you; 2 - you've attended council and the trap went off, you bolted to the door; 3 - attended council, trap went off, you helped evacuate; 4 - you've attended council and you found the trap; 5 - badgers have set off trap while you're gone; 6 - throat slitting; 7 - poisoned; 8 - you guarded together with badgers
437	Trader's Trail state: 0 - found nothing; 1 - dog found scent; 2 - wolf found scent; 3 - jackal found scent; 50 - made successful listen check; 60 - spotted tracks
438	Reserved for Sitra Achara
439	Reserved for Sitra Achara
440	Reserved for Sitra Achara
441	Reserved for Sitra Achara
442	Reserved for Sitra Achara
443	Reserved for Sitra Achara
444	Reserved for Sitra Achara
445	Reserved for Sitra Achara
446	Reserved for Sitra Achara
447	Reserved for Sitra Achara
448	Reserved for Sitra Achara
449	Reserved for Sitra Achara
450	Reserved for Sitra Achara
451	Reserved for Sitra Achara
452	Reserved for Sitra Achara
453	Reserved for Sitra Achara
454	Reserved for Sitra Achara
455	Reserved for Sitra Achara
456	Reserved for Sitra Achara
457	Reserved for Sitra Achara
458	Reserved for Sitra Achara
459	Reserved for Sitra Achara
460	Reserved for Sitra Achara
461	Reserved for Sitra Achara
462	Reserved for Sitra Achara
463	Reserved for Sitra Achara
464	Reserved for Sitra Achara
465	Reserved for Sitra Achara
466	Reserved for Sitra Achara
467	Reserved for Sitra Achara
468	Reserved for Sitra Achara
469	Reserved for Sitra Achara
470	Reserved for Sitra Achara
471	Reserved for Sitra Achara
472	Reserved for Sitra Achara
473	Reserved for Sitra Achara
474	Reserved for Sitra Achara
475	Reserved for Sitra Achara
476	Reserved for Sitra Achara
477	Reserved for Sitra Achara
478	Reserved for Sitra Achara
479	Reserved for Sitra Achara
480	Reserved for Sitra Achara
481	Reserved for Sitra Achara
482	Reserved for Sitra Achara
483	Reserved for Sitra Achara
484	Reserved for Sitra Achara
485	Reserved for Sitra Achara
486	Reserved for Sitra Achara
487	Reserved for Sitra Achara
488	Reserved for Sitra Achara
489	Reserved for Sitra Achara
490	Reserved for Sitra Achara
491	Reserved for Sitra Achara
492	Reserved for Sitra Achara
493	Reserved for Sitra Achara
494	Reserved for Sitra Achara
495	Reserved for Sitra Achara
496	Reserved for Sitra Achara
497	Reserved for Sitra Achara
498	Reserved for Sitra Achara
499	Reserved for Sitra Achara
500
__________________
SUPER MODERATOR, Circle of Eight Forums

Last edited by Gaear; 1 Week Ago at 09:58 AM.
Gaear is online now   Reply With Quote
Old April 27th, 2008   #7
Gaear
Bastard Maestro
 
Gaear's Avatar
 
Join Date: Apr 2004
Posts: 5,575
Re: ToEE Global Flags and Variables

VARIABLES 501 - 999

Code:
501	Hommlet		Counter of Hommlet Invaders Killed. When it Reaches 7 the townspeople make you Lord. Used in Ranths_Spawner.py and all san_dying of Wakefield (py00454 san_dying shared by all Invaders)
502	Verbobonc	Counter for Hextor Priests Killed in their Church. When 4 die, it tells PC about Hommlet Invasion. Used in Ranths_Spawner.py and all san_dying of Hextor Priest (py00339 san_dying shared by all Invaders)
503	Reserved for Ranth
504	Reserved for Ranth
505	Reserved for Ranth
506	Reserved for Ranth
507	Reserved for Ranth
508	Reserved for Ranth
509	Reserved for Ranth
510	Reserved for Ranth
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598	Reserved for Sitra Achara
599	Reserved for Sitra Achara
600	Reserved for Sitra Achara
601	Reserved for Sitra Achara
602	Reserved for Sitra Achara
603	Reserved for Sitra Achara
604	Reserved for Sitra Achara
605	Reserved for Sitra Achara
606	Reserved for Sitra Achara
607	Reserved for Sitra Achara
608	Reserved for Sitra Achara
609	Reserved for Sitra Achara
610	Reserved for Sitra Achara
611	Reserved for Sitra Achara
612	Reserved for Sitra Achara
613	Reserved for Sitra Achara
614	Reserved for Sitra Achara
615	Reserved for Sitra Achara
616	Reserved for Sitra Achara
617	Reserved for Sitra Achara
618	Reserved for Sitra Achara
619	Reserved for Sitra Achara
620	Reserved for Sitra Achara
621	Reserved for Sitra Achara
622	Reserved for Sitra Achara
623	Reserved for Sitra Achara
624	Reserved for Sitra Achara
625	Reserved for Sitra Achara
626	Reserved for Sitra Achara
627	Reserved for Sitra Achara
628	Reserved for Sitra Achara
629	Reserved for Sitra Achara
630	Reserved for Sitra Achara
631	Reserved for Sitra Achara
632	Reserved for Sitra Achara
633	Reserved for Sitra Achara
634	Reserved for Sitra Achara
635	Reserved for Sitra Achara
636	Reserved for Sitra Achara
637	Reserved for Sitra Achara
638	Reserved for Sitra Achara
639	Reserved for Sitra Achara
640	Reserved for Sitra Achara
641	Reserved for Sitra Achara
642	Reserved for Sitra Achara
643	Reserved for Sitra Achara
644	Reserved for Sitra Achara
645	Reserved for Sitra Achara
646	Reserved for Sitra Achara
647	Reserved for Sitra Achara
648	Reserved for Sitra Achara
649	Reserved for Sitra Achara
650	Reserved for Sitra Achara
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687		
688		
689		
690		
691	Temple		Stores the identity of who escorted you to the Greater Temple: 1 - Romag, 2 - Kelno, 3 - Allrem
692	Hommlet		Ronald State
693	Hommlet		Ronald related - are there orcs/gruumshites in party? (1 - There are half orcs; 2 - Pintark and Tuelk; 3 - Gruumshite priest)
694	DH		Gwenno buff counter
695	DH		Inn quest state (1 - go clear basement, 2 - spiders spawned, 3 - go kill Giant King Rat, 4 - GKR spawned)
696		
697	DH		5 - commented on sheep, 6 - got curette
698	DH		Tenant state flag (Frank too?) (0 - not yet spawned, 1 - just spawned, 3 - quietened down (either killed or convinced by a Hextorite that they need to be quiet), 4 - Hextorite path but couldn't persuade (will need to persuade Sunom instead), 6 - Feast is over; Frank spawned by weaver(?) triggered when you threaten her)
699	DH		# of items collected
700		
701	Moathouse	Lareth Diary state: 0 locked & trapped, 1 disarmed locked, 2 unlocked (if not disarmed then trap already triggered)
702	Hommlet		Reset at Hommlet exterior in the beginning; 1 = talked to Kent
703		
704		
705	Hommlet		Blacksmith's chest status: 0 - unmentioned; 1 - mentioned; 2 - unlocked
706	Moathouse	Have replaced Moathouse thieves tools with trapped thieves tools (used like a flag)
707	Temple		Temple level 4 lightning trap counter; increments by 1 every heartbeat, fires at 3; Set to 3 when control box closed
708	Generic		Number of Death Knell scrolls created in Skeleton Priest's or Zuggtmoy Priest's inventory (max 4; reset on enter_combat)
709	Moathouse	Related to Moathouse Gnoll Leader KOS and calling on his comrades to attack (not sure how it's supposed to reach 1)
710		
711	Temple		Brigand Tower Witch got Silence scroll (seems to be used like a flag rather than a var, since it's only set to 1)
712	Hommlet		Spugnoir buff counter
713	Temple		Allrem buff counter
714	Temple		Belsornig buff counter
715	Temple		Kelno buff counter
716	Unknown		buff counter
717	Temple		Brigand Tower Wizard / Temple level 4 wizard buff counter
718	Temple		Bassanio buff counter
719	Temple		Hedrack buff counter
720	Temple		Senshock buff counter
721	Temple		Falrinth buff counter
722	Hommlet		Jaroo buff counter
723	Hommlet		Terjon buff counter
724	Hommlet		Calmert buff counter
725	Temple		Barkinar buff counter
726	Moathouse	Lareth buff counter
727	Temple		Romag buff counter
728	Temple		Deggum buff counter
729	Temple		Moathouse/Tower Witch buff counter
730	Hommlet		Burne buff counter
731	Nodes		Sargen buff counter
732	Unknown		buff counter
733	Unknown		buff counter
734		
735		
736		
737		
738		
739		
740		
741		
742		
743		
744		
745		
746		
747		
748		
749		
750	Hommlet		Rannos Davl fight script related: 1 = Gremag or Rannos damaged, begin escape sequence 2 = Rannos got invis potion; 3 = Rannos ran off
751	Hommlet		Gremag fight script related: 1 = Gremag or Rannos damaged, begin escape sequence 2 = Gremag got invis potion; 3 = Gremag ran off
752		
753	Hommlet		Related to Jaroo's spell permenancy removal - a temp var for saving xp, so it can be restored after Jaroo resurrects the char
754	Temple		Hedrack related; if set to 1, the first_heartbeat does nothing, else, if combat is not active, initiate dialogue and set it to 1 (this is used for initiating dialogue after being led by an Elemental priest to Hedrack; although another option is that you load up a savegame while standing next to hedrack, which triggers the first_heartbeat script)
755		
756		
757		
758	Maothouse	Lareth binding enchantment effect counter
759	Nulb		Number of times visited your house in Nulb after buying it (if greater than 2, and Gremag & Rannos Davl have been attacked by you, you get a revenge encounter)
760	Moathouse	Gnoll patrol-related var
761	Encounters	Ikian buff counter (from random encounter with adventuring party)
762	Nodes		Vrock spores counter
763	Temple		Falrinth combat counter (gives him a bunch of scrolls during combat; reset at heartbeat if flag 821 is still off, just in case)
764		
765		
766	Hommlet		Hommlet exterior related var; randomized between 1 and 20 once by spawner obj (??????)
767	Hommlet		Woodcutter reward status: 0 - nothing, 1 - asked about Amii's well being, 2 - letter to relative written, 3 - reply from relative arrived, 4 - can order stuff (after asking 'have you heard anything from your relative')
768	Hommlet		Item ordered from Woodcutter ID (reset when getting item)
769	Hommlet		Woodcutter item order status: 1 - ordered item, 2 - item arrived, 0 - default (nothing; reset to this on arrival)
770	Hommlet		Woodcutter already ordered Dragonhide Plate
771	Hommlet		Woodcutter already ordered Amulet of Might Fists
772	Hommlet		Woodcutter already ordered Dwarven Plate
773	Hommlet		Woodcutter already ordered Composite Bow (str+2)
774	Hommlet		Woodcutter already ordered Longbow of Frost
775	Hommlet		Woodcutter already ordered Excalibur
776	Hommlet		Items ordered from Woodcutter (max 3)
777	Unknown		Used in Livonya script 00310livonya3f.py; currently unknown purpose (perhaps breakfree related?)
778		
779		
780		
781		
782		
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815		
816		
817		
818		
819		
820		
821		
822		
823		
824		
825		
826		
827		
828		
829		
830	Generic		Zombie Tele
831	Generic		Zombie Tele
832	Generic		Zombie Tele
833		
834		
835		
836		
837		
838		
839		
840		
841		
842		
843		
844		
845		
846		
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901	Temple		Falrinth interrupt fighting counter
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954	Arena of Heroes	Hill giant on/off variable (used like a flag)
955	Arena of Heroes	Owlbear on/off variable (used like a flag)
956	Verbobonc	Wilfrick ordered AI change (used like a flag)
957	Verbobonc	Wilfrick guard death counter
958	Verbobonc	Stages of Darlia poisoning in Verbo-Nulb-Moathouse
959	Verbobonc	Stages of Darlia setup in Verbo-Nulb-Imeryds
960	Verbobonc	Stages of Wilfrick execution
961	Verbobonc	Gotten after by Lydia, Glora Gundigoot, or Ophelia for fighting in their places with Gladstone, Commonworth, or Corpus
962	Verbobonc	Gladstone, Commonworth, or Corpus told you about Capt. Achan's scheme, and you told Achan
963	Verbobonc	Stages of acquiring castle in Verbo from banker
964	Verbobonc	Met Capt. Achan and talked to him about fugitives
965	Verbobonc	Stages of confronting Darlia about surveillance
966	Verbobonc	Stages of confronting Lerrick about surveillance
967
968	Verbobonc	Holly liked your have-a-drink-offer; and took you up on it at tavern
969	Verbobonc	Jail stages
970	Hommlet		Talked to Bro Smyth about Welkwood Bog
971	Hommlet		Talked to Bro Smyth about Hickory Branch
972	Hommlet		Talked to Bro Smyth about Moathouse Respawn
973	Hommlet		Talked to Bro Smyth about Verbobonc
974	Hommlet		Talked to Bro Smyth about Arena of Heroes
975	Hommlet		Talked to Bro Smyth about WotGS
976	Verbobonc	Capt. Absalom offered to send Corp. Holly with you to investigate drow; and you accepted
977	Verbobonc	Prince Zook told you to talk to Capt. Absalom about Lerrick; and you did
978	Verbobonc	Stages of Lerrick surveillance
979	Verbobonc	Wilfrick access variables
980	Hickory Branch	Noblig variables
981	Hickory Branch	Dokolb variables
982	Hickory Branch	Kallop variables
983	Hickory Branch	Boonthag variables
984	Hickory Branch	Ruff variables
985	Hickory Branch	Krunch variables
986	Hickory Branch	Hungous variables
987	Arena of Heroes	Opponent counter
988	Arena of Heroes	MOTA location placeholder (?)
989	Welkwood Bog	Captain Asaph counter
990	Welkwood Bog	Welkwood giant counter
991	Welkwood Bog	Welkwood spirit counter	
992	Encounters	Tarah picks underling stages	
993	Encounters	Slave Traders stages
994	Arena of Heroes	Battle counter
995	Encounters	Counter for slave children killed
996	Hommlet		Bing masterwork stages	
997	Verbobonc	Stages of Elysia payments		
998	Verbobonc	Stages of Jenna payments	
999	Verbobonc	Drow killed in Verbobonc
__________________
SUPER MODERATOR, Circle of Eight Forums

Last edited by Gaear; 1 Day Ago at 10:22 PM.
Gaear is online now   Reply With Quote
Old June 2nd, 2008   #8
thearioch
Need More Cowbell
 
thearioch's Avatar
 
Join Date: Sep 2007
Posts: 178
Re: ToEE Global Flags and Variables

FMyI, are the flags and variables located in a known file -- I looked, but could not find. Or are all flags and variables zeroed out at the start of a game and only accessed through the array objects? If so, I would assume that fixed values of the flags and variables exist o't within the saved game files.

--thearioch
thearioch is offline   Reply With Quote
Old June 2nd, 2008   #9
Shiningted
Gophers, consarn it!
 
Shiningted's Avatar
 
Join Date: Oct 2004
Location: Sydney
Posts: 9,553
Re: ToEE Global Flags and Variables

Not a file we have ever seen, no. And yes, they are almost certainly contained in saved games.
Shiningted is offline   Reply With Quote
Old June 3rd, 2008   #10
thearioch
Need More Cowbell
 
thearioch's Avatar
 
Join Date: Sep 2007
Posts: 178
Re: ToEE Global Flags and Variables

So the lists we have are basically ones painstakingly extracted and pieced together by individual effort? Or has anyone used a set of grep-like tools/scripts to parse the dlg etc. files automatically?

Just curious, 'cause I'll write the tools myself if nobody has done it that way before.

--thearioch
thearioch is offline   Reply With Quote
Old June 3rd, 2008   #11
Shiningted
Gophers, consarn it!
 
Shiningted's Avatar
 
Join Date: Oct 2004
Location: Sydney
Posts: 9,553
Re: ToEE Global Flags and Variables

I'll say "painfully extracted and pieced together", afaik.

Tools are always welcome
Shiningted is offline   Reply With Quote
Old June 3rd, 2008   #12
thearioch
Need More Cowbell
 
thearioch's Avatar
 
Join Date: Sep 2007
Posts: 178
Re: ToEE Global Flags and Variables

Is there any preferred programming/scripting language? For compiled code I'm pretty much C++ (I like Assembler, but I'd be hard pressed to justify learning Intel Assembly for modding ). I usually use BASH of KSHELL for scripting, but I've been wanting to try PERL, and it seems appropriately flexible for the tools I want to write. Also, it's probably a bit easier to read than C++. The difference is C++ will generate standalone executables while PERL has to be installed (but is free). Any preference, or should I just use whatever I think fits?

--thearioch
thearioch is offline   Reply With Quote
Old June 6th, 2008   #13
rbc
Shoggoth
 
Join Date: Aug 2007
Posts: 22
Re: ToEE Global Flags and Variables

Quote:
Originally Posted by thearioch
Is there any preferred programming/scripting language?
I'd suggest Python, on the grounds that it's already used by the game engine, so would-be modders pretty much have to learn something about it already.

Quote:
Originally Posted by thearioch
I like Assembler, but I'd be hard pressed to justify learning Intel Assembly for modding
Actually, I think if you already like assembler you should definitely learn the x86 version, so that you can muck with the things many modders would like to change but are hardcoded into the DLL. I've thought seriously about trying to learn it for this purpose, and I've never done any assembler at all.

Quote:
Originally Posted by thearioch
I've been wanting to try PERL, and it seems appropriately flexible for the tools I want to write. Also, it's probably a bit easier to read than C++.
I love Perl, but Python is even easier to read than that. It has become my favorite language for teaching programming, and any code you generate will be a place for other modders to get in-game scripting ideas.
rbc is offline   Reply With Quote
Old June 7th, 2008   #14
thearioch
Need More Cowbell
 
thearioch's Avatar
 
Join Date: Sep 2007
Posts: 178
Re: ToEE Global Flags and Variables

*Grumble* *FINE* I'll use Python .... *grumbles about missing C++-style comments*

Based on the Python page, I should be able to get some alpha-quality in just a few days....

Mind you, the tools I'm writing are to parse dlg/py files and list variables/flags/quests used so I can make some sense of things when I write a mod. With an MD5 signature, however, it should be a good sanity check to run before a release and make sure people don't use the same resources for independent mods. Unless you guys already have better resource management tools, which wouldn't surprise me.

--thearioch
thearioch is offline   Reply With Quote
Old June 7th, 2008   #15
Shiningted
Gophers, consarn it!
 
Shiningted's Avatar
 
Join Date: Oct 2004
Location: Sydney
Posts: 9,553
Re: ToEE Global Flags and Variables

If you mean "tools that combine mods into one or get different mods running together", no, we really have none, other than the Front End to get different mods running independantly. Unlike some other games (Dungeon Siege comes to mind from what the U5:L team say) you can't really have different mods running at once with ToEE: the game only recognises one protos.tab at a time, conflicting map data will cause CTDs etc. Beyond Compare is the only tool we really use for such things, although Agetian's 'proto transfer tool' (ToEEPT) also makes things much easier.
Shiningted is offline   Reply With Quote
Old June 8th, 2008   #16
thearioch
Need More Cowbell
 
thearioch's Avatar
 
Join Date: Sep 2007
Posts: 178
Re: ToEE Global Flags and Variables

Right now I'm having a hard enough time keeping my mods straight, so I'm building some tools to keep me [as] sane [as I can be ]. I keep starting down one quest/dialog, moving to another, and *bam!* I've got several incompatible versions of the same files.

As I solve my problems, I'll share the tools so we don't share the pain. I'd like to end up with a few candidates (mods and tools) worth showing the group.

And if any of this can help KotB, please let me know.

--thearioch
thearioch is offline   Reply With Quote
Old June 8th, 2008   #17
Shiningted
Gophers, consarn it!
 
Shiningted's Avatar
 
Join Date: Oct 2004
Location: Sydney
Posts: 9,553
Re: ToEE Global Flags and Variables

Thanks And write your tools in whatever language you like best - just be aware the game uses Python.
Shiningted is offline   Reply With Quote
Old June 8th, 2008   #18
Sitra Achara
Demon Lord
 
Join Date: Sep 2003
Location: Israel
Posts: 598
Re: ToEE Global Flags and Variables

Re. the flag/var list, the list above was created by going through the .py and .dlg files with a fine tooth comb. Someone already made an automated list in the past, using an existing program that I think was similar to what you're going to write (I think rufnredde is the guy), but it still lacked the actual meaning, which I think can only be done by hand. Also, this automated approach doesn't catch every single flag/var substitution, e.g. the "received wilderness encounter" flags and "heard rumor x" flags which depend on formulas (ones that are sometimes not very trivial).

By the way, if you want to make a truly useful tool, what I'd love to see is a visual dialogue tree editor that'd abstract out all the various variables and conditions to something more transparent and natural for the user. Currently, scripting unique, character/state dependent replies, not to mention meaningful branching with consequences, is a laborious pain in the ass, which in my opinion limits the amount of roleplaying and coherence we can achieve. Often when we do try to accomodate varying alignments, races, classes etc. it winds up being purely cosmetic or meaningless, with the NPC not remembering the exchange anyway. If we had a tool to efficiently and quickly create complex state machines in ToEE dialogue and scripts, I believe we could take ToEE to a whole other level of sophistication and intelligence. I'd really be grateful if you could write something like that, and would love to discuss the details of this venture further.
Sitra Achara is offline   Reply With Quote
Old June 8th, 2008   #19
Gaear
Bastard Maestro
 
Gaear's Avatar
 
Join Date: Apr 2004
Posts: 5,575
Re: ToEE Global Flags and Variables

I certainly agree with that. The current system (or sophistication of the system) primarily lends itself to the pedestrian dialogues that already dominate ToEE.
__________________
SUPER MODERATOR, Circle of Eight Forums
Gaear is online now   Reply With Quote
Old July 22nd, 2008   #20
Gaear
Bastard Maestro
 
Gaear's Avatar
 
Join Date: Apr 2004
Posts: 5,575
Re: ToEE Global Flags and Variables

Flag 283 taken for the Moathouse Ambush.
__________________
SUPER MODERATOR, Circle of Eight Forums
Gaear is online now   Reply With Quote
Old August 16th, 2008   #21
Gaear
Bastard Maestro
 
Gaear's Avatar
 
Join Date: Apr 2004
Posts: 5,575
Re: ToEE Global Flags and Variables

Staking a claim to flag #601.
__________________
SUPER MODERATOR, Circle of Eight Forums
Gaear is online now   Reply With Quote
Old August 31st, 2008   #22
Gaear
Bastard Maestro
 
Gaear's Avatar
 
Join Date: Apr 2004
Posts: 5,575
Re: ToEE Global Flags and Variables

Claiming flags 602 - 610.
__________________
SUPER MODERATOR, Circle of Eight Forums
Gaear is online now   Reply With Quote
Old January 25th, 2009   #23
Ranth
Demon Lord
 
Ranth's Avatar
 
Join Date: Jan 2008
Location: Somewhere eastern
Posts: 648
Re: ToEE Global Flags and Variables

Which global flags will be used for Welkwood Bog? I want to claim some but I do not want to re-use any for the upcoming expansion.
Ranth is offline   Reply With Quote
Old January 25th, 2009   #24
Ranth
Demon Lord
 
Ranth's Avatar
 
Join Date: Jan 2008
Location: Somewhere eastern
Posts: 648
Re: ToEE Global Flags and Variables

I would like to reserve flags 501-530 and variables 501-510 for my expansion.
Ranth is offline   Reply With Quote
Old February 11th, 2009   #25
Gaear
Bastard Maestro
 
Gaear's Avatar
 
Join Date: Apr 2004
Posts: 5,575
Re: ToEE Global Flags and Variables

Variable 998 taken and list updated.
__________________
SUPER MODERATOR, Circle of Eight Forums
Gaear is online now   Reply With Quote
Old February 13th, 2009   #26
Gaear
Bastard Maestro
 
Gaear's Avatar
 
Join Date: Apr 2004
Posts: 5,575
Re: ToEE Global Flags and Variables

Variable 997 taken and list updated.
__________________
SUPER MODERATOR, Circle of Eight Forums

Last edited by Gaear; February 18th, 2009 at 09:27 AM.
Gaear is online now   Reply With Quote
Old August 16th, 2009   #27
Ranth
Demon Lord
 
Ranth's Avatar
 
Join Date: Jan 2008
Location: Somewhere eastern
Posts: 648
Re: ToEE Global Flags and Variables

Submitting my flags for the War of the Golden Skull Expansion.

Flags:
501: Give Golden Skull to Hextor Priest
502: Invaded Homlet
503: Warlord of Homlet
504: Spoke to Hommlet Commander about Fireforge. #Not Implemented in Current Mod
505: Decide to Make Castle
506: Informed of Delko Bandits
507: Killed Delko Bandits
508: Informed of Quarry
509: Handled Quarry Problem (Through Diplomacy)
510: Handled Quarry Problem (Through Force)
511: Informed of Church Problem #Not Implemented in Current Mod
512: Killed Adderly #Not Implemented in Current Mod
513: Killed Hextor Priests
514: Good Priest in Hommlet #Not Implemented in Current Mod
515: Hextor Priests in Hommlet #Not Implemented in Current Mod
516: Made Fireforge Town Blacksmith #Not Implemented in Current Mod
517: Upgraded Guards (Good or Evil) #Not Implemented in Current Mod
518: Castle is Complete
519: Give Golden Skull to Burne (Agree to Scout Road)
520: Defeated Wizard Before Hommlet Invasion or Hextor Priest
521: Become Lord of Hommlet
522: Informed of Invasion Plans by Hextor Priest
523: Informed Burne of Hextor Invasion Plot



Variables
501: Counter of Hommlet Invaders Killed. When it Reaches 7 the townspeople make you Lord. Used in Ranths_Spawner.py and all san_dying of Wakefield (py00454 san_dying shared by all Invaders)
502 Counter for Hextor Priests Killed in their Church. When 4 die, it tells PC about Hommlet Invasion. Used in Ranths_Spawner.py and all san_dying of Hextor Priest (py00339 san_dying shared by all Invaders)
Ranth is offline   Reply With Quote
Old August 16th, 2009   #28
Shiningted
Gophers, consarn it!
 
Shiningted's Avatar
 
Join Date: Oct 2004
Location: Sydney
Posts: 9,553
Re: ToEE Global Flags and Variables

I've updated the lists, but you've barely scratched the 'Reserved for Ranth' variables - please keep modding
Shiningted is offline   Reply With Quote
Old August 18th, 2009   #29
GuardianAngel82
2 Ugly 2 Die
 
GuardianAngel82's Avatar
 
Join Date: Oct 2007
Location: Houston, Texas
Posts: 2,502
Re: ToEE Global Flags and Variables

Quote:
Originally Posted by Shiningted View Post
I've updated the lists, but you've barely scratched the 'Reserved for Ranth' variables - please keep modding
That sounds like a trick...
__________________
I'm the one who's still with me when the rest of you are gone...
GuardianAngel82 is offline   Reply With Quote
Old September 19th, 2009   #30
Sitra Achara
Demon Lord
 
Join Date: Sep 2003
Location: Israel
Posts: 598
Re: ToEE Global Flags and Variables

Gaear, could you add the 'where it is used' column to the list here?

The idea was to document where flags and variables are used, because messing with flags without knowing where and how they are used elsewhere can lead to trouble.
Sitra Achara is offline   Reply With Quote
Reply



Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 04:14 PM.
Our Host!


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Circle of Eight Design by Ian Miles "Sol Invictus" Cheong