Looking for some info about @Param use

Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!

Moderator: MacroQuest Developers

antithott
orc pawn
orc pawn
Posts: 15
Joined: Mon May 19, 2003 6:15 am

Looking for some info about @Param use

Post by antithott » Mon Dec 15, 2003 12:14 pm

My problem is :
How do i get Mq to read 2 words in a tell using @Param commands?


@Param1 is the Sender of the tell
@Param2 is the first word in the tell, hence the command

Now i tryed to use @Param3 to get the next word for this use but it dont work.. So my question is what do i need to put in to make it able to read the 2nd word in a tell

Falco72
a hill giant
a hill giant
Posts: 215
Joined: Fri Sep 26, 2003 3:24 am

Post by Falco72 » Mon Dec 15, 2003 12:24 pm

@Param1 is the Sender
@Param2 is THE WHOLE TEXT that is sent via /tell

You can take out every single word in the tell using the $arg() command, like:

Code: Select all

$arg(@Param2,1)
to take the first word and/or

Code: Select all

$arg(@Param2,2)
for the second one and so on....