View Single Post
  #2  
Old 06-07-2004, 03:49 PM
x-scythe
Discordant
 
Join Date: Jun 2003
Posts: 449
Default

might wanna add fully enclose the quest actions in { }

example:
Code:
sub EVENT_SAY
{
 if($text=~/Hail/i){quest::say("Well met $name.");}
}
the whole "meat" under EVENT_SAY is enclosed in { } and quest actions are also enclosed in { }. however if there are multiple quest actions after an if statement you can enclose them all in one pair of { }.
like so:
Code:
sub EVENT_ITEM
{
 if($itemcount{xx} == 1){quest::say("Well done! You have retrieved my knife!");
                                         quest::summonitem("xx");}
}
notice how in the above both quest actions are in the same set of { } AND the entire "meat" is enclosed it a set of { }.

PS: great guide tho!
PSS: meat is a funny word eh?
Reply With Quote