mob
verb
UpdateSalt()
src.SaltValue=winget(src,"Salt.Saltbar","value")
winset(src,"Salt.SaltPercent","text='[src.SaltValue]'")
mob
verb
Cook()
if(usr.SaltValue>=20)
usr<<"WATER!!WATER!!...Too"
//There is more stuff here,but its useless for this post its like a copy paste for other Ingredients.
Problem description:
This is for One Piece Pirates Galore,i'm working on Cooking and this Slider is supposed to set in % how much salt i want for ex.
now i keep geting this Runtime error,i don't want the "SaltValue" Var to be considered as a Text i need to calculate stuff....
Runtime Error:
runtime error: type mismatch: cannot compare "42.207794" to 20
proc name: Cook (/mob/verb/Cook)
usr: Kidpaddle45 (/mob/Player)
src: Kidpaddle45 (/mob/Player)
call stack:
Kidpaddle45 (/mob/Player): Cook()