playMaker

Author Topic: logic question  (Read 1220 times)

laynardo

  • Junior Playmaker
  • **
  • Posts: 54
logic question
« on: April 23, 2016, 12:59:27 PM »
If I want to change a variable from say 0-2 (or really any range), based on another range, let's say the temperature, which has it's own range from like -20 to 120; how would i do that? which Action is that?

So, for example, if the temperature is 50, my other variable would become 1 in the above scenario.

Zeldag

  • Full Member
  • ***
  • Posts: 198
Re: logic question
« Reply #1 on: April 23, 2016, 07:13:37 PM »
Hi,

Use int switch.

Set as many switches as you want and make one of them 50. Make 50 fire off the event which takes you to another state. In the other state use set int value to set your second int to 1.

Also you could use int compare instead of Int switch, less accurate but could be useful depending on the situation.

Good luck with it!