Skip to content

Commit

Permalink
dialog mod
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmitry-rudnouski committed Nov 2, 2024
1 parent 014eb50 commit b529d22
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
5 changes: 4 additions & 1 deletion data/text/english/dialog/generic.msg
Original file line number Diff line number Diff line change
Expand Up @@ -469,4 +469,7 @@
{20100}{}{There is no lock on this door.}

#added by killap
{30000}{}{You have stolen from your own tribe.}
{30000}{}{You have stolen from your own tribe.}

#dialog mod
{40000}{}{ [too stupid for this answer, end]}
11 changes: 8 additions & 3 deletions scripts_src/headers/command.h
Original file line number Diff line number Diff line change
Expand Up @@ -644,9 +644,10 @@ FLOAT_MSG_BLUE
#define num_to_num_text(x) g_mstr(2000+x)

// Option(Message Number, Node Number, IQ) ==> giQ_Option(IQ, Message Number, Node Number) -rwh2 (11/12/97)
#define GOption(x,y,z) giQ_Option(z,NAME,x,y,GOOD_REACTION)
#define NOption(x,y,z) giQ_Option(z,NAME,x,y,NEUTRAL_REACTION)
#define BOption(x,y,z) giQ_Option(z,NAME,x,y,BAD_REACTION)
#define GOption(x,y,z) if (true) then begin giQ_Option(z, NAME, x, y, GOOD_REACTION); giQ_Option((z < 2) * 20 - (z - 1), NAME, g_mstr(40000), Node999_clone, GOOD_REACTION); end else true
#define NOption(x,y,z) if (true) then begin giQ_Option(z, NAME, x, y, NEUTRAL_REACTION); giQ_Option((z < 2) * 20 - (z - 1), NAME, g_mstr(40000), Node999_clone, NEUTRAL_REACTION); end else true
#define BOption(x,y,z) if (true) then begin giQ_Option(z, NAME, x, y, BAD_REACTION); giQ_Option((z < 2) * 20 - (z - 1), NAME, g_mstr(40000), Node999_clone, BAD_REACTION); end else true

#define GLowOption(x,y) giQ_Option(LOW_IQ,NAME,x,y,GOOD_REACTION)
#define NLowOption(x,y) giQ_Option(LOW_IQ,NAME,x,y,NEUTRAL_REACTION)
#define BLowOption(x,y) giQ_Option(LOW_IQ,NAME,x,y,BAD_REACTION)
Expand Down Expand Up @@ -1350,4 +1351,8 @@ variable removed_qty;
)
#define can_be_gas_poisoned(x) ((x == dude_obj) and not (protected_from_gas(x)))

procedure Node999_clone;
procedure Node999_clone begin
end

#endif // COMMAND_H

0 comments on commit b529d22

Please sign in to comment.