Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update scripts for classes support #153

Merged
merged 1 commit into from
Oct 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pkg/mobiles/npcs/startup/NPCCache.src
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Program NPC_By_Taxonomy_Cache()
var Tax_NPC_list := {}; // A temp array that holds all NPCs in a certain classification.
var NPC_keys := {}; // Holds all of the keys from npcdesc.cfg
var NPC_Ref := 0; // Used to hold a ObjRef to an NPC.
var class := 0; // Used to hold a reference to a datafile element.
var clazz := 0; // Used to hold a reference to a datafile element.
var temp := ""; // A temp variable to hold a string.

UnloadConfigFile(":npcs:settings");
Expand Down Expand Up @@ -49,7 +49,7 @@ Program NPC_By_Taxonomy_Cache()
endif
taxonomies.append(temp);
endforeach
class := NPC_Taxonomy_df.CreateElement("Taxonomies");
clazz := NPC_Taxonomy_df.CreateElement("Taxonomies");
// This is the fun part, building the datafile.
foreach thing in taxonomies
// Create the classification element in <thing>.
Expand All @@ -72,7 +72,7 @@ Program NPC_By_Taxonomy_Cache()
endif
endforeach
// Store the NPC_List in the datafile.
class.SetProp(thing, Tax_NPC_list);
clazz.SetProp(thing, Tax_NPC_list);
endforeach
Print("NPC datafile setup done.");
endprogram
Loading