📧 Message Board Archive

Paybot I'm designing
I'm making a savebot where you have to pay to use (please don't steal my idea ;(), and if I did something wrong, please tell me.

{

choice_start();

       set_y 240

       set_title_color 0

       title_start();

"5 You can save for 50 gold."

       title_end();

"Save"

"Leave"

choice_end();void main( void )

{



if (&result == 1)

   {

    if (&gold < 50)

      {

       say("I don't have enough money!", 1);

      }

      else

            }

     

}

sp_seq(&current_sprite, 449);

sp_sound(&current_sprite, 34);

sp_brain(&current_sprite, 6);

sp_hitpoints(&current_sprite, 0);

if (&duck == 1)

{

push_active(0);

}

if (&rain == 1)

{

kill_all_sounds();

&sofr = playsound(67, 11025, 0, 0, 1);

sound_set_survive(&sofr, 1);

turn_midi_off();

stopmidi();

}

if (&game == 5)

{

init("load_sequence graphics\inter\mon\stat- 34");

}

int &diefoo = compare_weapon("item-bt");

if (&diefoo != 1)

{

set_dink_speed(3);

sp_frame_delay(1, 0);

}

if (&story >= 40)

{

&nuts = 667;

}

&buttstomp = 0;

&timer = 0;

}



void hit( void )

{

say("Die, strange machine that doesn't belong here!", 1);

}



void talk( void )

{

Playsound(18,22050,0,0,0);



      freeze(1);

       choice_start();

       "Save your game"

       "Leave the strange machine"

       choice_end();

        unfreeze(1);



       if (&result == 2)

       {

        unfreeze(1);

        return;

       }

       choice_start();

       "&savegameinfo"

       "&savegameinfo"

       "&savegameinfo"

       "&savegameinfo"

       "&savegameinfo"

       "&savegameinfo"

       "&savegameinfo"

       "&savegameinfo"

       "&savegameinfo"

       "&savegameinfo"

        "Nevermind"

       choice_end();



 unfreeze(1);



 if (&result < 11)

{

 save_game(&result);

 if (&game == 5)

 {

 &poksv = &result;

 }

 say_xy("'%Game saved", 1, 30);

 }



}



Re: Paybot I'm designing
: I'm making a savebot where you have to pay to use (please don't steal my idea ;(), and if I did something wrong, please tell me.



Well, the payment commands arn't within a procedure. And the choice_end command has a main() stacked on it, and what does { contain after else? just insert the payment into the save?/yes choice.

Kinda like;

void talk ()

