summaryrefslogtreecommitdiff
path: root/npc/functions/siege.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-08-24 18:00:15 -0300
committerJesusaves <cpntb1@ymail.com>2019-08-24 18:00:15 -0300
commit22d32caa83810d18c64c9b2c6f09acec0f015c97 (patch)
tree93caa716c63bdf05e503ebb0d351394ce46d3553 /npc/functions/siege.txt
parent99d4e0237cb69e87c94ce5f5a97fb2454106d006 (diff)
downloadserverdata-22d32caa83810d18c64c9b2c6f09acec0f015c97.tar.gz
serverdata-22d32caa83810d18c64c9b2c6f09acec0f015c97.tar.bz2
serverdata-22d32caa83810d18c64c9b2c6f09acec0f015c97.tar.xz
serverdata-22d32caa83810d18c64c9b2c6f09acec0f015c97.zip
Political System sketch. Siege defeat will now lower town reputation.
All towns start with 50% town reputation (meaning 50% of income). Best income is Tulimshar, Worst income is Halinarzo. Volatile! Experimental sketch only. No pratical effects thus far.
Diffstat (limited to 'npc/functions/siege.txt')
-rw-r--r--npc/functions/siege.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/npc/functions/siege.txt b/npc/functions/siege.txt
index 98a600dc8..6acdeb359 100644
--- a/npc/functions/siege.txt
+++ b/npc/functions/siege.txt
@@ -191,14 +191,18 @@ function script siege_check {
.@mb+=mobcount(.@m$, "#SiegeCtrl::OnColonelDeath");
.@mb+=mobcount(.@m$, "#SiegeCtrl::OnGeneralDeath");
- // Players failed, so reduce score in 1~10 (like Sergeant~General).
+ // Players failed, so reduce score in 1~5 (like Sergeant~General).
// In future, it could be inverse proportion (-9 for sergeant, -1 for general)
if (.@mb) {
if ($GAME_STORYLINE == 2)
- $MK_TEMPVAR-=rand2(1, 10);
+ $MK_TEMPVAR-=rand2(1, 5);
+
kamibroadcast("Players failed to defend the city!!");
debugmes "Number of boss grade monsters found: %d", .@mb;
$SIEGE_DIFFICULTY=max(1, ($SIEGE_DIFFICULTY/2));
+ // Lower the town reputation in 10%
+ .@var$="$"+MapToLoc(.@m$)+"_REPUTATION";
+ setd(.@var$, getd(.@var$)*9/10);
} else {
kamibroadcast("The city was defended with success! GG, everyone!");
$SIEGE_DIFFICULTY+=1;