diff options
-rw-r--r-- | npc/012-7/politics.txt | 1 | ||||
-rw-r--r-- | npc/functions/politics.txt | 9 |
2 files changed, 6 insertions, 4 deletions
diff --git a/npc/012-7/politics.txt b/npc/012-7/politics.txt index 2cbdf9844..c33b29050 100644 --- a/npc/012-7/politics.txt +++ b/npc/012-7/politics.txt @@ -34,6 +34,7 @@ do array_push($HURNS_CANDIDATE$, strcharinfo(0)); array_push($HURNS_VOTES, 0); mesc l("Application successful!"), 3; + next; break; case 3: POL_Candidate("HURNS"); 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; } |