when you go directly to eval_op you don't eval_expr and the code fails on the switch statement example when it tries to eval_op("==","%random.2%","2",...); Here is the actual script that this problem was found with: Name: 'Room Check', VNum: [12700], RNum: [ 99] Trigger Intended Assignment: Rooms Trigger Type: Random , Numeric Arg: 10, Arg list: None Training/Workout Room [12729] Commands: switch %random.2% case 1 %echo% YAHHHHH break case 2 wecho YAAAAAA break default %echo% DEFAULT break done --Angus +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST