Jump to content

Isaac

Member
  • Posts

    192
  • Joined

  • Last visited

    Never

Everything posted by Isaac

  1. Quote: Originally written by spyderbytes: Good point... and YA reason we need has_item_of_variety() to supplement has_item_of_class(). Do we? It's not in the BoA Editor Docs Appendices, unless I'm missing something.
  2. Certain items which stack in the inventory, including food, when you bring them into the new scenario will change into items of the same type in the new scenario. This is so stacking works properly. It also means that giving food a special class works (unless another scenario designer made a custom food item). If you want a totally foolproof mechanism, you'll have to use Advanced Item Management Calls: Code: //in variables sectionshort i, j, k;//main codei = 0;while(i < 4) { //dead or nonexistant characters can't have items if(char_ok(i)) { //only check inventory, not equipment (you can't equip food) j = 12; while(j < 40) { k = item_type_in_slot(i,j); //check if an item exists in that slot if(k != -1) { //check if it's food if(get_item_variety(k) == 4) { destroy_char_item(i,j); //do whatever you want to do here if the party had food end(); } } j = j + 1; } i = i + 1; } }//do whatever you want to do here if the party didn't have food Actually, I'm not totally sure that would work. I'm not sure what item_type_in_slot returns when it checks a custom item from another scenario.
  3. Depending on the circumstance, you might want the messenger to start a conversation without the player's initiative. For example, instead of this: Code: if (get_ran(1,1,100) < 60) { text_bubble_on_char(ME, "Psst! I want to talk to you!"); } else { fidget(ME,10); } use this: Code: // talking, so we can deliver our message... set the flag if (get_memory_cell(1) != 0 || get_memory_cell(2) !=0) { if(get_flag(get_memory_cell(1), get_memory_cell(2) == 0) { set_flag(get_memory_cell(1), get_memory_cell(2), 1); begin_talk_mode(get_memory_cell(3)); } }
  4. A common way to give special items that a monster is guarding is give it when the monster dies (You find a interesting looking jug on the monster). This would require a custom creature script for it, though.
  5. I made a set of custom graphics (black fences). When I tried them in Blades of Avernum, they looked OK except each one had a vertical black line near or on it. The custom graphics sheet is the right size. What can I do to fix this?
×
×
  • Create New...