|
ondrovic Beginner
Joined: 22 Feb 2002 Posts: 25 Location: USA
|
Posted: Fri Mar 08, 2002 7:26 pm
converting |
and this one if possible
/action {%9/%8hp %7/%6m %5/%4MountMV %3xp} {/var MaxHitPts @LTrim($8);/var MaxMana @LTrim($6);/var MaxMove @LTrim($4)} {OmaPrompt}
/action {%9/%8hp %7/%6m %5/%4mv %3xp} {/var MaxHitPts @LTrim($8);/var MaxMana @LTrim($6);/var MaxMove @LTrim($4)} {OmaPrompt}
/action {^<%0hp %1m %2MountMV %3MountBR>} {/if {"@Left($0,1)"!="["} {/if {@Math(($0*100)/$MaxHitPts)>=76} {/var HitPtsPrct {@AnsiBold()@ForeGreen()@Math(($0*100)/$MaxHitPts)%@AnsiReset()}} {/if {@Math(($0*100)/$MaxHitPts)>=51 && @Math(($0*100)/$MaxHitPts)<=75} {/var HitPtsPrct {@AnsiBold()@ForeMagenta()@Math(($0*100)/$MaxHitPts)%@AnsiReset()}} {/if {@Math(($0*100)/$MaxHitPts)>=26 && @Math(($0*100)/$MaxHitPts)<=50} {/var HitPtsPrct {@AnsiBold()@ForeYellow()@Math(($0*100)/$MaxHitPts)%@AnsiReset()}} {/var HitPtsPrct {@AnsiBold()@ForeRed()@Math(($0*100)/$MaxHitPts)%@AnsiReset()}}}};/if {@Math(($1*100)/$MaxMana)>=76} {/var ManaPrct {@AnsiBold()@ForeGreen()@Math(($1*100)/$MaxMana)%@AnsiReset()}} {/if {@Math(($1*100)/$MaxMana)>=51 && @Math(($1*100)/$MaxMana)<=75} {/var ManaPrct {@AnsiBold()@ForeMagenta()@Math(($1*100)/$MaxMana)%@AnsiReset()}} {/if {@Math(($1*100)/$MaxMana)>=26 && @Math(($1*100)/$MaxMana)<=50} {/var ManaPrct {@AnsiBold()@ForeYellow()@Math(($1*100)/$MaxMana)%@AnsiReset()}} {/var ManaPrct {@AnsiBold()@ForeRed()@Math(($1*100)/$MaxMana)%@AnsiReset()}}}};/if {@Math(($2*100)/$MaxMove)>=76} {/var MovePrct {@AnsiBold()@ForeGreen()@Math(($2*100)/$MaxMove)%@AnsiReset()}} {/if {@Math(($2*100)/$MaxMove)>=51 && @Math(($2*100)/$MaxMove)<=75} {/var MovePrct {@AnsiBold()@ForeMagenta()@Math(($2*100)/$MaxMove)%@AnsiReset()}} {/if {@Math(($2*100)/$MaxMove)>=26 && @Math(($2*100)/$MaxMove)<=50} {/var MovePrct {@AnsiBold()@ForeYellow()@Math(($2*100)/$MaxMove)%@AnsiReset()}} {/var MovePrct {@AnsiBold()@ForeRed()@Math(($2*100)/$MaxMove)%@AnsiReset()}}}};/showme {@PadLeft(@AnsiBold()@ForeYellow()$0@ForeWhite()hp@AnsiReset()($HitPtsPrct), ,@Math(8-@Len($0@StripAnsi($HitPtsPrct)))) @PadLeft(@AnsiBold()@ForeBlue()$1@ForeWhite()m@AnsiReset()($ManaPrct), ,@Math(8-@Len($1@StripAnsi($ManaPrct)))) @PadLeft(@AnsiBold()@ForeCyan()$2@ForeWhite()mv@AnsiReset()($MovePrct), ,@Math(8-@Len($2@StripAnsi($MovePrct)))) @PadLeft(@AnsiBold()@ForeGreen()$3@ForeWhite()br, ,@Math(3-@Len($3))) @AnsiReset()- @ForeYellow()Mnt @AnsiReset()[$SIspew@AnsiReset()]}}} {OmaPrompt}
/action {^<%0hp %1m %2mv %3br>} {/if {"@Left($0,1)"!="["} {/if {@Math(($0*100)/$MaxHitPts)>=76} {/var HitPtsPrct {@AnsiBold()@ForeGreen()@Math(($0*100)/$MaxHitPts)%@AnsiReset()}} {/if {@Math(($0*100)/$MaxHitPts)>=51 && @Math(($0*100)/$MaxHitPts)<=75} {/var HitPtsPrct {@AnsiBold()@ForeMagenta()@Math(($0*100)/$MaxHitPts)%@AnsiReset()}} {/if {@Math(($0*100)/$MaxHitPts)>=26 && @Math(($0*100)/$MaxHitPts)<=50} {/var HitPtsPrct {@AnsiBold()@ForeYellow()@Math(($0*100)/$MaxHitPts)%@AnsiReset()}} {/var HitPtsPrct {@AnsiBold()@ForeRed()@Math(($0*100)/$MaxHitPts)%@AnsiReset()}}}};/if {@Math(($1*100)/$MaxMana)>=76} {/var ManaPrct {@AnsiBold()@ForeGreen()@Math(($1*100)/$MaxMana)%@AnsiReset()}} {/if {@Math(($1*100)/$MaxMana)>=51 && @Math(($1*100)/$MaxMana)<=75} {/var ManaPrct {@AnsiBold()@ForeMagenta()@Math(($1*100)/$MaxMana)%@AnsiReset()}} {/if {@Math(($1*100)/$MaxMana)>=26 && @Math(($1*100)/$MaxMana)<=50} {/var ManaPrct {@AnsiBold()@ForeYellow()@Math(($1*100)/$MaxMana)%@AnsiReset()}} {/var ManaPrct {@AnsiBold()@ForeRed()@Math(($1*100)/$MaxMana)%@AnsiReset()}}}};/if {@Math(($2*100)/$MaxMove)>=76} {/var MovePrct {@AnsiBold()@ForeGreen()@Math(($2*100)/$MaxMove)%@AnsiReset()}} {/if {@Math(($2*100)/$MaxMove)>=51 && @Math(($2*100)/$MaxMove)<=75} {/var MovePrct {@AnsiBold()@ForeMagenta()@Math(($2*100)/$MaxMove)%@AnsiReset()}} {/if {@Math(($2*100)/$MaxMove)>=26 && @Math(($2*100)/$MaxMove)<=50} {/var MovePrct {@AnsiBold()@ForeYellow()@Math(($2*100)/$MaxMove)%@AnsiReset()}} {/var MovePrct {@AnsiBold()@ForeRed()@Math(($2*100)/$MaxMove)%@AnsiReset()}}}};/showme {@PadLeft(@AnsiBold()@ForeYellow()$0@ForeWhite()hp@AnsiReset()($HitPtsPrct), ,@Math(8-@Len($0@StripAnsi($HitPtsPrct)))) @PadLeft(@AnsiBold()@ForeBlue()$1@ForeWhite()m@AnsiReset()($ManaPrct), ,@Math(8-@Len($1@StripAnsi($ManaPrct)))) @PadLeft(@AnsiBold()@ForeCyan()$2@ForeWhite()mv@AnsiReset()($MovePrct), ,@Math(8-@Len($2@StripAnsi($MovePrct)))) @PadLeft(@AnsiBold()@ForeGreen()$3@ForeWhite()br, ,@Math(3-@Len($3))) @AnsiReset()[$SIspew@AnsiReset()]}}} {OmaPrompt}
/action {%6<%0hp %1m %2MountMV %3MountBR>} {/if {"@Left($6,2)"!="<["} {/if {@Math(($0*100)/$MaxHitPts)>=76} {/var HitPtsPrct {@AnsiBold()@ForeGreen()@Math(($0*100)/$MaxHitPts)%@AnsiReset()}} {/if {@Math(($0*100)/$MaxHitPts)>=51 && @Math(($0*100)/$MaxHitPts)<=75} {/var HitPtsPrct {@AnsiBold()@ForeMagenta()@Math(($0*100)/$MaxHitPts)%@AnsiReset()}} {/if {@Math(($0*100)/$MaxHitPts)>=26 && @Math(($0*100)/$MaxHitPts)<=50} {/var HitPtsPrct {@AnsiBold()@ForeYellow()@Math(($0*100)/$MaxHitPts)%@AnsiReset()}} {/var HitPtsPrct {@AnsiBold()@ForeRed()@Math(($0*100)/$MaxHitPts)%@AnsiReset()}}}};/if {@Math(($1*100)/$MaxMana)>=76} {/var ManaPrct {@AnsiBold()@ForeGreen()@Math(($1*100)/$MaxMana)%@AnsiReset()}} {/if {@Math(($1*100)/$MaxMana)>=51 && @Math(($1*100)/$MaxMana)<=75} {/var ManaPrct {@AnsiBold()@ForeMagenta()@Math(($1*100)/$MaxMana)%@AnsiReset()}} {/if {@Math(($1*100)/$MaxMana)>=26 && @Math(($1*100)/$MaxMana)<=50} {/var ManaPrct {@AnsiBold()@ForeYellow()@Math(($1*100)/$MaxMana)%@AnsiReset()}} {/var ManaPrct {@AnsiBold()@ForeRed()@Math(($1*100)/$MaxMana)%@AnsiReset()}}}};/if {@Math(($2*100)/$MaxMove)>=76} {/var MovePrct {@AnsiBold()@ForeGreen()@Math(($2*100)/$MaxMove)%@AnsiReset()}} {/if {@Math(($2*100)/$MaxMove)>=51 && @Math(($2*100)/$MaxMove)<=75} {/var MovePrct {@AnsiBold()@ForeMagenta()@Math(($2*100)/$MaxMove)%@AnsiReset()}} {/if {@Math(($2*100)/$MaxMove)>=26 && @Math(($2*100)/$MaxMove)<=50} {/var MovePrct {@AnsiBold()@ForeYellow()@Math(($2*100)/$MaxMove)%@AnsiReset()}} {/var MovePrct {@AnsiBold()@ForeRed()@Math(($2*100)/$MaxMove)%@AnsiReset()}}}};/showme {@PadLeft(@AnsiBold()@ForeYellow()$0@ForeWhite()hp@AnsiReset()($HitPtsPrct), ,@Math(8-@Len($0@StripAnsi($HitPtsPrct)))) @PadLeft(@AnsiBold()@ForeBlue()$1@ForeWhite()m@AnsiReset()($ManaPrct), ,@Math(8-@Len($1@StripAnsi($ManaPrct)))) @PadLeft(@AnsiBold()@ForeCyan()$2@ForeWhite()mv@AnsiReset()($MovePrct), ,@Math(8-@Len($2@StripAnsi($MovePrct)))) @PadLeft(@AnsiBold()@ForeGreen()$3@ForeWhite()br, ,@Math(3-@Len($3))) @AnsiReset()- @ForeYellow()Mnt @ForeBlue()$6@AnsiReset()[$SIspew@AnsiReset()]}}} {OmaPrompt}
/action {%6<%0hp %1m %2mv %3br>} {/if {"@Left($6,2)"!="<["} {/if {@Math(($0*100)/$MaxHitPts)>=76} {/var HitPtsPrct {@AnsiBold()@ForeGreen()@Math(($0*100)/$MaxHitPts)%@AnsiReset()}} {/if {@Math(($0*100)/$MaxHitPts)>=51 && @Math(($0*100)/$MaxHitPts)<=75} {/var HitPtsPrct {@AnsiBold()@ForeMagenta()@Math(($0*100)/$MaxHitPts)%@AnsiReset()}} {/if {@Math(($0*100)/$MaxHitPts)>=26 && @Math(($0*100)/$MaxHitPts)<=50} {/var HitPtsPrct {@AnsiBold()@ForeYellow()@Math(($0*100)/$MaxHitPts)%@AnsiReset()}} {/var HitPtsPrct {@AnsiBold()@ForeRed()@Math(($0*100)/$MaxHitPts)%@AnsiReset()}}}};/if {@Math(($1*100)/$MaxMana)>=76} {/var ManaPrct {@AnsiBold()@ForeGreen()@Math(($1*100)/$MaxMana)%@AnsiReset()}} {/if {@Math(($1*100)/$MaxMana)>=51 && @Math(($1*100)/$MaxMana)<=75} {/var ManaPrct {@AnsiBold()@ForeMagenta()@Math(($1*100)/$MaxMana)%@AnsiReset()}} {/if {@Math(($1*100)/$MaxMana)>=26 && @Math(($1*100)/$MaxMana)<=50} {/var ManaPrct {@AnsiBold()@ForeYellow()@Math(($1*100)/$MaxMana)%@AnsiReset()}} {/var ManaPrct {@AnsiBold()@ForeRed()@Math(($1*100)/$MaxMana)%@AnsiReset()}}}};/if {@Math(($2*100)/$MaxMove)>=76} {/var MovePrct {@AnsiBold()@ForeGreen()@Math(($2*100)/$MaxMove)%@AnsiReset()}} {/if {@Math(($2*100)/$MaxMove)>=51 && @Math(($2*100)/$MaxMove)<=75} {/var MovePrct {@AnsiBold()@ForeMagenta()@Math(($2*100)/$MaxMove)%@AnsiReset()}} {/if {@Math(($2*100)/$MaxMove)>=26 && @Math(($2*100)/$MaxMove)<=50} {/var MovePrct {@AnsiBold()@ForeYellow()@Math(($2*100)/$MaxMove)%@AnsiReset()}} {/var MovePrct {@AnsiBold()@ForeRed()@Math(($2*100)/$MaxMove)%@AnsiReset()}}}};/showme {@PadLeft(@AnsiBold()@ForeYellow()$0@ForeWhite()hp@AnsiReset()($HitPtsPrct), ,@Math(8-@Len($0@StripAnsi($HitPtsPrct)))) @PadLeft(@AnsiBold()@ForeBlue()$1@ForeWhite()m@AnsiReset()($ManaPrct), ,@Math(8-@Len($1@StripAnsi($ManaPrct)))) @PadLeft(@AnsiBold()@ForeCyan()$2@ForeWhite()mv@AnsiReset()($MovePrct), ,@Math(8-@Len($2@StripAnsi($MovePrct)))) @PadLeft(@AnsiBold()@ForeGreen()$3@ForeWhite()br, ,@Math(3-@Len($3))) @AnsiReset()@ForeBlue()$6@AnsiReset()[$SIspew@AnsiReset()]}}} {OmaPrompt}
/var {SPACEHOLDER_DELETE_ME} {......................................} {test}
/action {^<[%4]%5><%0hp %1m %2MountMV %3MountBR>} {/if {@Math(($0*100)/$MaxHitPts)>=76} {/var HitPtsPrct {@AnsiBold()@ForeGreen()@Math(($0*100)/$MaxHitPts)%@AnsiReset()}} {/if {@Math(($0*100)/$MaxHitPts)>=51 && @Math(($0*100)/$MaxHitPts)<=75} {/var HitPtsPrct {@AnsiBold()@ForeMagenta()@Math(($0*100)/$MaxHitPts)%@AnsiReset()}} {/if {@Math(($0*100)/$MaxHitPts)>=26 && @Math(($0*100)/$MaxHitPts)<=50} {/var HitPtsPrct {@AnsiBold()@ForeYellow()@Math(($0*100)/$MaxHitPts)%@AnsiReset()}} {/var HitPtsPrct {@AnsiBold()@ForeRed()@Math(($0*100)/$MaxHitPts)%@AnsiReset()}}}};/if {@Math(($1*100)/$MaxMana)>=76} {/var ManaPrct {@AnsiBold()@ForeGreen()@Math(($1*100)/$MaxMana)%@AnsiReset()}} {/if {@Math(($1*100)/$MaxMana)>=51 && @Math(($1*100)/$MaxMana)<=75} {/var ManaPrct {@AnsiBold()@ForeMagenta()@Math(($1*100)/$MaxMana)%@AnsiReset()}} {/if {@Math(($1*100)/$MaxMana)>=26 && @Math(($1*100)/$MaxMana)<=50} {/var ManaPrct {@AnsiBold()@ForeYellow()@Math(($1*100)/$MaxMana)%@AnsiReset()}} {/var ManaPrct {@AnsiBold()@ForeRed()@Math(($1*100)/$MaxMana)%@AnsiReset()}}}};/if {@Math(($2*100)/$MaxMove)>=76} {/var MovePrct {@AnsiBold()@ForeGreen()@Math(($2*100)/$MaxMove)%@AnsiReset()}} {/if {@Math(($2*100)/$MaxMove)>=51 && @Math(($2*100)/$MaxMove)<=75} {/var MovePrct {@AnsiBold()@ForeMagenta()@Math(($2*100)/$MaxMove)%@AnsiReset()}} {/if {@Math(($2*100)/$MaxMove)>=26 && @Math(($2*100)/$MaxMove)<=50} {/var MovePrct {@AnsiBold()@ForeYellow()@Math(($2*100)/$MaxMove)%@AnsiReset()}} {/var MovePrct {@AnsiBold()@ForeRed()@Math(($2*100)/$MaxMove)%@AnsiReset()}}}};/showme {@PadLeft(@AnsiBold()@ForeYellow()$0@ForeWhite()hp@AnsiReset()($HitPtsPrct), ,@Math(8-@Len($0@StripAnsi($HitPtsPrct)))) @PadLeft(@AnsiBold()@ForeBlue()$1@ForeWhite()m@AnsiReset()($ManaPrct), ,@Math(8-@Len($1@StripAnsi($ManaPrct)))) @PadLeft(@AnsiBold()@ForeCyan()$2@ForeWhite()mv@AnsiReset()($MovePrct), ,@Math(8-@Len($2@StripAnsi($MovePrct)))) @PadLeft(@AnsiBold()@ForeGreen()$3@ForeWhite()br, ,@Math(3-@Len($3))) @AnsiBold()@ForeYellow()[@ForeRed()@LTrim($4) @ForeCyan()$5@ForeYellow()]}} {OmaPrompt}
/action {^<[%4]%5><%0hp %1m %2mv %3br>} {/if {@Math(($0*100)/$MaxHitPts)>=76} {/var HitPtsPrct {@AnsiBold()@ForeGreen()@Math(($0*100)/$MaxHitPts)%@AnsiReset()}} {/if {@Math(($0*100)/$MaxHitPts)>=51 && @Math(($0*100)/$MaxHitPts)<=75} {/var HitPtsPrct {@AnsiBold()@ForeMagenta()@Math(($0*100)/$MaxHitPts)%@AnsiReset()}} {/if {@Math(($0*100)/$MaxHitPts)>=26 && @Math(($0*100)/$MaxHitPts)<=50} {/var HitPtsPrct {@AnsiBold()@ForeYellow()@Math(($0*100)/$MaxHitPts)%@AnsiReset()}} {/var HitPtsPrct {@AnsiBold()@ForeRed()@Math(($0*100)/$MaxHitPts)%@AnsiReset()}}}};/if {@Math(($1*100)/$MaxMana)>=76} {/var ManaPrct {@AnsiBold()@ForeGreen()@Math(($1*100)/$MaxMana)%@AnsiReset()}} {/if {@Math(($1*100)/$MaxMana)>=51 && @Math(($1*100)/$MaxMana)<=75} {/var ManaPrct {@AnsiBold()@ForeMagenta()@Math(($1*100)/$MaxMana)%@AnsiReset()}} {/if {@Math(($1*100)/$MaxMana)>=26 && @Math(($1*100)/$MaxMana)<=50} {/var ManaPrct {@AnsiBold()@ForeYellow()@Math(($1*100)/$MaxMana)%@AnsiReset()}} {/var ManaPrct {@AnsiBold()@ForeRed()@Math(($1*100)/$MaxMana)%@AnsiReset()}}}};/if {@Math(($2*100)/$MaxMove)>=76} {/var MovePrct {@AnsiBold()@ForeGreen()@Math(($2*100)/$MaxMove)%@AnsiReset()}} {/if {@Math(($2*100)/$MaxMove)>=51 && @Math(($2*100)/$MaxMove)<=75} {/var MovePrct {@AnsiBold()@ForeMagenta()@Math(($2*100)/$MaxMove)%@AnsiReset()}} {/if {@Math(($2*100)/$MaxMove)>=26 && @Math(($2*100)/$MaxMove)<=50} {/var MovePrct {@AnsiBold()@ForeYellow()@Math(($2*100)/$MaxMove)%@AnsiReset()}} {/var MovePrct {@AnsiBold()@ForeRed()@Math(($2*100)/$MaxMove)%@AnsiReset()}}}};/showme {@PadLeft(@AnsiBold()@ForeYellow()$0@ForeWhite()hp@AnsiReset()($HitPtsPrct), ,@Math(8-@Len($0@StripAnsi($HitPtsPrct)))) @PadLeft(@AnsiBold()@ForeBlue()$1@ForeWhite()m@AnsiReset()($ManaPrct), ,@Math(8-@Len($1@StripAnsi($ManaPrct)))) @PadLeft(@AnsiBold()@ForeCyan()$2@ForeWhite()mv@AnsiReset()($MovePrct), ,@Math(8-@Len($2@StripAnsi($MovePrct)))) @PadLeft(@AnsiBold()@ForeGreen()$3@ForeWhite()br, ,@Math(3-@Len($3))) @AnsiBold()@ForeYellow()[@ForeRed()@LTrim($4) @ForeCyan()$5@ForeYellow()]}} {OmaPrompt}
/action {^<[%4]%5>%6<%0hp %1m %2MountMV %3MountBR>} {/if {@Len($6)>=1} {/if {@Math(($0*100)/$MaxHitPts)>=76} {/var HitPtsPrct {@AnsiBold()@ForeGreen()@Math(($0*100)/$MaxHitPts)%@AnsiReset()}} {/if {@Math(($0*100)/$MaxHitPts)>=51 && @Math(($0*100)/$MaxHitPts)<=75} {/var HitPtsPrct {@AnsiBold()@ForeMagenta()@Math(($0*100)/$MaxHitPts)%@AnsiReset()}} {/if {@Math(($0*100)/$MaxHitPts)>=26 && @Math(($0*100)/$MaxHitPts)<=50} {/var HitPtsPrct {@AnsiBold()@ForeYellow()@Math(($0*100)/$MaxHitPts)%@AnsiReset()}} {/var HitPtsPrct {@AnsiBold()@ForeRed()@Math(($0*100)/$MaxHitPts)%@AnsiReset()}}}};/if {@Math(($1*100)/$MaxMana)>=76} {/var ManaPrct {@AnsiBold()@ForeGreen()@Math(($1*100)/$MaxMana)%@AnsiReset()}} {/if {@Math(($1*100)/$MaxMana)>=51 && @Math(($1*100)/$MaxMana)<=75} {/var ManaPrct {@AnsiBold()@ForeMagenta()@Math(($1*100)/$MaxMana)%@AnsiReset()}} {/if {@Math(($1*100)/$MaxMana)>=26 && @Math(($1*100)/$MaxMana)<=50} {/var ManaPrct {@AnsiBold()@ForeYellow()@Math(($1*100)/$MaxMana)%@AnsiReset()}} {/var ManaPrct {@AnsiBold()@ForeRed()@Math(($1*100)/$MaxMana)%@AnsiReset()}}}};/if {@Math(($2*100)/$MaxMove)>=76} {/var MovePrct {@AnsiBold()@ForeGreen()@Math(($2*100)/$MaxMove)%@AnsiReset()}} {/if {@Math(($2*100)/$MaxMove)>=51 && @Math(($2*100)/$MaxMove)<=75} {/var MovePrct {@AnsiBold()@ForeMagenta()@Math(($2*100)/$MaxMove)%@AnsiReset()}} {/if {@Math(($2*100)/$MaxMove)>=26 && @Math(($2*100)/$MaxMove)<=50} {/var MovePrct {@AnsiBold()@ForeYellow()@Math(($2*100)/$MaxMove)%@AnsiReset()}} {/var MovePrct {@AnsiBold()@ForeRed()@Math(($2*100)/$MaxMove)%@AnsiReset()}}}};/showme {@PadLeft(@AnsiBold()@ForeYellow()$0@ForeWhite()hp@AnsiReset()($HitPtsPrct), ,@Math(8-@Len($0@StripAnsi($HitPtsPrct)))) @PadLeft(@AnsiBold()@ForeBlue()$1@ForeWhite()m@AnsiReset()($ManaPrct), ,@Math(8-@Len($1@StripAnsi($ManaPrct)))) @PadLeft(@AnsiBold()@ForeCyan()$2@ForeWhite()mv@AnsiReset()($MovePrct), ,@Math(8-@Len($2@StripAnsi($MovePrct)))) @PadLeft(@AnsiBold()@ForeGreen()$3@ForeWhite()br, ,@Math(3-@Len($3))) @AnsiBold()@ForeYellow()[@ForeRed()@LTrim($4) @ForeCyan()$5@ForeYellow()]}}} {OmaPrompt}
/action {^<[%4]%5>%6<%0hp %1m %2mv %3br>} {/if {@Len($6)>=1} {/if {@Math(($0*100)/$MaxHitPts)>=76} {/var HitPtsPrct {@AnsiBold()@ForeGreen()@Math(($0*100)/$MaxHitPts)%@AnsiReset()}} {/if {@Math(($0*100)/$MaxHitPts)>=51 && @Math(($0*100)/$MaxHitPts)<=75} {/var HitPtsPrct {@AnsiBold()@ForeMagenta()@Math(($0*100)/$MaxHitPts)%@AnsiReset()}} {/if {@Math(($0*100)/$MaxHitPts)>=26 && @Math(($0*100)/$MaxHitPts)<=50} {/var HitPtsPrct {@AnsiBold()@ForeYellow()@Math(($0*100)/$MaxHitPts)%@AnsiReset()}} {/var HitPtsPrct {@AnsiBold()@ForeRed()@Math(($0*100)/$MaxHitPts)%@AnsiReset()}}}};/if {@Math(($1*100)/$MaxMana)>=76} {/var ManaPrct {@AnsiBold()@ForeGreen()@Math(($1*100)/$MaxMana)%@AnsiReset()}} {/if {@Math(($1*100)/$MaxMana)>=51 && @Math(($1*100)/$MaxMana)<=75} {/var ManaPrct {@AnsiBold()@ForeMagenta()@Math(($1*100)/$MaxMana)%@AnsiReset()}} {/if {@Math(($1*100)/$MaxMana)>=26 && @Math(($1*100)/$MaxMana)<=50} {/var ManaPrct {@AnsiBold()@ForeYellow()@Math(($1*100)/$MaxMana)%@AnsiReset()}} {/var ManaPrct {@AnsiBold()@ForeRed()@Math(($1*100)/$MaxMana)%@AnsiReset()}}}};/if {@Math(($2*100)/$MaxMove)>=76} {/var MovePrct {@AnsiBold()@ForeGreen()@Math(($2*100)/$MaxMove)%@AnsiReset()}} {/if {@Math(($2*100)/$MaxMove)>=51 && @Math(($2*100)/$MaxMove)<=75} {/var MovePrct {@AnsiBold()@ForeMagenta()@Math(($2*100)/$MaxMove)%@AnsiReset()}} {/if {@Math(($2*100)/$MaxMove)>=26 && @Math(($2*100)/$MaxMove)<=50} {/var MovePrct {@AnsiBold()@ForeYellow()@Math(($2*100)/$MaxMove)%@AnsiReset()}} {/var MovePrct {@AnsiBold()@ForeRed()@Math(($2*100)/$MaxMove)%@AnsiReset()}}}};/showme {@PadLeft(@AnsiBold()@ForeYellow()$0@ForeWhite()hp@AnsiReset()($HitPtsPrct), ,@Math(8-@Len($0@StripAnsi($HitPtsPrct)))) @PadLeft(@AnsiBold()@ForeBlue()$1@ForeWhite()m@AnsiReset()($ManaPrct), ,@Math(8-@Len($1@StripAnsi($ManaPrct)))) @PadLeft(@AnsiBold()@ForeCyan()$2@ForeWhite()mv@AnsiReset()($MovePrct), ,@Math(8-@Len($2@StripAnsi($MovePrct)))) @PadLeft(@AnsiBold()@ForeGreen()$3@ForeWhite()br, ,@Math(3-@Len($3))) @AnsiBold()@ForeYellow()[@ForeRed()@LTrim($4) @ForeCyan()$5@ForeYellow()]}}} {OmaPrompt}
/action {Bosozoku says, 'My stats are:[%1/%2hp %3/%4m %5/%6mv %7al]'} {/var MaxHitPts $2;/var MaxMana $4;/var MaxMove $6} {OmaPrompt}
/action {Kaasbaba says, 'My stats are:[%1/%2hp %3/%4m %5/%6mv %7al]'} {/var MaxHitPts $2;/var MaxMana $4;/var MaxMove $6} {OmaPrompt}
/variable {HitPtsPrct} {[1m[32m100%[0m} {OmaPrompt}
/variable {ManaPrct} {[1m[32m100%[0m} {OmaPrompt}
/variable {MaxHitPts} {711} {OmaPrompt}
/variable {MaxMana} {290} {OmaPrompt}
/variable {MaxMove} {610} {OmaPrompt}
/variable {MovePrct} {[1m[32m100%[0m} {OmaPrompt}
/gag {^<%0hp %1m %2MountMV %3MountBR>} {OmaPrompt}
/gag {^<%0hp %1m %2mv %3br>} {OmaPrompt}
/gag {%9<%0hp %1m %2MountMV %3MountBR>} {OmaPrompt}
/gag {%9<%0hp %1m %2mv %3br>} {OmaPrompt}
CHRIS ONDROVIC |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Fri Mar 08, 2002 8:04 pm |
Once again, this can be much faster with a paste or the different prompts and what you want to accomplish for each
TonDiening
Beta Upgrading to 6.26 |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sat Mar 09, 2002 4:39 am |
It appears that Mudmaster (that's what you said this is from, right?) uses / as the command character. zMUD uses #. Likewise, it appears MM uses $ for variables, zMUD uses % for predefined variables and @ for user-defined variables. With a little reading of the helpfiles (included, at no additional charge, with every copy of zMUD) you should be able to determine if there are other special characters that will need converting. You would also be well-advised to look up any commands to ensure that you can use the same command-word and that the syntax matches.
You can be sure that nobody here has much interest in spending several hours to convert hundreds of lines of complicated script that they aren't planning to use. You don't even have the courtesy to say what its purpose is.
LightBulb
All scripts untested unless otherwise noted |
|
|
|
ondrovic Beginner
Joined: 22 Feb 2002 Posts: 25 Location: USA
|
|
|
|
ondrovic Beginner
Joined: 22 Feb 2002 Posts: 25 Location: USA
|
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sat Mar 09, 2002 5:38 pm |
In that case, what you actually want is a visual display of your current health (hp,mana,mv) and br (whatever that is). It's not clear from the script where the max values are obtained, as they don't appear to be from the prompt itself. This conclusion is based on the fact that the layout of the first group of /action is different from the layout of the second group. However, all that's needed is the layout. You may notice I haven't included triggers for the mount, but you should be able to add those if needed. It's a fairly simple modification.
#TR {(%d)/(%d)hp (%d)/(%d)m (%d)/(%d)mv (%d)xp} {#VAR MaxHitPts %2;#VAR MaxMana %4;#VAR MaxMove %6}
#TR {~<(%d)hp (%d)m (%d)mv (%d)br} {#VAR HitPts %1;#VAR Mana %2;#VAR Move %3;#VAR BR %4}
For the actual display, I'd recommend using a set of gauge-type buttons. This can be easily done in the settings editor. If you prefer a percentage display, I'd suggest using the status line. I've even included a 3-color routine for the hitpoints, you can use similar ones to color the mana and moves.
#ST {Hitpts:%if(@HitPts*3<@MaxHitPts,%ansi(high,red),%if(@HitPts*3<@MaxHitPts*2,%ansi(yellow),%ansi(high,green))) %eval((@HitPts*100)/@MaxHitPts)~% %ansi(black)Mana: %eval((@Mana*100)/@MaxMana)~% Moves: %eval((@Move*100)/@MaxMove)~% BR: @BR}
If you feel you really must have this displayed in the main window with the MUD output, this should give you a good start.
LightBulb
All scripts untested unless otherwise noted |
|
|
|
ondrovic Beginner
Joined: 22 Feb 2002 Posts: 25 Location: USA
|
Posted: Sat Mar 09, 2002 7:33 pm |
Thanks for the help i will let you know how it works.
CHRIS ONDROVIC |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|