Peculiar error?
Author | Topic: Peculiar error? |
---|---|
Apprentice
Member # 5294
|
written Tuesday, April 5 2005 12:45
Profile
Homepage
Hi all, Have the following creature script (it has debug lines in it): What seems to happen is that it gets to the line 'char_take_item()' and throws the following message: 'Peculiar Error: Undefined function called'. I've been banging on this code for two days and can't figure out why it's displaying that message. Does anyone know what it means? Have I forgotten something in the script? Mike Posts: 30 | Registered: Wednesday, December 15 2004 08:00 |
...b10010b...
Member # 869
|
written Tuesday, April 5 2005 12:54
Profile
Homepage
I know what your problem is, but you won't like it. The char_take_item() call is broken. Harangue Jeff if you want it fixed. -------------------- The Empire Always Loses: This Time For Sure! Posts: 9973 | Registered: Saturday, March 30 2002 08:00 |
Apprentice
Member # 5294
|
written Wednesday, April 6 2005 14:32
Profile
Homepage
Dang. Should've checked the bugs list before posting. Any work-arounds? Also, is someone maintaining alint? When running against some scripts, it flags the following valid code: string somevar = "some val"; In fact any 'constant' string defined this way used later it also flags as an inappropriate variable.Mike Posts: 30 | Registered: Wednesday, December 15 2004 08:00 |
Off With Their Heads
Member # 4045
|
written Wednesday, April 6 2005 14:37
Profile
Homepage
Khoth is the one to talk to about Alint. Workarounds for the char_take_item bug tend to be heinous. Some combination of take_all_of_item, take_item, destroy_char_item, reward_give, and char_give_item might be able to get you what you need. I admit I haven't read your script, so I have no idea what you would need to use, but these were the calls that I mucked with while trying to work around the bug in LP. EDIT: Have you, in fact, checked that string code in BoA and made sure that it works? I've never tried doing such a thing. [ Wednesday, April 06, 2005 14:38: Message edited by: Kelandon ] -------------------- Arancaytar: Every time you ask people to compare TM and Kel, you endanger the poor, fluffy kittens. Smoo: Get ready to face the walls! Ephesos: In conclusion, yarr. Kelandon's Pink and Pretty Page!!: the authorized location for all things by me The Archive of all released BoE scenarios ever Posts: 7968 | Registered: Saturday, February 28 2004 08:00 |
Apprentice
Member # 5294
|
written Thursday, April 7 2005 12:50
Profile
Homepage
Thanks for hints. I'll see about using the destroy_char_item and the char_give_item combination to see if it will do what I need. BTW, the script posted has a slight error in the is_blocked call, I forgot the x,y params. Declaring a string constant works fine, at least in the Windows BOA version. Hopefully (since it is documented in the ed ins), it works as well in the Mac version. Mike Posts: 30 | Registered: Wednesday, December 15 2004 08:00 |