- D1 Meta Docs - Denizen Script -
Home Page / Pi to one million places / Contact mcmonkey / Donate / Paste Scripts / Denizen Help /
You are browsing as a guest.
Login | Register


Click here to create your own public paste ~ ~ click to duplicate and edit this paste


TitleQuestion
TypeDenizen Script
Date2016/11/23 21:52:06 UTC-08:00
ByBloodEko
Other
Paste
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
2000

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
  }



RawRaw



Pastes made: 54733