… | |
… | |
82 | |
82 | |
83 | =item $who - The cf::object::player object that initiated the dialogue. |
83 | =item $who - The cf::object::player object that initiated the dialogue. |
84 | |
84 | |
85 | =item $npc - The NPC (or magic_ear etc.) object that is being talked to. |
85 | =item $npc - The NPC (or magic_ear etc.) object that is being talked to. |
86 | |
86 | |
|
|
87 | =item $map - The map the NPC (not the player) is on. |
|
|
88 | |
87 | =item $msg - The actual message as passed to this method. |
89 | =item $msg - The actual message as passed to this method. |
88 | |
90 | |
89 | =item $match - An arrayref with previous results from C<@parse>. |
91 | =item $match - An arrayref with previous results from C<@parse>. |
90 | |
92 | |
91 | =item $state - A hashref that stores state variables associated |
93 | =item $state - A hashref that stores state variables associated |
… | |
… | |
288 | my @find; |
290 | my @find; |
289 | |
291 | |
290 | my %vars = ( |
292 | my %vars = ( |
291 | who => $self->{ob}, |
293 | who => $self->{ob}, |
292 | npc => $self->{npc}, |
294 | npc => $self->{npc}, |
|
|
295 | map => $self->{npc}->map, |
293 | state => $state, |
296 | state => $state, |
294 | flag => $flag, |
297 | flag => $flag, |
295 | msg => $msg, |
298 | msg => $msg, |
296 | match => \@match, |
299 | match => \@match, |
297 | find => \@find, |
300 | find => \@find, |