Reply to Re: ChatGPT 3.5 and DinkC
If you don't have an account, just leave the password field blank.
hmm, maybe if it is given enough examples, practice and correction it will get there
Another example of using ChatGPT
all the images
first pass script from ChatGPT
end result script
Another example of using ChatGPT
all the images
first pass script from ChatGPT
void main(void)
{
int &goldFound = 0;
// Check if Dink has already found the gold
if (&goldFound == 1)
{
say("`3I already have the gold, you liar!", 1);
kill_this_task();
}
// Display dialog with the nasty peasant
say_stop("`3Hey you! Where's the gold?", 1);
wait(500);
say_stop("`5I don't know what you're talking about!", ¤t_sprite);
wait(500);
say_stop("`3Don't lie to me! Tell me where it is!", 1);
wait(500);
say_stop("`5Okay, okay! It's hidden in the old windmill east from here.", ¤t_sprite);
wait(500);
// Check if Dink hits the peasant
freeze(1);
if (hit == 1)
{
say_stop("`5Ouch! How dare you!", ¤t_sprite);
wait(500);
say_stop("`3You lied to me! That's what you get!", 1);
wait(500);
// Hurt Dink by 4 points
sp_pframe(1, 3);
wait(200);
sp_pframe(1, 1);
&life -= 4;
}
// Set goldFound to 1 to indicate Dink found the gold
&goldFound = 1;
unfreeze(1);
kill_this_task();
}
end result script
// main procedure
void main(void)
{
preload_seq(231); // Preload walk sequence for direction 1
preload_seq(233); // Preload walk sequence for direction 3
preload_seq(237); // Preload walk sequence for direction 7
preload_seq(239); // Preload walk sequence for direction 9
sp_brain(¤t_sprite, 16); // Set the brain to 16
sp_speed(¤t_sprite, 2); // Set the speed to 2
sp_base_walk(¤t_sprite, 230); // Set the base walk to sprite 230 (old man)
}
// talk procedure
void talk(void)
{
freeze(¤t_sprite); // Freeze the peasant while talking
freeze(1); // Freeze Dink while talking
// Display dialog with the nasty peasant
say_stop("Hey you! Where's the gold?", 1);
wait(200);
say_stop("I don't know what you're talking about!", ¤t_sprite);
wait(200);
say_stop("Don't lie to me! Tell me where it is!", 1);
wait(200);
say_stop("Okay, okay! It's hidden in the old windmill east from here.", ¤t_sprite);
wait(200);
unfreeze(¤t_sprite); // Unfreeze the peasant after conversation
unfreeze(1); // Unfreeze Dink after conversation
}
// hit procedure
void hit(void)
{
freeze(¤t_sprite); // Freeze the peasant while reacting to hit
freeze(1); // Freeze Dink while reacting to hit
say_stop("Ouch! How dare you!", ¤t_sprite);
wait(200);
say_stop("You lied to me! That's what you get!", 1);
wait(200);
// Hurt Dink by 4 points
hurt(4);
say_stop("Next time, think twice before messing with me!", ¤t_sprite);
wait(200);
unfreeze(¤t_sprite); // Unfreeze the peasant after reacting to hit
unfreeze(1); // Unfreeze Dink after reacting to hit
}






