[MudWalker] Script Prob

Frederic De Pauw teufteuf45
Mon Jun 21 03:45:23 PDT 2004


Hello,
I'm having little trouble with a script, and can't get why
It is divided into 3 parts:

1st : (.*) From here you see

      Script: @@dir = arg[1]    (Will be West, East, South etc)

2nd:   (Red Team) Player

          Script :
@@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


3: Aliasing for example 'ee' to
shoot east $$(eastshoot)


----
The 1st script work good, but i get a problem with the second..
It match the text cuz if i send a commend before the ifs ex: 'say &&(dir) 
&&(player)'
i'll get the good answers but it seems that the ifs don't work, like if it 
didn't
recognize dir variable as one of the dirs.. (althoug dir is one)
Is it another thing than == when if used with strings or sthg else ??

Fred

_________________________________________________________________
Vous voulez acheter un nouveau PC ? Venez voir par ici...? 
http://www.fr.msn.be/shopping/dell_bis/





More information about the MudWalker mailing list