Scripting Problems
Author | Topic: Scripting Problems |
---|---|
Lifecrafter
Member # 7538
|
written Thursday, October 5 2006 10:22
Profile
Homepage
I'm having some trouble with scripting. A couple of problems, at the moment. The first one is something that I've really been working around. I'll put a party in my scenario to check if there are script problems (which there often are) and it gives me an error message for a specific line. I'll quit and go check the script that it tells me to check, on the line it gives me. I count them and recount them, but for some reason, sometimes it's not accurate. I have to find the problem on my own. Then, just to make sure, I count what line it was on. Sure enough, it's not the one the game told me. I'm wondering if I'm just not counting the way it does. The other problem is with variables. I tried to apply some in to the variables section of the dialogue script, the town script, and even the scenario script. When I put a party in, it says that the word I use is an unknown command. Anyone know what to do? [ Tuesday, October 10, 2006 15:20: Message edited by: Nemesis ] -------------------- Do not provoke the turtles. They do not like being provoked. -Lenar My website: Nemesis' Refuge Posts: 743 | Registered: Friday, September 29 2006 07:00 |
Off With Their Heads
Member # 4045
|
written Thursday, October 5 2006 10:31
Profile
Homepage
For the first, see Spiderweb's bugs page, particularly under "Some Words About Error Line Numbers," which is itself slightly misleading. BoA counts line numbers the way that BBEdit (for Mac) and Crimson Editor (for Windows) do, although the actual count can be buggy. For the second, post a script and we can tell you what's wrong with it. -------------------- 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 |
Agent
Member # 27
|
written Thursday, October 5 2006 11:35
Profile
Usually an unknown command due to variables means that you didn't specify variables at the beginning of the script. You might want to check, just to make sure. Example: Posts: 1233 | Registered: Wednesday, October 3 2001 07:00 |
Agent
Member # 5814
|
written Thursday, October 5 2006 13:44
Profile
If you're having trouble pinpointing errors using line numbers, you can insert blank spaces into the script. These will move the error down. So if you get an error on line 90, you can enter two blank spaces. If the error line doesn't change, the spaces were both after line 90. If the error line changed to 91, the error is between the two spaces. If the error line changed to 92, the error line is after both blank lines. -------------------- quote: Posts: 1115 | Registered: Sunday, May 15 2005 07:00 |
Off With Their Heads
Member # 4045
|
written Thursday, October 5 2006 15:02
Profile
Homepage
By the way, Alint is one helpful addition to your debugging arsenal. I'm hosting it for Khoth. -------------------- 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 |
? Man, ? Amazing
Member # 5755
|
written Thursday, October 5 2006 17:57
Profile
Furthermore, line numbers should be counted with "word wrap" disabled. The error line was a major headache before I figured that one out. In addition to Kel's editor suggestion, I've had good luck using Editpad Lite. -------------------- quote: Posts: 4114 | Registered: Monday, April 25 2005 07:00 |
Guardian
Member # 6670
|
written Friday, October 6 2006 05:50
Profile
Homepage
I used to use Editpad, but I've switched over to Programmer's Notepad 2 for everything code related, and I'm not going back. In my opinion, it's the next best thing after an AvernumScript IDE. Once they release the documentation for making schemes on the site, I'll make one for AvernumScript. -------------------- IF I EVER BECOME AN EVIL OVERLORD: All crones with the ability to prophesy will be given free facelifts, permanents, manicures, and Donna Karan wardrobes. That should pretty well destroy their credibility. Posts: 1509 | Registered: Tuesday, January 10 2006 08:00 |
Lifecrafter
Member # 7538
|
written Friday, October 6 2006 08:07
Profile
Homepage
Okay, the variables problem is solved, I think. At least, it's leaving me alone right now. Just to make sure, is the variable 'dam' one of those reserved for another purpose? As for the line counts, well, I have to count them manually, because I'm using Simple Text for Mac. I'd get one of the text editors you guys recommended, but they won't run on my computer. (It's OS 9.1) So yeah, I basically need a new computer, or at least an upgrade eventually. Until then, things will just take forever and be inconvenient. [ Friday, October 06, 2006 08:16: Message edited by: Nemesis ] -------------------- Do not provoke the turtles. They do not like being provoked. -Lenar My website: Nemesis' Refuge Posts: 743 | Registered: Friday, September 29 2006 07:00 |
Off With Their Heads
Member # 4045
|
written Friday, October 6 2006 08:52
Profile
Homepage
BBEdit Lite is available in an OS9 version. -------------------- 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 |
Lifecrafter
Member # 7538
|
written Saturday, October 7 2006 13:57
Profile
Homepage
Okay cool. Know where I can get it? -------------------- Do not provoke the turtles. They do not like being provoked. -Lenar My website: Nemesis' Refuge Posts: 743 | Registered: Friday, September 29 2006 07:00 |
? Man, ? Amazing
Member # 5755
|
written Saturday, October 7 2006 14:24
Profile
This would be a good way to start looking.... -------------------- quote: Posts: 4114 | Registered: Monday, April 25 2005 07:00 |
Lifecrafter
Member # 7538
|
written Saturday, October 7 2006 16:18
Profile
Homepage
Oh right… thanks. Anyway… yeah, more questions, because I'm just so clueless. The first one is about animated graphics. I've got custom terrain design down, but when I put animated graphics in the scenario (even premade graphics) they don't move. The other question might be more complicated. I'm trying to initialize custom special abilities. I feel like I have it down, except for one problem: the button doesn't appear in the special abilities window. -------------------- Do not provoke the turtles. They do not like being provoked. -Lenar My website: Nemesis' Refuge Posts: 743 | Registered: Friday, September 29 2006 07:00 |
Lifecrafter
Member # 6193
|
written Saturday, October 7 2006 17:13
Profile
Homepage
After you've initialized a special ability you have to make sure to give the ability to the party. Use: change_custom_abil_uses(char,ability,ammount); As for terrain animation, make sure you've properly defined the terrain and make sure the sheet its on is properly set up. quote:I can't imagine what else could be the problem. [ Saturday, October 07, 2006 17:19: Message edited by: Lazarus. ] -------------------- Guaranteed to blow your mind. Frostbite: Get It While It's...... Hot? Posts: 900 | Registered: Monday, August 8 2005 07:00 |
Infiltrator
Member # 3040
|
written Saturday, October 7 2006 18:50
Profile
Also, if the speed is set to "fast" in the preferences, animated terrain won't be animated. -------------------- 5.0.1.0.0.0.0.1.0... Posts: 508 | Registered: Thursday, May 29 2003 07:00 |
Lifecrafter
Member # 7538
|
written Sunday, October 8 2006 13:35
Profile
Homepage
Alright then, if I want to give the ability at the beginning of the scenario, where do I put change_custom_abil_uses? I've tried putting it in LOAD_STATE, START_STATE, and START_SCEN_STATE, as well as in the numbered state where I defined the ability. I still can't figure out how to get it to work. [ Sunday, October 08, 2006 13:36: Message edited by: Nemesis ] -------------------- Do not provoke the turtles. They do not like being provoked. -Lenar My website: Nemesis' Refuge Posts: 743 | Registered: Friday, September 29 2006 07:00 |
Off With Their Heads
Member # 4045
|
written Sunday, October 8 2006 19:13
Profile
Homepage
quote:START_SCEN_STATE is the one you want. Look at Bahssikava (among others) for an example of this. -------------------- 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 |
Lifecrafter
Member # 7538
|
written Sunday, October 8 2006 20:43
Profile
Homepage
I've been using Bahssikava and Canopy as references for it, but sometimes I have trouble discerning between the stuff that I need and the stuff that I don't. If it helps, I can post the codes I've tried writing out… -------------------- Do not provoke the turtles. They do not like being provoked. -Lenar My website: Nemesis' Refuge Posts: 743 | Registered: Friday, September 29 2006 07:00 |
Off With Their Heads
Member # 4045
|
written Sunday, October 8 2006 20:54
Profile
Homepage
Yeah, post the code. It's just about impossible to debug otherwise. Bear in mind that you have to give the special ability to everyone if you want everyone to be able to use it. -------------------- 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 |
Lifecrafter
Member # 7538
|
written Sunday, October 8 2006 21:23
Profile
Homepage
Alright, here it is. Warning: May contain cheater tips, for if I should ever finish the scenario. Also, since I went ahead and posted the whole scenario script, I'm open to suggestions as far as recommended changes, whether it's because I did something else wrong and just don't know it yet (quite likely) or if I made anything cheap. Bear in mind, use of the custom ability "Invoke Spell" is based upon prior knowledge of the existance of the "magic words", so to speak. Just let me know if I'm being too cheap or whatever. -------------------- Do not provoke the turtles. They do not like being provoked. -Lenar My website: Nemesis' Refuge Posts: 743 | Registered: Friday, September 29 2006 07:00 |