Jump to content

Embarassing papyrus question


Guest GuyWhoAbruptlyDisappeared

Recommended Posts

Guest GuyWhoAbruptlyDisappeared
Posted

How do I make a multiple argument if statement in papyrus?

I have spent way too much time than is reasonable trying to figure this out.

 

If a == b and c ==d 

endIf

 

This is nearly impossible to google because of the words involved.

 

causes a massive amount of script errors.

Guest GuyWhoAbruptlyDisappeared
Posted

Could do:

if a == b

  if c == d

 

That's what I have been doing. But, having coded in several languages and scripted for many games, not having the conditionals drives me insane.

 

For example, in lua:

 

if (a == f) and (c == d) or (a == d) and (b == c) then swallowdick() end

 

Using only if, that becomes very complicated very quickly.

 

if (a == f)

 if (c == d)

  swallowdick()

 endif

elseif (a == d)

 if (b == c)

  swallowdick()

 endif

endif

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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