Thread: [317] PI how to make food halfed when eaten.

Results 1 to 4 of 4
  1. #1 [317] PI how to make food halfed when eaten. 
    Registered Member
    Join Date
    Jul 2012
    Posts
    24
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    So I have Project Insanity source and just added Cake to the FoodToEat enum which makes the chocolate cake eatable but what do I have to modify to make the cake into halfs when its eaten.
    Im supposing there would have to be an if statement made in the eat method?

    -pretty new to rsps programming.
    Reply With Quote  
     

  2. #2  
    Registered Member 2nubs1cup's Avatar
    Join Date
    Jan 2013
    Posts
    972
    Thanks given
    77
    Thanks received
    90
    Rep Power
    15
    Quote Originally Posted by Fragileone View Post
    So I have Project Insanity source and just added Cake to the FoodToEat enum which makes the chocolate cake eatable but what do I have to modify to make the cake into halfs when its eaten.
    Im supposing there would have to be an if statement made in the eat method?

    -pretty new to rsps programming.
    Treat it as if it was a potion when you drink the 4 dose potion for example, it deletes the 4 dose and spawns a 3 dose. For the cake you make it where if you eat it, it deletes the full cake and spawns a 2/3 cake.
    Reply With Quote  
     

  3. #3  
    OS-Saradomin Founder & Developer

    Saradomin's Avatar
    Join Date
    Nov 2015
    Posts
    593
    Thanks given
    296
    Thanks received
    149
    Rep Power
    238
    Quote Originally Posted by 2nubs1cup View Post
    Treat it as if it was a potion when you drink the 4 dose potion for example, it deletes the 4 dose and spawns a 3 dose. For the cake you make it where if you eat it, it deletes the full cake and spawns a 2/3 cake.
    ^This, also you posted in the wrong section.
    Reply With Quote  
     

  4. #4  
    Donator


    Join Date
    Jan 2014
    Posts
    1,652
    Thanks given
    428
    Thanks received
    501
    Rep Power
    221
    503+ > shit pi 317
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 5
    Last Post: 02-24-2015, 10:45 PM
  2. Replies: 4
    Last Post: 12-14-2014, 02:54 AM
  3. Replies: 3
    Last Post: 06-13-2014, 05:39 AM
  4. Replies: 20
    Last Post: 05-02-2013, 07:52 PM
  5. Replies: 6
    Last Post: 01-23-2012, 01:06 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •