Jump to content

Recommended Posts

Posted

I attached a simple test mission. All it does is to wait for one second, then evaluate a "lua predicate" trigger with argument "return true". Since this is necessarily true, it should output a simple message with which I tasked the triggered action. The message never displays, but displays if I remove the lua predicate, indicating that the lua predicate command doesn't work any more in 1.5 beta. I already posted this in the mission editor's corner, and Grimes said he could reproduce it. So, I report it here as a bug.

lua predicate bug.miz

[sIGPIC][/sIGPIC]

 

Intel Core I7 4820K @4.3 GHz, Asus P9X79 motherboard, 16 GB RAM @ 933 MHz, NVidia GTX 1070 with 8 GB VRAM, Windows 10 Pro

  • 1 month later...
  • 1 year later...
Posted

Yes, this is indeed unbelievable that this still isn't working after a couple of years. It's not that that is difficult to fix, it's a rather trivial thing. Do script file is not a good replacement, since do script file can only be done as an action, not as the trigger if statement, correct?

 

Schematically:

 

if lua predicate then do .. end

 

cannot be replaced by: if something then do 'do script file' end

[sIGPIC][/sIGPIC]

 

Intel Core I7 4820K @4.3 GHz, Asus P9X79 motherboard, 16 GB RAM @ 933 MHz, NVidia GTX 1070 with 8 GB VRAM, Windows 10 Pro

  • 3 months later...
Posted

I was trying to use LUA predicate trigger condition. I can't get it to work with the condition text simply "true".

 

I have no idea how to make this mission otherwise.

  • 4 weeks later...
Posted

if 1 == 1 then
return true 
end

isn't working.

 

I also tried simply

return true

 

I know the output works since I added a |OR| Group Alive in conditional and the debug text triggered just fine.

  • 2 years later...
Posted

are lua predicates still not working?

 

at least in "mission goals" i cant get them to work.

tried "true" and "return true", neither works

CPU: AMD Ryzen 5 1600X

GPU: AMD RX 580

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...