Home » SIRTECH CLASSICS » Jagged Alliance: Unfinished Business » Tools and Guides Repository (Archive) » NPC scripting info  () 1 Vote
Re: NPC scripting info[message #188187] Tue, 10 June 2008 18:29 Go to previous messageGo to previous message
the scorpion

 
Messages:1834
Registered:September 2004
Location: CH
addition:

not all NPC actions can be done by all bodytypes.

If an action doesn't work despite all conditions being met, try assigning a fighting bodytpye (e.g. reg male, reg female) to the character in question using proedit

addition:
some npc actions (e.g. action 8, running, or action 3 opening closest door, or action 150 teleporting) are used in conjunction with movement (see earlier the explanations on movement)

teleporting needs no path from one grid to the other.

the activation of these actions may slightly differ from script to script and according to which programme you use.

addition:
Dual-use scripts:

The scripts 160-196 are used for deidranna-elliot cut scenes:

Elliot Record Deidranna Record

Event: Omerta 180 160
Event: Drassen 181 161 15
Event: Cambria 182 162
Event: Alma 183 163
Event: Grumm 184 164
Event: Chitzena 185 165
Event: NW sam site 186 166
Event: NE sam site 187 167
Event: Central sam site 188 168 57
Event: Sent Flowers 189 169
Event: Won back a town 190 170 70
Event: Interrogation 191 171 73
Event: lose support scifi 192 172 101
Event: Skyrider 193 173 109
Event: Madlab Quest 194 174 113
Event: approach meduna 195 175
Event: Balime 196 176


however, current prof.dat's go up to slot 169. (Mods like Demise of Man may have even more slots, but demise of man also has the possibility to use "alternate npc scripts" so these slots don't conflict in DoM)
This means, for example, that your script for character 163's npc interaction is the same script that is used for deidranna during the "alma" cut scene. So you're not supposed to carelessly overwrite it in order to change slot 163's behaviour. Rather "add" your records for slot 163 after the records needed for the cut scene. According to my observations, these records ARE used and not, as we coudl suspect, be ignored.
Remark to this example: slot 163 might be used for vehicles or other "invisible" profiles. Handle with care times two...

Report message to a moderator

Sergeant Major
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: JSD file structure and misc info
Next Topic: Creating a gun tutorial (re-post)
Goto Forum:
  


Current Time: Tue Feb 11 17:19:58 GMT+2 2025

Total time taken to generate the page: 0.00862 seconds