Ignore:
Timestamp:
02/17/08 18:54:27 (4 years ago)
Author:
james
Message:

exciting times

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/en/complex_love.tcl

    r770 r891  
    1414############################################################################### 
    1515 
    16 bMotion_plugin_add_complex "love" "(i )?(think )?(you are|you're )?(love|luv|wov|wuv|luvly|lovely)( you)? %botnicks" 100 bMotion_plugin_complex_love "en" 
     16bMotion_plugin_add_complex "love" "i (love|luv|wov|wuv|luvly|lovely) (you,? %botnicks|%botnicks)" 100 bMotion_plugin_complex_love "en" 
     17bMotion_plugin_add_complex "love2" "i think (you are|you're) (wuvly|luvly|lovely),? %botnicks" 100 bMotion_plugin_complex_love "en" 
     18bMotion_plugin_add_complex "love3" "i think %botnicks is (wuvly|luvly|lovely)" 100 bMotion_plugin_complex_love "en" 
    1719 
    1820proc bMotion_plugin_complex_love { nick host handle channel text } { 
    1921        global mood 
    2022 
    21   if {![bMotionLike $nick $host]} { 
    22     frightened $nick $channel 
    23     return 1 
    24   } 
     23        # people we don't like can be told where to shove it 
     24        # but we'll let them get a bit of friendship as a result 
     25        if {![bMotionIsFriend $nick]} { 
     26                bMotionDoAction $channel $nick "%VAR{love_failed}" 
     27                driftFriendship $nick 4 
     28                return 1 
     29        } 
    2530 
    26   driftFriendship $nick 4 
     31        driftFriendship $nick 8  
     32        # people of the wrong gender get the platonic treatment 
     33        if {![bMotionLike $nick $host]} { 
     34                bMotionDoAction $channel $nick "%VAR{love_like}" 
     35                return 1 
     36        } 
    2737 
    28   if {$mood(happy) < 15 && $mood(lonely) < 5} { 
    29     bMotionDoAction $channel [bMotionGetRealName $nick $host] "%VAR{loveresponses}" 
    30     bMotionGetHappy 
    31     bMotionGetUnLonely 
     38        if {$mood(happy) < 15 && $mood(lonely) < 5} { 
     39                bMotionDoAction $channel [bMotionGetRealName $nick $host] "%VAR{loveresponses}" 
     40                bMotionGetHappy 
     41                bMotionGetUnLonely 
    3242                bMotion_plugins_settings_set "system" "lastdonefor" $channel "" $nick 
    33     return 1 
    34   } else { 
    35     bMotionDoAction $channel "" "hehe, want to go out on a date someplace? :)" 
    36     set mood(happy) [expr $mood(happy) - 10] 
     43                return 1 
     44        } else { 
     45                bMotionDoAction $channel "" "hehe, want to go out on a date someplace? :)" 
     46                set mood(happy) [expr $mood(happy) - 10] 
    3747                bMotion_plugins_settings_set "system" "lastdonefor" $channel "" $nick 
    38     return 1 
    39   } 
     48                return 1 
     49        } 
    4050} 
     51 
     52bMotion_abstract_register "love_like" { 
     53        "i love you %%, as a friend" 
     54        "ok" 
     55        "/<3 %% as a friend" 
     56        "%VAR{smiles}" 
     57} 
     58 
     59bMotion_abstract_register "love_failed" { 
     60        "get away from me" 
     61        "/pushes %% away" 
     62        "shame, because i think you're a smelly %VAR{bodypart}" 
     63        "go away" 
     64        "shove off you %VAR{PROM}" 
     65} 
     66 
Note: See TracChangeset for help on using the changeset viewer.