我正在制作一个节目,为D&D游戏创造一天的天气.我希望程序在生成风暴时以红色文本显示警告,以便DM知道这种天气不典型.要减少击键次数,必须在与详细说明天气本身的文本相同的屏幕上执行此操作.
目前,对于暴风雨的进入,我有这样的:
:des4a
cls
type c:\AutoDM\WeatherGen\data\forcast1.txt
color 0c
echo There is an Ashstorm!
color 0a
echo.
echo It is %temp% degrees and the sky is invisible threw the thick
echo billowing clouds of ash.
echo.
echo # Survival checks to light a fire are at +15.
echo # Small unprotected flames will be snuffed out.
echo # Non-firearm ranged attacks are at a -8 to hit.
echo # Preception checks take a -10 for every 10 feet of distance.
echo …Run Code Online (Sandbox Code Playgroud) batch-file ×1