You are browsing as a guest.
Login | Register
~ mcmonkey's simpler pastebin ~ Inspired by Hastebin ~ home page ~ Denizen help ~
click to use the normal pastebin instead ~ Click to make your own paste ~ click to duplicate and edit this paste


Title:
Type:
Date:
By:
Raw:
Other:
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
2000

Question
Denizen Script
2016/11/23 21:52:06 UTC-08:00
BloodEko
Click here to view this paste as a raw text file | Or download the script



How can this scenario be build to get it handled with using only 1 if ?

A shopsystem allows to set a money-limit for specific shops.
A limited shop can only give out this amount of money.
Other shops may are unlimited.

How could the if be builded, that it would be 'true' in these 2 scenarios:
The shop has enough money left
  or
The shop has infinity money




if <shopmoneyATtheMoment||<shopmoneySTART>> <operator> <worthOfaItem> {
  - sell the item
  - set the new shopmoneyATtheMoment
  }