Angels with Scaly Wings

Angels with Scaly Wings

Welcome to the Angels with Scaly Wings Workshop!
Download user created mods, or create and upload some of your own!
Learn More
Tip for those making mods - AND OR operators
I feel the need to extend my knowledge of programming out to those who have made mods in the past, or are currently making them, or plan to start one.

(Well, it's what I learned in GameMaker and I am sure it applies to ALL programming languages, even RenPY...)

When you do an IF statement to check a variable, you can also use the 'AND' 'OR' operators to check multiple variables for certain conditons.

An example of OR:

if annastatus == "neutral" or annastatus == "good": Do this since Anna's status is either Good or Impressed. else: Anna's status is neither Good or Impressed. Do this stuff instead.

An example of AND:

if adinestatus == "neutral" and annastatus == "good": Do this since Adine's status is Good AND Anna's status is Impressed. else: Adine's status is not Good (and/or) Anna's status is not Impressed. Do this stuff instead.

Hopefully this helps.
Last edited by JeffMakesGames; 4 Mar, 2018 @ 3:29am