Skip to content

Commit

Permalink
Merge pull request Seifert69#378 from omnidecker/Promptchange+typofix
Browse files Browse the repository at this point in the history
Roomname added for prompts, fix typo with Veejay engraving
  • Loading branch information
Seifert69 authored Nov 11, 2023
2 parents 596ed2c + a500052 commit 13dd2c3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
9 changes: 6 additions & 3 deletions vme/etc/help/strings/promptcolors.hlp
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,17 @@ at the end of the prompt variables for this.
<li>%xptolvl% - Your experience to next level</li>
<li>%level% - Your current base level</li>
<li>%vlevel% - Your current virtual level</li>
<li>%zone% - The zone idx you are in</li>
<li>%roomname% - The name of the room you are in</li>
<li>%oppname% - Your opponent's name</li>
<li>%tankname% - Your tank's name</li>
<li>%oppdiag% - Your opponent's condition (diagnoses)</li>
<li>%tankdiag% - Your tank's condition (diagnoses)</li></ul>


<p><b>IMMORTAL ONLY IDENTIFIERS</b>
</p>
<ul><li>%zone% - The zone idx you are in</li>
<li>%room% - The room idx you are in</li>
<ul><li>%room% - The room idx you are in</li>
<li>%wizinv% - Your wizinv level</li></ul>
<p><b>More Examples</b>
</p><p>Example:
Expand Down Expand Up @@ -72,4 +75,4 @@ See Also:



</div>
</div>
2 changes: 1 addition & 1 deletion vme/zone/midgaard.zon
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,7 @@ code

:brief:
exec("say What do you want engraved on this "+ting.name+", "+pc.name+"?",self);
exec("say Just say the line, and remember, maximum 10 letters!",self);
exec("say Just say the line, and remember, maximum 12 letters!",self);

:brieftext:
wait(SFB_DONE, command("say")and(activator == pc));
Expand Down
8 changes: 8 additions & 0 deletions vme/zone/update.zon
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,12 @@ else if (tlist.[i]==left("maxmana",length(tlist.[i])))
addstring (plist,"%zone%");
tlist.[i]:="%zone%";
}
else if (tlist.[i]==left("roomname",length(tlist.[i])))
{
if (not("%roomname%" in plist))
addstring (plist,"%roomname%");
tlist.[i]:="%roomname%";
}
else if ((tlist.[i]==left("room",length(tlist.[i]))) and
(self.level >= IMMORTAL_LEVEL))
{
Expand Down Expand Up @@ -702,6 +708,8 @@ i:=i+1;
}
else if (plist.[i]=="%zone%")
cp:=replace("%zone%",self.outside.zoneidx,cp);
else if (plist.[i]=="%roomname%")
cp:=replace("%roomname%",self.outside.title,cp);
else if (plist.[i]=="%room%")
cp:=replace("%room%",self.outside.nameidx,cp);
else if (plist.[i]=="%wizinv%")
Expand Down

0 comments on commit 13dd2c3

Please sign in to comment.