From 94a13d3a95ee589bfcb4207a7f90626141dbf67e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Furkan=20Oytun=20Ay=C3=A7in?=
<154329492+Oytun12@users.noreply.github.com>
Date: Mon, 19 Aug 2024 00:34:30 +0300
Subject: [PATCH] Update scriptsPointBuy.js
---
PointBuy/scriptsPointBuy.js | 394 +++++++++++++++++++++++++++++++++++-
1 file changed, 393 insertions(+), 1 deletion(-)
diff --git a/PointBuy/scriptsPointBuy.js b/PointBuy/scriptsPointBuy.js
index c5e2d48..21ba042 100644
--- a/PointBuy/scriptsPointBuy.js
+++ b/PointBuy/scriptsPointBuy.js
@@ -757,4 +757,396 @@ document.addEventListener('click', (event) => {
menu.classList.remove('visible');
menu.classList.add('hidden');
}
-});
\ No newline at end of file
+});
+
+const KaKa = () => {
+
+ // Mevcut statları ve verileri al
+ const stats = {
+ str: {
+ total: document.getElementById('str').value,
+ modifier: document.getElementById('str-modifier').innerText,
+ },
+ dex: {
+ total: document.getElementById('dex').value,
+ modifier: document.getElementById('dex-modifier').innerText,
+ },
+ con: {
+ total: document.getElementById('con').value,
+ modifier: document.getElementById('con-modifier').innerText,
+ },
+ int: {
+ total: document.getElementById('int').value,
+ modifier: document.getElementById('int-modifier').innerText,
+ },
+ wis: {
+ total: document.getElementById('wis').value,
+ modifier: document.getElementById('wis-modifier').innerText,
+ },
+ cha: {
+ total: document.getElementById('cha').value,
+ modifier: document.getElementById('cha-modifier').innerText,
+ }
+ };
+ const skills = {
+ athletics: {
+ modifier: document.getElementById('athletics').innerText,
+ },
+ acrobatics: {
+ modifier: document.getElementById('acrobatics').innerText,
+ },
+ sleightOfHand: {
+ modifier: document.getElementById('sleightOfHand').innerText,
+ },
+ stealth: {
+ modifier: document.getElementById('stealth').innerText,
+ },
+ history: {
+ modifier: document.getElementById('history').innerText,
+ },
+ religion: {
+ modifier: document.getElementById('religion').innerText,
+ },
+ investigation: {
+ modifier: document.getElementById('investigation').innerText,
+ },
+ nature: {
+ modifier: document.getElementById('nature').innerText,
+ },
+ arcana: {
+ modifier: document.getElementById('arcana').innerText,
+ },
+ animalHandling: {
+ modifier: document.getElementById('animalHandling').innerText,
+ },
+ insight: {
+ modifier: document.getElementById('insight').innerText,
+ },
+ medicine: {
+ modifier: document.getElementById('medicine').innerText,
+ },
+ perception: {
+ modifier: document.getElementById('perception').innerText,
+ },
+ survival: {
+ modifier: document.getElementById('survival').innerText,
+ },
+ deception: {
+ modifier: document.getElementById('deception').innerText,
+ },
+ persuasion: {
+ modifier: document.getElementById('persuasion').innerText,
+ },
+ performance: {
+ modifier: document.getElementById('performance').innerText,
+ },
+ intimidation: {
+ modifier: document.getElementById('intimidation').innerText,
+ },
+ };
+
+
+
+ // Yeni bir sekme aç ve HTML içeriğini oluştur
+ const newTab = window.open();
+ newTab.document.write(`
+
+
+
+
+
+ D&D Karakter Kağıdı
+
+
+
+
+
+
+
+
+
Sınıf/ Level:
+
Karakter Geçmişi:
+
Oyuncu İsmi:
+
+
+
Irk:
+
Alignment:
+
Deneyim Puanı:
+
+
+
+
+
+
+
+
+
İnspration
+
+
Str
${stats.str.modifier}
${stats.str.total}
+
Dex
${stats.dex.modifier}
${stats.dex.total}
+
Con
${stats.con.modifier}
${stats.con.total}
+
İnt
${stats.int.modifier}
${stats.int.total}
+
Wis
${stats.wis.modifier}
${stats.wis.total}
+
Cha
${stats.cha.modifier}
${stats.cha.total}
+
+
+
+
+
(+2) Proficiency Bonus
+
+
+ Prf |
+ Kurtarma at |
+ Skor |
+
+
+ |
+ Strenght |
+ -1 |
+
+
+ |
+ Dexterity |
+ -1 |
+
+
+ |
+ Constution |
+ -1 |
+
+
+ |
+ İntelligence |
+ -1 |
+
+
+ |
+ Wisdom |
+ -1 |
+
+
+ |
+ Charizma |
+ -1 |
+
+
+
+
+
+
+
+ Prf |
+ Skill |
+ Skor |
+
+
+ |
+ Athletics |
+ ${skills.athletics.modifier} |
+
+
+ |
+ Acrobatics |
+ ${skills.acrobatics.modifier} |
+
+
+ |
+ Sleight of Hand |
+ ${skills.sleightOfHand.modifier} |
+
+
+ |
+ Stealth |
+ ${skills.stealth.modifier} |
+
+
+ |
+ History |
+ ${skills.history.modifier} |
+
+
+ |
+ Religion |
+ ${skills.religion.modifier} |
+
+
+ |
+ Investigation |
+ ${skills.investigation.modifier} |
+
+
+ |
+ Nature |
+ ${skills.nature.modifier} |
+
+
+ |
+ Arcana |
+ ${skills.arcana.modifier} |
+
+
+ |
+ Animal Handling |
+ ${skills.animalHandling.modifier} |
+
+
+ |
+ Insight |
+ ${skills.insight.modifier} |
+
+
+ |
+ Medicine |
+ ${skills.medicine.modifier} |
+
+
+ |
+ Perception |
+ ${skills.perception.modifier} |
+
+
+ |
+ Survival |
+ ${skills.survival.modifier} |
+
+
+ |
+ Deception |
+ ${skills.deception.modifier} |
+
+
+ |
+ Persuasion |
+ ${skills.persuasion.modifier} |
+
+
+ |
+ Performance |
+ ${skills.performance.modifier} |
+
+
+ |
+ Intimidation |
+ ${skills.intimidation.modifier} |
+
+
+
+
+
+
+
+
+
(+wisB) Pasive Perception
+
Diğer Özellikler ve Diller
+
+
+
+
+
+
+
+
+
13
AC
+
+dex
İniative
+
30
Speed
+
+
+
Max Hit Point= 30
Current Hit Point
+
+5
Temporary Hit Point
+
+
+
Total= 3d12
Hit Dice
1d12
+
+ + +
+ + +
Death Saves
+
+
+
+
+
+
+ NAME |
+ ATK BONUS |
+ DAMAGE/ TYPE |
+
+
+ Strenght |
+ -1 |
+ -1 |
+
+
+ Dexterity |
+ -1 |
+ -1 |
+
+
+ Constution |
+ -1 |
+ -1 |
+
+
+ İntelligence |
+ -1 |
+ -1 |
+
+
+ Wisdom |
+ -1 |
+ -1 |
+
+
+ Charizma |
+ -1 |
+ -1 |
+
+
+
+
+
+
+
+
+ Değer |
+ Miktar |
+
+
+
+ PP |
+ 10 |
+
+
+ GP |
+ 10 |
+
+
+ SP |
+ 10 |
+
+
+ CP |
+ 10 |
+
+
+
+
Ekipman
+
+
+
+
+
+
Kişilik Özellikleri
+
İdealler
+
Bond
+
Flaws
+
+
FEATURES & TRAITS
+
+
+
+
+
+
+
+
+ `);
+ newTab.document.close();
+};