View/Edit #12:@remove-feature @rmfeature

Switch to edit mode.

Name(s): @remove-feature @rmfeature
1:  "Usage:  @rmfeature <feature object(s)>"
2:  "Remove one or more objects from your .features list."
3:  set_task_perms(player)
4:  if (dobjstr)
5:    features = player.features
6:    for dobjstr in (args)
7:      dobj = this:my_match_object(dobjstr)
8:      if (!valid(dobj))
9:        dobj = $string_utils:match(dobjstr, features, "name", features, "aliases")
10:     endif
11:     if (!$command_utils:object_match_failed(dobj, dobjstr))
12:       if (dobj in features)
13:         player:remove_feature(dobj)
14:         player:tell(dobj, " (", dobj.name, ") removed from your features list.")
15:       else
16:         player:tell(dobjstr, " is not one of your features.")
17:       endif
18:     endif
19:     $command_utils:suspend_if_needed()
20:   endfor
21: else
22:   player:tell("Usage:  @remove-feature &lt;object(s)&gt;")
23: endif
24: "Last modified by Dax (#789) on Thu Nov  8 11:38:30 2001 MST."

Verb arguments: any none none
Verb perms: Readable NOT-Debug
Verb owned by: Slacker (#55)

You are not logged in.

[home | help | who | search | setup | code]