-- let's store a Visionaire Studio condition inside of a variable to use later on!
local cond = getObject('Conditions[condition_name]'):getBool(VValueCondition)
if cond then
print('Condition is true!')
else
print('Condition is false!')
end
-- let's store a Visionaire Studio condition inside of a variable to use later on!
local cond = getObjects('Conditions[condition_name]'):getBool(VValueCondition)
-- let's create a function which will print a positive statement!
function printPos()
print('Condition is true!')
end
-- let's create a function which will print a negative statement!
function printNeg()
print('Condition is false!')
end
-- let's query if the condition is true or false & call the required function for printing the message!
if cond == true then
printPos()
else
printNeg()
end
Ich hoffe einer von euch weiß bescheid
--*--
I hope one of you white people
Hey,
can you please help me with this Problem?
I want to have a grid, where objects can be placed.
I tried to program the following description, but i'm failed. :
(description, no program language)
Load the actually Curser position "y /100"
delete all after the ","
set variable "actualygrid"
Load the actually Curser position "x /100"
delete all after the ","
set variable "actualxgrid"
Set "Object0" to x = "actualxgrid*100" y = "actualygrid*100"
Can I program with this logic in Lua or Visionaire?
Or do I have to think different? (logic like a program in ST)
And is there any option to see the variables (Var1Bool = true or False bzw. Var2Int = 1343...usw) while the Game is running?
I'm sorry about my inability...
TOXIN
(I also hope you can understand my bad english )
Lua ist eine sehr einfach gehaltene Scriptsprache, welche gerade bei Spielen oder auch Engines häufig genutzt wird. Lua bietet eine sehr nahe C implementation und ist dazu sehr schnell
Wenn Du dich mit Visual Basic auskennst, wird Dir Lua anfangs zwar seltsam vorkommen, vergleiche es mit "php".