Custom Item Error
Author | Topic: Custom Item Error |
---|---|
Apprentice
Member # 6245
|
written Wednesday, August 24 2005 06:25
Profile
I just started using the BOA editor.I was doing preety well while using default items etc. But when I tried to create custom items I ran into problems. First of all i tried a few samples. But they bever came up in the editor. here's one. begindefineitem 455; clear; it_name = "LONGSWORD"; it_full_name = "SWORD OF TRUTH"; it_variety = 1; // 1-handed weapon. it_damage_per_level = 8; it_bonus = 5; it_protection = 2; it_floor_which_sheet = 1004; it_floor_which_icon = 0; it_inventory_icon = 0; it_icon_adjust = 0; it_ability_1 = 22; // Blademaster it_ability_str_1 = 5; it_ability_2 = 25; // Pathfinder it_ability_str_2 = 5; it_ability_3 = 86; // Regenerate. The more str, the more is healed. it_ability_str_3 = 5; it_ability_4 = 61; // Affect action points, +[0 to str] each turn it_ability_str_4 = 4; it_value = 5000; it_weight = 20; it_identified = 1; it_magic = 1; The items never show up in the add items menu. Also i've been trying to create Spellshards,Mind Crystals and The Orb of Thralini.I figured out the Orb but couldn't get the others. Posts: 2 | Registered: Wednesday, August 24 2005 07:00 |
Master
Member # 5977
|
written Wednesday, August 24 2005 07:03
Profile
Homepage
I'm not a star with these things, but as they don't even come up in the editor, I suspect you put it in the wrong file. These item, terrain etc. definitons, should go into the scenario data text file. For example: my scenario FILE is called: "rivers.txt". My scenario DATAFILE is called: "riversdata.txt" (so make a file which has the same name as the scenario text file, but put "data" behind it). Are you sure you made the last file and put the item definitions in it? if this doesn't work and you did create the file and everything's all right, the editor should give an error, saying what's wrong. I suggest first trying with the data file, and then see if you get errors. (By the way, are you usinbg a Mac or Windows (it doesn't matter, I'm just curious)) [ Wednesday, August 24, 2005 07:05: Message edited by: Thralni, emperor of Riverrod ] -------------------- Play and rate my scenarios: Where the rivers meet View my upcoming scenario: The Nephil Search: Escape. Give us your drek! Posts: 3029 | Registered: Saturday, June 18 2005 07:00 |
Warrior
Member # 2796
|
written Wednesday, August 24 2005 09:46
Profile
Hi, I'm confused! (so what is new) I looked at the G1004 graphic file and "it_floor_which_sheet = 1004; it_floor_which_icon = 0; " looks to me like a spear or pike. I would try not using "it_ability_x" and it's associated "str" just to see if the problem is in this area. Just trying to help. gcmaxxon -------------------- quote: Posts: 97 | Registered: Wednesday, March 19 2003 08:00 |
Off With Their Heads
Member # 4045
|
written Wednesday, August 24 2005 10:06
Profile
Homepage
I'm willing to bet that Thralni/Marvin was right. The calls are likely not in the right place. As far as Mind Crystals, you're going to need a very simple script. Give the item ability 208, and then link to a state that uses the call alter_stat. This is what I used for the script for a Mind Crystal in Bahssikava (altered slightly to reflect your situation): As for spellshards, you'll need to do the same sort of thing, but you'll want 206 (or possibly 219) — and good luck with anything that targets multiple creatures, because that will be virtually impossible. [ Wednesday, August 24, 2005 10:07: 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 # 6245
|
written Wednesday, August 24 2005 23:35
Profile
Thanks you guys were a great help. By the way I corrected the item graphic. The mind crystal's working fine too. Trying out the spellshard now. But the items still didn't come in the list. It kept showing Unused. I finally deleted and reinstalled the editor. Everything's fine now. P.S I'm using a Windows [ Wednesday, August 24, 2005 23:43: Message edited by: adds ] Posts: 2 | Registered: Wednesday, August 24 2005 07:00 |