ScriptUO
Official ScriptUO EasyUO Scripts => Script Debug => Topic started by: kenshin87 on March 24, 2010, 10:01:46 AM
-
hey everyone so this is a script that i pretty much made real quickly because i have some people in the guild that dont normally use easyuo but cant see the health bar of themselves to even play. or i hear a lot of people just saying oh crap i didnt even know i was getting hit or my hitpoints were low. so feel free to take a look at it. it is pretty simple and good use in pvp big fights. i do need a little bit of help though trying to make the menu a little bit bigger or for people to maybe resize it. also i would like to change the colors depending on how low your health or mana gets. hope everyone enjoys it as is and as input comes i will change it accordingly. further i would eventually like to have an area where it will tell you if your cursed or if you poisoned and so on. thanks everyone
;SCRIPT BY KENSHIN87
;displays your general statisics in large form.
menu clear
menu Show 800 270
menu Window Title Your Current STATISTICS
menu Window Color YELLOW
menu Font Name Times New Roman
menu Font Size 30
menu Font BGColor LIME
menu Text EUOLabel68 0 10 HIT POINTS
menu Font Name Times New Roman
menu Font BGColor BLUE
menu Text EUOLabel68 0 50 MANA
menu Font Name Times New Roman
menu Font BGColor LIME
menu Text EUOLabel68 0 100 STAMINA
menu Font Size 30
menu Font BGColor LIME
menu Text EUOLabel68 230 10 #HITS
menu Font Name Times New Roman
if #maxhits < (#maxhits / 2)
menu Window Color RED
return
menu Font BGColor BLUE
menu Text EUOLabel68 230 50 #MANA
if #maxmana < (#maxmana / 2)
menu Font BGColor red
return
menu Font Name Times New Roman
menu Font BGColor LIME
menu Text EUOLabel68 230 90 #STAMINA
wait 10s
-
OK, you have a very good start....let's start with a loop though:
;Initial display of menu
gosub ShowMenu
;Main Loop
repeat
;We will add the stuff to constantly update the display here
until #true=#false ;This will make it loop forever
sub ShowMenu
menu clear
menu Window Title Your Current STATISTICS
menu Window Color YELLOW
menu Font Name Times New Roman
menu Font Size 30
menu Font BGColor LIME
menu Text HPLabel 0 10 HIT POINTS
menu Text CurrentHP 230 10 #HITS
menu Font BGColor BLUE
menu Text MANALabel 0 50 MANA
menu Text CurrentMANA 230 50 #MANA
menu Font BGColor LIME
menu Text STAMLabel8 0 90 STAMINA
menu Text CurrentSTAM 230 90 #STAMINA
menu Show 800 270
return
I also cleaned up your menu a little bit...we could probably clean it up a little further later.
Now, state what how you want the display to update (for example: ANYTIME your HP changes, update the menu). Then state what other actions you want (such as: If HP < 20, make it bright RED!)
Once we know what we WANT to do, then we can work through it step by step and implement it!
-
thanks maddog. so as i said before that now a days a lot of older people are playnig and sometimes its hard for them to pvp correctly because they cant see HP they cant see mana they didnt realized they were mortaled and or poisoned so forth and so on. so basically i would like the script to just be on top of the window and have the user of course move it to where they would like it. if the person is poisoneed then the background will be green if the person is mortaled turn it gold and if the str gets low turn it red. i would like to update it when something changes whether it be stam health or mana. or would that be to much you think? also now that i am thinking it could be a helpful training tool. eventually be able to detect the deferent buffs such as omened and o forth
-
All of it is definitely do-able. You might want to start a list of priorities though.
For example, what happens if they're mortalled AND poisoned?! Which color should the background be??
These are all important questions, and to be completely honest, I think I have a script somewhere that does this, but I'd like to see you work through this one and I can use mine to help you through!
-
hey maddog is there a site where i can check to see the colors i may choose from?
-
umm....not sure...if you download the menu designer and the old version of EUO, then you can see the list in the menu creator
-
moved to debug.
-
hey maddog is there a site where i can check to see the colors i may choose from?
http://palettebuilder.com/rgb.aspx (http://palettebuilder.com/rgb.aspx)
JaF
-
Hey all just coming back. will be testing my skills. back in this to see if i still have it. Hope everyone is doing well