[MudWalker] Script Prob

Kevin Reid kpreid
Wed Jun 23 05:52:11 PDT 2004


Frederic De Pauw <teufteuf45 at hotmail.com> wrote:

> @@Player = arg[1]
> @@do
> @@if dir == West then
> @@westshoot = Player
> @@elseif dir == East then
> @@eastshoot = Player
> @@elseif dir == South then
> @@southshoot = Player
> @@elseif dir == North then
> @@northshoot = Player
> @@elseif dir == Up then
> @@upshoot = player
> @@elseif dir == Down then
> @@downshoot = Player
> @@end
> @@end

Unless you've created variables named West, East, etc., you need to
quote that text.

  @@if dir == "West"

Also, '@@upshoot = player' has a lowercase p, which refers to a
different variable than Player.

The do/end is unnecessary.

-- 
Kevin Reid                            <http://homepage.mac.com/kpreid/>



More information about the MudWalker mailing list