free beer for the first to remember ...[message #231768]
|
Thu, 27 August 2009 01:21
|
|
Logisteric |
![](http://thepit.ja-galaxy-forum.com/images/avatars/default/mistery_man.png) ![](/images/ranks/captain.png) |
Messages:3199
Registered:December 2008 Location: B |
|
|
... how you (uc-mod-squad) did it.
when i open any *.npc-file with the npc-beta-editor i get triggers from vanilla, ub and uc - so how on earth did you manage to add those uc-triggers.
gentlemen, turn your brains up-side-down - even stop drinking for a week (if it helps)and don't tell me you harcoded them AND have lost the documentation how you did it.
:cheers: :cheers: :cheers:
Logisteric
Report message to a moderator
|
Captain
|
|
|
|
|
|
|
Re: free beer for the first to remember ...[message #231783]
|
Thu, 27 August 2009 03:02 ![Go to previous message Go to previous message](/theme/Bear_Classic_Brown/images/up.png)
|
|
Scheinworld |
![](http://thepit.ja-galaxy-forum.com/images/avatars/Slay2.jpg) ![](/images/ranks/first_sergeant.png) |
Messages:960
Registered:December 2007 Location: Baltic Sea, Germany |
|
|
I can just satisfy your first wish.
[Triggers]
// These triggers are used universally for both True, False and Set situations.
// -------------
0;Omerta Liberated
1;Drassen Liberated
2;Sanmona Liberated
3;Cambria Liberated
4;Alma Liberated
5;Grumm Liberated
6;Tixa Liberated
7;Chitzena Liberated
8;Estoni Liberated
9;Balime Liberated
10;Orta Liberated
11;Meduna Liberated
12;Pacos approched
13;Fatima Read note
14;Fatima Walked away from player
15;Dimitri (#60) is dead
16;Fatima responded to Dimitri's supprise
17;Carlo's exclaimed 'no one moves'
18;Fatima described note
19;Fatima arrives at final dest
20;Dimitri said Fatima has proof
21;Miguel overheard conversation
22;Miguel asked for letter
23;Miguel read note
24;Ira comment on Miguel reading note
25;Rebels are enemies
26;Fatima spoken to before given note
27;Start Drassen quest
28;Miguel offered Ira
29;Pacos hurt/Killed
30;Pacos is in A10
31;Current Sector is safe
32;Bobby Ray's Shipment in transit
33;Bobby Ray's Shipment in Drassen
34;33 is TRUE and it arrived within 2 hours
35;33 is TRUE 34 is false more then 2 hours
36;Player has realized part of shipment is missing
37;36 is TRUE and Pablo was injured by player
38;Pablo admitted theft
39;Pablo returned goods, set 37 false
40;Miguel will join team
41;Gave some cash to Pablo
42;Skyrider is currently under escort
43;Skyrider is close to his chopper in Drassen
44;Skyrider explained deal
45;Player has clicked on Heli in Mapscreen at least once
46;NPC is owed money
47;Npc is wounded
48;Npc was wounded by Player
49;Father was told of food shortage
50;Ira is not in sector
51;Ira is doing the talking
52;Food quest over
53;Pablo stole something from last shipment
54;Last shipment crashed
55;Last shipment went to wrong airport
56;24 hours elapsed since notified that shipment went to wrong airport
57;Lost package arrived with damaged goods. 56 to False
58;Lost package is lost permanently. Turn 56 False
59;Next package can (random) be lost
60;Next package can (random) be delayed
61;Package is medium sized
62;Package is largesized
63;Doreen has conscience
64;Player Spoke to Gordon
65;Ira is still npc and in A10-2(hasn't joined)
66;Dynamo asked for first aid
67;Dynamo can be recruited
68;Npc is bleeding
69;Shank wants to join
70;NPC is bleeding
71;Player Team has head & Carmen in San Mona
72;Player Team has head & Carmen in Cambria
73;Player Team has head & Carmen in Drassen
74;Father is drunk
75;Player has wounded mercs within 8 tiles of NPC
76;1 & only 1 merc wounded within 8 tiles of NPC
77;More then 1 wounded merc within 8 tiles of NPC
78;Brenda is in the store
79;Brenda is Dead
80;Brenda is at home
81;NPC is an enemy
82;Speaker Strength >= 84 and < 3 males present
83;Speaker Strength >= 84 and at least 3 males present
84;Hans lets ou see Tony
85;Hans is standing on 13523
86;Tony isnt available Today
87;Female is speaking to NPC
88;Player has enjoyed the Brothel
89;Carla is available
90;Cindy is available
91;Bambi is available
92;No girls is available
93;Player waited for girls
94;Player paid right amount of money
95;Mercs walked by goon
96;More thean 1 merc present within 3 tiles of NPC
97;At least 1 merc present withing 3 tiles of NPC
98;Kingping expectingh visit from player
99;Darren expecting money from player
100;Player within 5 tiles and NPC is visible
101;Carmen is in San Mona
102;Player Spoke to Carmen
103;KingPin knows about stolen money
104;Player gave money back to KingPin
105;Frank was given the money ( not to buy booze )
106;Player was told about KingPin watching fights
107;Past club closing time and Darren warned Player. (reset every day)
108;Joey is EPC
109;Joey is in C5
110;Joey is within 5 tiles of Martha(109) in sector G8
111;Joey is Dead!
112;At least one player merc within 5 tiles of Martha
113;Spike is occuping tile 9817
114;Angel offered vest
115;Angel sold vest
116;Maria is EPC
117;Maria is EPC and inside leather Shop
118;Player wants to buy vest
119;Maria rescue was noticed by KingPin goons and Kingpin now enemy
120;Angel left deed on counter
121;Maria quest over
122;Player bandaged NPC today
123;Doreen revealed allegiance to Queen
124;Pablo should not steal from player
125;Player shipment arrived but loyalty to low, so it left
126;Helicopter is in working condition
127;Player is giving amount of money >= $1000
128;Player is giving amount less than $1000
129;Waldo agreed to fix helicopter( heli is damaged )
130;Helicopter was destroyed
131;Waldo told us about heli pilot
132;Father told us about Deidranna killing sick people
133;Father told us about Chivaldori family
134;Father told us about creatures
135;Loyalty is OK
136;Loyalty is Low
137;Loyalty is High
138;Player doing poorly
139;Player gave valid head to Carmen
140;Current sector is G9(Cambria)
141;Current sector is C5(SanMona)
142;Current sector is C13(Drassen
143;Carmen has at least $10,000 on him
144;Player has Slay on team for over 48 hours
145;Carmen is suspicous about slay
146;Slay is in current sector
147;Carmen gave us final warning
148;Vince has explained that he has to charge
149;Vince is expecting cash (reset everyday)
150;Player stole some medical supplies once
151;Player stole some medical supplies again
152;Vince can be recruited
153;Vince is currently doctoring
154;Vince was recruited
155;Slay offered deal
156;All terrorists killed
158;Maria left in wrong sector
159;Skyrider left in wrong sector
160;Joey left in wrong sector
161;John left in wrong sector
162;Mary left in wrong sector
163;Walter was bribed
164;Shank(67) is part of squad but not speaker
165;Maddog spoken to
166;Jake told us about shank
167;Shank(67) is not in sector
168;Bloodcat quest on for more than 2 days
169;Effective threat made to Armand
170;Queen is DEAD!
171;Speaker is with Aim or Aim person on squad within 10 tiles
172;Current mine is empty
173;Current mine is running out
174;Loyalty low in affiliated town (low mine production)
175;Creatures invaded current mine
176;Player LOST current mine
177;Current mine is at FULL production
178;Dynamo(66) is Speaker or within 10 tiles of speaker
179;Fred told us about creatures
180;Matt told us about creatures
181;Oswald told us about creatures
182;Calvin told us about creatures
183;Carl told us about creatures
184;Chalice stolen from museaum
185;John(118) is EPC
186;Mary(119) and John (118) are EPC's
187;Mary(119) is alive
188;Mary(119)is EPC
189;Mary(119) is bleeding
190;John(118) is alive
191;John(118) is bleeding
192;John or Mary close to airport in Drassen(B13)
193;Mary is Dead
194;Miners placed
195;Krott planning to shoot player
196;Madlab explained his situation
197;Madlab expecting a firearm
198;Madlab expecting a video camera.
199;Item condition is < 70
200;Madlab complained about bad firearm.
201;Madlab complained about bad video camera.
202;Robot is ready to go!
203;First robot destroyed.
204;Madlab given a good camera.
205;Robot is ready to go a second time!
206;Second robot destroyed.
207;Mines explained to player.
208;Dynamo (#66) is in sector J9.
209;Dynamo (#66) is alive.
210;One PC hasn't fought, but is able, and less than 3 fights have occured
211;Player receiving mine income from Drassen, Cambria, Alma & Chitzena
212;Player has been to K4_b1
213;Brewster got to talk while Warden was alive
214;Warden (#103) is dead.
215;Ernest gave us the guns
216;This is the first bartender
217;This is the second bartender
218;This is the third bartender
219;This is the fourth bartender
220;Manny is a bartender.
221;Nothing is repaired yet (some stuff being worked on, nothing to give player right now)
222;Player made purchase from Howard (#125)
223;Dave sold vehicle
224;Dave's vehicle ready
225;Dave expecting cash for car
226;Dave has gas. (randomized daily)
227;Vehicle is present
228;First battle won by player
229;Robot recruited and moved
230;No club fighting allowed
231;Player already fought 3 fights today
232;Hans mentioned Joey
233;Player is doing better than 50% (Alex's function)
234;Player is doing very well (better than 80%)
235;Father is drunk and sci-fi option is on
236;Micky (#96) is drunk
237;Player has attempted to force their way into brothel
238;Rat effectively threatened 3 times
239;Player paid for two people to enter brothel
242;Player owns 2 towns including omerta
243;Player owns 3 towns including omerta
244;Player owns 4 towns including omerta
248;Fact male speaking female present
249;Fact hicks married player merc
250;Fact museum open
251;Fact brothel open
252;Fact club open
253;Fact first battle fought
254;Fact first battle being fought
255;Fact kingpin introduced self
256;Fact kingpin not in office
257;Fact dont owe kingpin money
258;Fact pc marrying daryl is Flo
261;Fact npc cowering
264;Fact top and bottom levels cleared
265;Fact top level cleared
266;Fact bottom level cleared
267;Fact need to speak nicely
268;Fact attached item before
269;Fact skyrider ever escorted
270;Fact npc not under fire
271;Fact willis heard about joey rescue
272;Fact willis gives discount
273;Fact hillbillies killed
274;Fact keith out of business
275;Fact mike available to army
276;Fact kingpin can send assassins
277;Fact estoni refuelling possible
278;Fact museum alarm went off
280;Fact maddog is speaker
282;Fact angel mentioned deed
283;Fact iggy available to army
284;Fact pc has conrads recruit opinion
289;Fact npc hostile or pissed off
291;Fact tony in building
292;Fact shank speaking
293;Fact doreen alive
294;Fact waldo alive
295;Fact perko alive
296;Fact tony alive
298;Fact vince alive
299;Fact jenny alive
302;Fact arnold alive
304;Fact rocket rifle exists
//
// -------------------
// Unfinished Business
// -------------------
//
400;[UB] Player Imported Save, Mary Dead
401;[UB] John Kulba offered to be recruited
402;[UB] Tex in game alive in store
403;[UB] Player bought something from Betty
404;[UB] Player bought 1 of Tex's videos
405;[UB] Raul's inventory changed since last visit
406;[UB] Player threatend Raul
407;[UB] Player bought something from Raul
408;[UB] Player threatened Raul
412;[UB] Player bought Barret from Raul
413;[UB] Merc say quote when talk menu closes
414;[UB] Player imported save and miguel is dead
415;[UB] Player imported save and fatima or pacos is dead
416;[UB] Player imported save and carlos is dead
417;[UB] Player imported save and ira is dead
418;[UB] Player imported save and dimitri is dead
419;[UB] Player imported save
420;[UB] Player killed all bettys bloodcats
421;[UB] Biggens on Team
422;[UB] Fan stopped
423;[UB] Biggens on team AND fan stopped
//
// ---------------
// Urban Chaos MOD
// ---------------
// These are additional triggers not used in JA2/UB.
// Note that UC might have used some of the above triggers (ID 400-) for
// a different purpose than what its description states in this file.
// These modifications are on a per-case basis but usually overwrites
// some of the triggers occupied by that NPC slot in JA2/UB if they are
// not globally used. Eg, Miguel/Rebels triggers.
//
466;[UC] Someone mentioned Postie escaped
467;[UC] Someone mentioned Bruiser Brutal
468;[UC] Someone mentioned Walter Smirnoff
472;[UC] Someone mentioned General Marco
473;[UC] Someone warned against Satan's Sons
475;[UC] Someone mentioned Bruno Stolitz and his hideout
485;[UC] Someone mentioned Miranda is held captive
487;[UC] Someone warned against Danubian police.
488;[UC] Someone mentioned Ernest Bacardi.
489;[UC] Someone mentioned Claudia Papanus.
[End]
The [Triggers] and the other variables you can find the in the "Strings" of your NPC-Editor file. Maybe you should try to contact The_Scorpion? He is an expert regarding scripting and other modding problems.
See you later; Schein
Report message to a moderator
|
|
|
|
|
|
|
|
|
|
Re: free beer for the first to remember ...[message #231856]
|
Thu, 27 August 2009 17:04 ![Go to previous message Go to previous message](/theme/Bear_Classic_Brown/images/up.png)
|
|
Khor1255 |
![](/images/ranks/sergeant_major.png) |
Messages:1817
Registered:August 2003 Location: Pleasantville, NJ |
|
|
Oh yeah, the prof.dat needs to be externalized no doubt. But there are a lot of things you can do with the .npc files. The bad part is that they don't always follow the numbers in proedit. Believe me, they don't. A list as to which ones concern which characters (and even better which quests as well) would be a great starting point. I believe it is possible for two or more characters to even use one .npc file since they are only really a set of triggers.
They only affect the hardcoded parts of their routines superficially but you can do a lot with a proper understanding of the .npc files. Unfortunately, I have no such proper understanding just a cursory knowledge.
EDIT
Oh, and Barry or Sidney don't have .npc files because they are player controlled characters. Using them as an example was not a good move on my part. Larry seems to have a special circumstance and may even have a .npc file but I am not sure. Like I said you cannot always go by the numbers.
[Updated on: Thu, 27 August 2009 17:07] by Moderator Report message to a moderator
|
Sergeant Major
|
|
|
Re: free beer for the first to remember ...[message #231857]
|
Thu, 27 August 2009 17:20 ![Go to previous message Go to previous message](/theme/Bear_Classic_Brown/images/up.png)
|
|
Logisteric |
![](http://thepit.ja-galaxy-forum.com/images/avatars/default/mistery_man.png) ![](/images/ranks/captain.png) |
Messages:3199
Registered:December 2008 Location: B |
|
|
right. i'm using a second ira for a male rpc right now. npc-files are like marines - considering themselves as 'this marine' and having a look on their labels (=###) before reporting. i think the problem is that you have 50 so called 'records' for each script. and when looking into them it seems noone (including sirtech-staff) ever figured out how they interact. i guess with a year of testing and dokumenting you get a mighty fine tool. those records are my primary suspects for messing things up. it also seems that modders twisted until they had a 90% win and then immediately forgot what they had done and never ever touched the 'finished' scripts. this also the reason, why you can't have more than 6 fully operational imps - there are only 6 hardcoded imp-slots. you may have more but they remind me to a 7-dollar-bill.
i guess it would be better if the actually used ## for the interaction - they use names, in the npc-beta-editor (the one i understand best) there is a file just to draw names from. the first step should be to c/p any info (from that file) into an ecxel-sheet (nuch better refference than a *.txt)
edith:
larry has no 049.npc or 050.npc. the first are the rebels 057-060. that one 000.npc you get when extracting seems to be a placeholder or a blueprint (don't know yet). if you are interested i sent them all to you - i'd need an email-addy (via pm) then. i opened each and everyone - there is no larry.
judith:
got a mistake - there are npc-files for deidreanna and such, but there is always stuff hardcoded (cut-scenes, elliot can't die etc)
[Updated on: Thu, 27 August 2009 17:30] by Moderator Report message to a moderator
|
Captain
|
|
|
|
|
Re: free beer for the first to remember ...[message #231972]
|
Fri, 28 August 2009 20:56
|
|
Khor1255 |
![](/images/ranks/sergeant_major.png) |
Messages:1817
Registered:August 2003 Location: Pleasantville, NJ |
|
|
I hope you do work a lot with this stuff and document what you are doing. Someone needs to codify how to alter .npc files.
Report message to a moderator
|
Sergeant Major
|
|
|