Source code is at github.com/punyauk/VivoSim

Questão New Drink or new Recipe

  • Louis Quatorze
  • Autor do tópico
  • Obrigado recebido 30

New Drink or new Recipefoi criado por Louis Quatorze

Posted 02 Set. 2020 19:43 #577
Hello
how to do to parameter which % to drink from a bottle par exemple?
I Think about PRODUCT_PARAMS but what put in this line?
Thanks a lot

Louis
por Louis Quatorze

Por favor Iniciar sessão ou Criar uma conta para se juntar à conversa.

  • Brinley Taliesin
  • Obrigado recebido 30

Respondido por Brinley Taliesin no tópico New Drink or new Recipe

Posted 02 Set. 2020 19:53 #578
I think that is set inside the HUD in the DATA_VALUES file.
For example:
Apple juice glass|100|Thirsty:-70 means you consume 100% and Thirst decreases 70
Apple Pie|25|Hungry:-50 means you consume 25% and Hunger decreases 50
por Brinley Taliesin
Os seguintes utilizadores Agradeceram: Louis Quatorze

Por favor Iniciar sessão ou Criar uma conta para se juntar à conversa.

  • Louis Quatorze
  • Autor do tópico
  • Obrigado recebido 30

Respondido por Louis Quatorze no tópico New Drink or new Recipe

Posted 02 Set. 2020 20:01 #579
hum I think this is when Recipe is in server
but in first we have % on product in hovertext but I will try to see
por Louis Quatorze

Por favor Iniciar sessão ou Criar uma conta para se juntar à conversa.

  • Louis Quatorze
  • Autor do tópico
  • Obrigado recebido 30

Respondido por Louis Quatorze no tópico New Drink or new Recipe

Posted 02 Set. 2020 20:23 #580
Thanks Brinley!

It works perfectly now!
Have a nice evening!
Louis!
por Louis Quatorze

Por favor Iniciar sessão ou Criar uma conta para se juntar à conversa.

  • Admin
  • Obrigado recebido 258

Respondido por Admin no tópico New Drink or new Recipe

Posted 02 Set. 2020 21:20 #581
Yes the way the HUD works is it looks first in that notecard to see if there is an entry for the product. If not it uses the values it finds in the product, but in that case it will always use 100% of it.

At the moment, the DATA_VALUES notecard can get overwritten as part of a HUD update, but I will look to make it so either you can store your own values or/and the product notecard can allow for values other than 100%
por Admin
Os seguintes utilizadores Agradeceram: Louis Quatorze

Por favor Iniciar sessão ou Criar uma conta para se juntar à conversa.

donate

hg.vivosim.net:8002:Mintor

hg.vivosim.net:8002:Lugo

hg.vivosim.net:8002:Sandy Island

hg.vivosim.net:8002:Julian Beach

opensim logo