Changeset 898
- Timestamp:
- 03/27/08 06:48:16 (10 months ago)
- Location:
- trunk/modules
- Files:
-
- 2 modified
-
plugins.tcl (modified) (2 diffs)
-
settings.sample.tcl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/plugins.tcl
r884 r898 201 201 bMotion_putloglev 3 * "Looking for a complex plugin to match !$text!" 202 202 203 set bias [bMotion_setting_get "bias"] 204 if {$bias == ""} { 205 set bias 1 206 } 207 203 208 foreach key $s { 204 209 if {$key == "dummy"} { continue } … … 213 218 if [regexp -nocase $rexp $text] { 214 219 set c [rand 100] 220 set chance [expr $chance * $bias] 215 221 bMotion_putloglev 4 * "matched complex:$key, chance is $chance, c is $c" 216 222 if {$chance > $c} { -
trunk/modules/settings.sample.tcl
r869 r898 151 151 # so that it can talk to them (when they're in the same channel) 152 152 set bMotion_interbot_enable 1 153 154 # bias the output probability 155 # 0 = never trigger 156 # 1 = normal 157 # 2 = about twice as likely 158 # floating-point is fine 159 set bMotionSettings(bias) 1 153 160 154 161