{

choice_start()

"save for 50 gold?"

"Leave"

choice_end()

if(&result == 1)

     {

     if (&gold < 50)

         {

         return;

         }

      (o.k., save in here)

     }

got the idea?

Re: Paybot I'm designing
: I'm making a savebot where you have to pay to use (please don't steal my idea ;(), and if I did something wrong, please tell me.

: {

:  choice_start();

:   set_y 240

:   set_title_color 0

:   title_start();

: "5 You can save for 50 gold."

:   title_end();

: "Save"

: "Leave"

:  choice_end();void main( void )

: {

:  if (&result == 1)

:   {

:   if (&gold < 50)

:   {

:   say("I don't have enough money!", 1);

:   }

:   else

:   }

:  

: }

: sp_seq(&current_sprite, 449);

: sp_sound(&current_sprite, 34);

: sp_brain(&current_sprite, 6);

: sp_hitpoints(&current_sprite, 0);

: if (&duck == 1)

: {

: push_active(0);

: }

: if (&rain == 1)

: {

: kill_all_sounds();

: &sofr = playsound(67, 11025, 0, 0, 1);

: sound_set_survive(&sofr, 1);

: turn_midi_off();

: stopmidi();

: }

: if (&game == 5)

: {

: init("load_sequence graphics\inter\mon\stat- 34");

: }

: int &diefoo = compare_weapon("item-bt");

: if (&diefoo != 1)

: {

: set_dink_speed(3);

: sp_frame_delay(1, 0);

: }

: if (&story >= 40)

: {

: &nuts = 667;

: }

: &buttstomp = 0;

: &timer = 0;

: }

: void hit( void )

: {

:  say("Die, strange machine that doesn't belong here!", 1);

: }

: void talk( void )

: {

: Playsound(18,22050,0,0,0);

:   freeze(1);

:   choice_start();

:   "Save your game"

:   "Leave the strange machine"

:   choice_end();

:   unfreeze(1);

:   if (&result == 2)

:   {

:   unfreeze(1);

:   return;

:   }

:   choice_start();

:   "&savegameinfo"

:   "&savegameinfo"

:   "&savegameinfo"

:   "&savegameinfo"

:   "&savegameinfo"

:   "&savegameinfo"

:   "&savegameinfo"

:   "&savegameinfo"

:   "&savegameinfo"

:   "&savegameinfo"

:   "Nevermind"

:   choice_end();

:  unfreeze(1);

:  if (&result < 11)

:  {

:  save_game(&result);

:  if (&game == 5)

:  {

:  &poksv = &result;

:  }

:  say_xy("'%Game saved", 1, 30);

:  }

: }

Re: Paybot I'm designing
: : I'm making a savebot where you have to pay to use (please don't steal my idea ;(), and if I did something wrong, please tell me.

: : {

: : choice_start();

: : set_y 240

: : set_title_color 0

: : title_start();

: : "5 You can save for 50 gold."

: : title_end();

: : "Save"

: : "Leave"

: : choice_end();void main( void )

: : {

: : if (&result == 1)

: : {

: : if (&gold < 50)

: : {

: : say("I don't have enough money!", 1);

: : }

: : else

: : }

: :

: : }

: : sp_seq(&current_sprite, 449);

: : sp_sound(&current_sprite, 34);

: : sp_brain(&current_sprite, 6);

: : sp_hitpoints(&current_sprite, 0);

: : if (&duck == 1)

: : {

: : push_active(0);

: : }

: : if (&rain == 1)

: : {

: : kill_all_sounds();

: : &sofr = playsound(67, 11025, 0, 0, 1);

: : sound_set_survive(&sofr, 1);

: : turn_midi_off();

: : stopmidi();

: : }

: : if (&game == 5)

: : {

: : init("load_sequence graphics\inter\mon\stat- 34");

: : }

: : int &diefoo = compare_weapon("item-bt");

: : if (&diefoo != 1)

: : {

: : set_dink_speed(3);

: : sp_frame_delay(1, 0);

: : }

: : if (&story >= 40)

: : {

: : &nuts = 667;

: : }

: : &buttstomp = 0;

: : &timer = 0;

: : }

: : void hit( void )

: : {

: : say("Die, strange machine that doesn't belong here!", 1);

: : }

: : void talk( void )

: : {

: : Playsound(18,22050,0,0,0);

: : freeze(1);

: : choice_start();

: : "Save your game"

: : "Leave the strange machine"

: : choice_end();

: : unfreeze(1);

: : if (&result == 2)

: : {

: : unfreeze(1);

: : return;

: : }

: : choice_start();

: : "&savegameinfo"

: : "&savegameinfo"

: : "&savegameinfo"

: : "&savegameinfo"

: : "&savegameinfo"

: : "&savegameinfo"

: : "&savegameinfo"

: : "&savegameinfo"

: : "&savegameinfo"

: : "&savegameinfo"

: : "Nevermind"

: : choice_end();

: : unfreeze(1);

: : if (&result < 11)

: : {

: : save_game(&result);

: : if (&game == 5)

: : {

: : &poksv = &result;

: : }

: : say_xy("'%Game saved", 1, 30);

: : }

: : }

?? Nothing showed up in my earlier post, anyway, here's what I typed (hope it comes through this time) :



Why post it here if you don't want people to steal your idea? It is even possible others have already created this, but that particular d-mod has not been released yet.

Anyway, why do you not try it out in your d-mod? That shoudl help you the most in figuring out if there's something wrong with it ;) And if there is and you can't solve it yourself (try first, because it really helps solving something yourself, you learen by it) you can still post the question here + what went wrong. I'm sure someone here will respond to this saying it will work or not, but if I were you I'd avoid posting something to check if it will work in advance ;)

Re: Paybot I'm designing
I'm sorry to disappoit you amoebalord, but someone has this feature in a released d-mod. I can't remember who did it, but it HAS been done before.:(

Sorry

Re: Paybot I'm designing
: I'm sorry to disappoit you amoebalord, but someone has this feature in a released d-mod. I can't remember who did it, but it HAS been done before.:(

: Sorry

Darn! :( Maybe I'll have to have another "idea session".
Re: Paybot I'm designing
: : I'm sorry to disappoit you amoebalord, but someone has this feature in a released d-mod. I can't remember who did it, but it HAS been done before.:(

: : Sorry

: Darn! :( Maybe I'll have to have another "idea session".



Don't worry about makeing it diffrent just for the sake of it being diffrent, if anything ( like paying to save.) makes your dmod better to play, go for it!. BTW did you get it to work?
Re: Paybot I'm designing
uhum.. if you have an idea, make sure you can make it work on your own.. or it wont be a secret idea anymore.. ;)