Clerification On Scripting
merries59
29 Oct 2006, 18:29I am using QDK and Quest Pro. I have looked through the documents and made notes but Im not clear on the exact syntax for the following:
Health for player:
%health[userid]%
type numeric
value <100>
scope local
display <!%%health>
onchange if <%health% <= 0) then msg <You are unconcious!>
end define
Is the coding correct and how do I input this using QDK?
Thank you for the help!
Health for player:
%health[userid]%
type numeric
value <100>
scope local
display <!%%health>
onchange if <%health% <= 0) then msg <You are unconcious!>
end define
Is the coding correct and how do I input this using QDK?
Thank you for the help!
Elexxorine
29 Oct 2006, 20:32define variable <health>
type numeric
value <100>
scope local
display <Health: !>
onchange if ( %health[userid]% <= 0 ) then msg <You are unconcious!>
end define
To enter this via QDK, simply add a new variable and each feild enter the apropiate data. the onchange is a 'condition' of camparing values (heath and 0). But it'll be much simply to just add it in a text editer, by opening the game, finding where the variables go (create a 'dummy' variable to test where they go if you don't know) and pasting this in.