3.7 KiB
3.7 KiB
dbdbuilder
This is the Source-Code of the DBDBuilder.net
Example Survival Item
function selectItemName() {
var sItem = survItems("Item Name", ["item text", "item text"], "Item Rarity", "item text", "Item Icon", "Item Description", ["extra", "extra"], 1, "item type");
sItem.isRedacted = false;
return sItem;
}
//ADD
survivorItems.push(selectItemName());
Example Survivor
function selectSurvivorName() {
var survivor = new selectSurvivor();
survivor.name = "Leon S. Kennedy";
survivor.portrait = "Survivor Icon";
return survivor;
}
//ADD
survivors.push(selectSurvivorName());
Example Killer
function selectNemesis() {
var killer = selectKiller();
killer.name = "In Game Killer Name";
killer.itemOrAbility = selectAddOn("Killer Full Name", ["Killer Power Name"], "Common", "Killer Power Name", "first Power Icon", "killer", ["extra"]);
killer.addonLink = nemesisAddons;
killer.portrait = "Killer Icon";
return killer;
}
//ADD
killers.push(selectKillerName());
Example Offering or Favor
Killer and Survivor
function offeringName() {
var offering = selectOffering("Offering Name", "Offering Description", "offering Rarity", "Offerring Text", "Offering Icon", "All");
return offering;
}
//ADD x 2
killerOfferings.push(offeringName());
survivorOfferings.push(offeringName());
Survivor
function offeringName() {
var offering = selectOffering("Offering Name", "Offering Description", "offering Rarity", "Offerring Text", "Offering Icon", "Survivor");
return offering;
}
//ADD x 2
survivorOfferings.push(offeringName());
Killer
function offeringName() {
var offering = selectOffering("Offering Name", "Offering Description", "offering Rarity", "Offerring Text", "Offering Icon", "Killer");
return offering;
}
//ADD x 2
killerOfferings.push(offeringName());
Example Killer Addon
function addonName() {
var addon = selectAddOn("Addon Name", ["Addon Description"], "Addon Rarity", "Addon Description ", "Addon Icon", "Killer Name", ["extra"]);
return addon;
}
//ADD
killerNameAddons.push(addonName());
Real Killer Example
function serratedJaws() {
var addon = selectAddOn("Serrated Jaws", ["Traps infict heavy bleeding until the effects are healed."], "Uncommon", "Traps infict heavy bleeding until the effects are healed.", "IconAddon_serratedJaws.png", "Trapper", ["extra"]);
return addon;
}
//ADD
trapperAddons.push(serratedJaws());
Example Addons
medikit
function addonName() {
var addon = selectAddOn("Addon Name", ["Addon Description"], "Addon Rarity", "addon Description", "Addon Icon", "First Aid Kit", ["extra"]);
return addon;
}
//ADD
medkitAddons.push(addonName());
Toolbox
function addonnName() {
var addon = selectAddOn("Addon Name", ["Addon Description"], "Addon Rarity", "Addon Description", "Addon Icon", "Toolbox", ["extra"]);
return addon;
}
//ADD
toolboxAddons.push(addonName());
Flashlight
function addonName() {
var addon = selectAddOn("Addon Name", ["Addon Description"], "Addon Rarity", "Addon Description", "Addon Icon", "Flashlight", ["extra"]);
return addon;
}
//ADD
flashlightAddons.push(addonName());
Key
function addonName() {
var addon = selectAddOn("Addon Name", ["Addon Description"], "Addon Rarity", "Addon Description", "Addon Icon", "Key", ["extra"]);
return addon;
}
//ADD
keyAddons.push(addonName());
Map
function addonName() {
var addon = selectAddOn("Addon Name", ["Addon Description"], "Addon Rarity", "Addon Description", "Addon Icon", "Map", ["extra"]);
return addon;
}
//ADD
mapAddons.push(addonName());