|
Anrok Apprentice
Joined: 19 Nov 2010 Posts: 119
|
|
|
|
Fizgar Magician
Joined: 07 Feb 2002 Posts: 333 Location: Central Virginia
|
Posted: Fri Dec 31, 2010 12:10 am |
Use #call instead of #eval
|
|
_________________ Windows Vista Home Premium SP2 32-bit
AMD Athlon Dual Core 4400+ 2.31 GHz
3 GB RAM
CMUD 3.34 |
|
|
|
Anrok Apprentice
Joined: 19 Nov 2010 Posts: 119
|
Posted: Fri Dec 31, 2010 1:16 am |
thank you Fizgar, you rock : )
|
|
|
|
Anrok Apprentice
Joined: 19 Nov 2010 Posts: 119
|
Posted: Fri Dec 31, 2010 1:24 am |
Could you maybe also recommend me the best way to carry over my $variable to an #event that i #raise from within the same script?
Right now i use $variable=value at the begining of the script, then use it throughout the script, then at the end of the script i variable=$variable;#EVENT myEvent {$newvariable=%pop(@variable);do stuff};#RAISE myEvent
Is this acceptable ?
Thanks! |
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Fri Dec 31, 2010 3:44 am |
You can pass an argument to #RAISE:
The first argument can be accessed within the event as %1, etc. |
|
|
|
|
|