Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function showPhysiology()
- WindowWidth = 10;
- WindowHeight = 0;
- WindowWidth, WindowHeight = getMainWindowSize();
- createMiniConsole("phys",WindowWidth-1000,0,200,200)
- clearWindow("phys")
- setBackgroundColor("phys",0,0,0,255)
- setMiniConsoleFontSize("phys", 8)
- -- wrap lines in window "phys" at 40 characters per line
- setWindowWrap("phys", 40)
- -- set default font colors and font style for window "phys"
- setTextFormat("phys",255,255,0,0,0,0,0,0,0)
- moveWindow("phys",WindowWidth-330,affy-96)
- resizeWindow("phys",affwidth,250)
- handleWindowResizeEvent()
- cecho("phys","\n<yellow> "..string.rep("-",13))
- cecho("phys","\n<yellow>|Tempers = "..humours.tempers..string.rep(" ",3-string.len(humours.tempers)).."|")
- cecho("phys","\n<yellow> "..string.rep("-",13).."\n")
- local color = "green"
- if humours.balance == 1 then
- color = "green"
- else
- color = "red"
- end
- cecho("phys","\n<"..color..">Temper Balance")
- if humours.homunculus == 1 then
- color = "green"
- else
- color = "red"
- end
- cecho("phys","\n<"..color..">Homunculus Balance\n\n")
- if humours.choleric == 1 then
- color = "green"
- else
- color = "red"
- end
- cecho("phys","\n<"..color..">Choleric")
- if humours.melancholic == 1 then
- color = "green"
- else
- color = "red"
- end
- cecho("phys","\n<"..color..">Melancholic")
- if humours.phlegmatic == 1 then
- color = "green"
- else
- color = "red"
- end
- cecho("phys","\n<"..color..">Phlegmatic")
- if humours.sanguine == 1 then
- color = "green"
- else
- color = "red"
- end
- cecho("phys","\n<"..color..">Sanguine")
- if humours.phlog == 1 then
- color = "green"
- else
- color = "red"
- end
- cecho("phys","\n\n<"..color..">Phlogistication")
- if humours.vitrified == 1 then
- color = "green"
- else
- color = "red"
- end
- cecho("phys","\n<"..color..">Vitrify")
- if humours.corrupt == 1 then
- color = "green"
- else
- color = "red"
- end
- cecho("phys","\n<"..color..">Corruption")
- cecho("phys","\n\n<yellow>H Target: <red>"..humours.hTarget)
- end
Add Comment
Please, Sign In to add comment