Fallout2 Opcode Playground

Opcodes: 8000-801F, 8020-803F, 8040-805F,
8060-807F, 8080-809F, 80A0-80BF, 80C0-80DF,
80E0-80FF, 8100-811F, 8120-813F, 8140-8155
 
List Opcodes:Used in Fallout 2Named
Known to DecompilerDescribed

Descriptions for 8121

Opcode8121, Answer
>> subfunction   Answer

Author: Wasteland Ghost

08.02.05 15:38:57

Синтаксис оригинального компилятора:
void giQ_Option(int iq_test, int msg_list, int msg_num, procedure target, int reaction) - вывести вариант ответа в диалоге
Аргументы:
iq_test - ограничитель интеллекта (если отрицательный, то условие означает "интеллект меньше или равен", если положительный - "больше или равен")
msg_list - номер файла msg
msg_num - номер строки в файле msg
target - процедура, к которой осуществляется переход при выборе соответствующего ответа
reaction - эмоциональная реакция (см. DEFINE.H):
GOOD_REACTION (49)
NEUTRAL_REACTION (50)
BAD_REACTION (51)
Author: legacy information

25.06.02 15:23:49

Answer(int,scrnum,str,funcnum,parm1) Used to display a user-choosable answer.
  • int - the min intelligence to be able to choose this answer. A range of 7 can use the answer (Thus, with a value of '2', chars with INT 2-8 could choose that answer). The commonly used values are:     -3 - for Low-INT chars      4 - for average and above      7 or 8 - for high-INT chars.

    c Temaperacl, from Duck And Cover forum

    Int: When Int is positive (1 to 10), then this means "player has Int or equal", so 4 means that the player requires 4 int or more to see this answer option. When Int is negative (-1 to -9), this means that the player needs ot have less or equal. So -3 means "player has 3 of Int or less" Parm1: This is with the Empathy Perk. 50 = Normal reaction, 51 = "NPC will like", 49 = "NPC will not like". This actually only has 2 effects: the colour highlight of the text before enterting a node, and the change of attitude if the NPC is a talking head. Given this had more of an effect (ie piss the people off), then it would of been refered and modifyable through an SVAR[], which it seems not to do, as otherwise Lynette would of used that to determine if you pissed her off... But then again maybe the programmer who did Lynnette didn't know you could of done it, so that's still nto really necesserely true.. Hargh...

    c Red, from Duck And Cover forum

  • Author: legacy information

    22.06.02 13:29:01

    Ответ игрока формируется последовательностью <условие включения ответа в список ответов (например -3 для дегенерата или 4 для нормального)>;<Строка ответа>;<Номер функции, выполняемой при выборе ответа (чаще всего это номер функции, описывающей следующий диалог или пустой функции), отсчитываемой от нуля по таблице функций, помещенной в начале скрипта>;32h;121.