summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/politics.txt9
1 files changed, 5 insertions, 4 deletions
diff --git a/npc/functions/politics.txt b/npc/functions/politics.txt
index 64884ca46..322cdb654 100644
--- a/npc/functions/politics.txt
+++ b/npc/functions/politics.txt
@@ -165,18 +165,18 @@ function script POL_Candidate {
copyarray( .@cd$, getd("$"+getarg(0)+"_CANDIDATE$"), getarraysize(getd("$"+getarg(0)+"_CANDIDATE$")) );
copyarray( .@vt, getd("$"+getarg(0)+"_VOTES"), getarraysize(getd("$"+getarg(0)+"_VOTES")) );
- .@list="Don't vote";
+ .@list$="Don't vote";
for (.@i=0;.@i<getarraysize(.@cd$);.@i++) {
mesc .@cd$[.@i] + " - "+.@vt[.@i] + " " + l("votes");
- .@list+=":"+.@cd$[.@i];
+ .@list$+=":"+.@cd$[.@i];
}
next;
if (#POL_VOTEDAY == gettimeparam(GETTIME_DAYOFMONTH))
return;
mesc l("In whom to vote?");
- select .@list;
- .@vote=@menu-1;
+ select .@list$;
+ .@vote=@menu-2;
// Didn't vote
if (.@vote < 0)
@@ -189,6 +189,7 @@ function script POL_Candidate {
setd(.@str$, .@vt+1);
mesc l("The vote was cast."), 3;
+ mesc l("You supported: ")+getd("$"+getarg(0)+"_CANDIDATE$"+"["+.@vote+"]"), 3;
next;
return true;
}