Changeset 144

Show
Ignore:
Timestamp:
04/26/08 19:44:59 (23 months ago)
Author:
thib
Message:

ajout de l'attribut target à l'action narration

Location:
adventure
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • adventure/cave.xml

    r131 r144  
    3636         
    3737            <commands> 
    38                 <command name="look at %self%"><narration> A drunk man with a bottle </narration></command> 
     38                <command name="look at %self%"><narration target="actor"> A drunk man with a bottle </narration></command> 
    3939                <command name="talk to %self%" signal="Bottle_taken"><say> ...! </say></command> 
    4040                <command name="hit %self%"><narration> He didn't move... Don't drink as much as him...</narration></command> 
     
    7171        <thing name="fire"> 
    7272            <commands> 
    73                 <command name="look at %self%"><narration>A wood fire...</narration></command> 
     73                <command name="look at %self%"><narration target="actor">A wood fire...</narration></command> 
    7474            </commands> 
    7575        </thing> 
     
    8383             
    8484            <commands> 
    85                 <command name="look at %self%"><narration>An ugly rat</narration></command> 
     85                <command name="look at %self%"><narration target="actor">An ugly rat</narration></command> 
    8686                <command name="use %s on %self%" objects="bottle"> 
    8787                    <use target="actor">bottle</use> 
  • adventure/thing.py

    r143 r144  
    113113        #   <narration>text</narration> 
    114114        elif action['name'] == 'narration': 
    115             self.place.broadcast_message(None, params) 
     115            if target: 
     116                target.send_message(None, params) 
     117            else: 
     118                self.place.broadcast_message(None, params) 
    116119         
    117120        #   <follow [target="actor|self|name"] /> 
  • adventure/tower/tower.xml

    r143 r144  
    2020         
    2121            <commands> 
    22                 <command name="look at %self%"><narration> A little cat </narration></command> 
     22                <command name="look at %self%"><narration target="actor"> A little cat </narration></command> 
    2323                <command name="talk to %self%"><say> Meow? </say></command> 
    2424                <command name="hit %self%"> 
     
    5959             
    6060            <commands> 
    61                 <command name="look at %self%"><narration>A frog...</narration></command> 
     61                <command name="look at %self%"><narration target="actor">A frog...</narration></command> 
    6262                <command name="talk to %self%"><say>Koa!</say><narration>Frog are speechless, boy...</narration></command> 
    6363                <command signal="Fear"> 
     
    8181             
    8282            <commands> 
    83                 <command name="look at %self%"><say>Why are you looking at me?</say></command> 
     83                <command name="look at %self%" target="actor"><say>Why are you looking at me?</say></command> 
    8484                <command name="talk to %self%"><signal target="Cat">Is_kitty_here</signal></command> 
    8585                <command signal="Is_kitty_here:Failed"><say>No, I won't open the door.</say></command> 
     
    165165            <commands> 
    166166                <command name="look at %self%"> 
    167                     <narration>You're used to see ugly spiders. This one isn't.</narration> 
     167                    <narration target="actor">You're used to see ugly spiders. This one isn't.</narration> 
    168168                </command> 
    169169                <command name="hit %self%">