Jump to content

Where are states defining item usage defined?


Lancer

Recommended Posts

For example,

in the valleydy scenario script, a scepter that heals all sorts of nasty effects is used whenever state 18 is executed.. But in which file (or does it need to be defined in the scenario editor?) is state 18 defined for BoA to know that everytime the scepter is used, "beginstate 18" in the scenario script needs to be executed?

 

Weird thing is that when I open the .bas file in the editor, and go to the location where the scepter is in the "Student Halls" of the Lower Part of the School of Magery, it doesn't appear to be a normal item from one of the item submenus.

 

Thanks!

Link to comment
Share on other sites

Items are defined in the scenario's data script (valleydydata.txt). Specifically, this part:

 

Quote:
begindefineitem 476;

// imported for all wands

clear;

it_name = "Rod";

it_full_name = "Rod of Healing";

it_variety = 21;

it_floor_which_sheet = 1032;

it_floor_which_icon = 8;

it_inventory_icon = 9;

it_ability_1 = 208;

it_ability_str_1 = 18;

it_value = 0;

it_weight = 100;

it_identified = 1;

it_once_per_day = 1;

it_magic = 1;

Item ability 208 calls a scenario script state on use, and the "strength" field tells it which state to call.
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...