Re: TIB: -Frank--1&2


[Prev][Next][Index][Thread]

Re: TIB: -Frank--1&2




SWISH 97 wrote:
> 
> In a message dated 98-01-17 03:04:48 EST, jody1 writes:
> 
> << First of all, the negative balance. I'm not sure how your code is set
>  up, but you're going to need something like this.
>  :U-5->U
>  :If U<0
>  :Then
>  :(whatever you want it to do if the balance is negative)
>  :End >>
> 
> I tried this and it doesn't work.  Maybe I misplaced it, if that is the case
> were in the program should i put this code like before were the buy something
> or after or whatever.  If that is not the case can someone tell me the real
> way to have a code were they can't buy something in the game if they dont got
> the cash, thanx-Frank


What do you mean "it doesn't work"? What doesn't work? That SHOULD 
work - at least the idea is right.
What you need to do is this. 

                    |-------------------------------| 
                    | person tries to buy something |
                    |-------------------------------|
                                   |
                                   |
                  |---------------------------------| 
                  | subract money - get new balance |
                  |---------------------------------|
                              |
                              |
                   YES     |---------------|  NO
                -----------<  balance < 0  >---------
                |          |---------------|        |
                |                                   |
             |--------|                             |
             | Stop   |                     continue with program
             |--------|
Jody Snider
jody1@alaska.net


References: