#GENERAL
*name = "tutorial_vortex";
*faction = "npc";

*rad        = 1.2;
*mass       = 30.0;
*elasticity = 0.3;
*drag       = 0.5;
*friction   = 4.0;
*hardness   = 0.4;
*roll       = 1.0;

*model = "npc_miner_01";
*model_scale = 1.2;
*model_rot = 0;

#ATTRIBUTE "ccrange";
#BASE      2.0;
#ATTRIBUTE "ccspeed";
#BASE      3.0;
#ATTRIBUTE "ccdamage";
#BASE      4.0;
#ATTRIBUTE "attract";
#BASE      20.0;
#ATTRIBUTE "leak";
#BASE      0.0;
#ATTRIBUTE "speed";
#BASE      25.0;
#ATTRIBUTE "power";
#BASE      0.0;
#ATTRIBUTE "health";
#BASE      1000000.0;
#ATTRIBUTE "res";
#BASE      1000000.0;
#ATTRIBUTE "rot_speed";
#BASE      100.0;
#ATTRIBUTE "exp";
#BASE      0.0;
#ATTRIBUTE "display damage";
#BASE      0.0;

#INTERACTION
#ACTION

#EVENT
##BEGIN

#PROMPT "TUT";
#TEXT "Need some help?";

#RESPONSE "TOWN";
#TEXT "I'm done practicing. Take me back to town.";

#RESPONSE "DRAW";
#TEXT "Can you give me some tips on drawing outward vortices?";

#RESPONSE "DRAW6";
#GUARD eq(avar("target_vortex_jump_done"), 1);
#TEXT "Can you give me some tips on drawing inward vortices?";

#RESPONSE "";
#ACTION item_make("banana_02", add(rand(-2,2), char_get_x("tutorial_vortex")), add(rand(-2,2), char_get_y("tutorial_vortex")));
  item_make("banana_02", add(rand(-2,2), char_get_x("tutorial_vortex")), add(rand(-2,2), char_get_y("tutorial_vortex")));
  item_make("banana_02", add(rand(-2,2), char_get_x("tutorial_vortex")), add(rand(-2,2), char_get_y("tutorial_vortex")));
  item_make("banana_02", add(rand(-2,2), char_get_x("tutorial_vortex")), add(rand(-2,2), char_get_y("tutorial_vortex")));
#TEXT "I need an ink refill.";

#RESPONSE "";
#TEXT "Nope.";

#PROMPT "DRAW";
#TEXT "There are two types of vortices. First, we'll learn the outward vortex. The outward vortex gives objects a vertical push. ";

#RESPONSE "DRAW2";
#TEXT "Okay.";

#PROMPT "DRAW2";
#TEXT "Take a look at this sample drawing on the ground. You'll want to copy it as closely as you can. Start from the center of the spiral.";

#RESPONSE "DRAW3";
#TEXT "Okay.";

#PROMPT "DRAW3";
#TEXT "The larger the spiral, the larger your vortex will be. More layers in your spiral will increase the raw strength of the vortex.";

#RESPONSE "DRAW4";
#TEXT "Okay.";

#PROMPT "DRAW4";
#TEXT "An outward vortex will also give objects a lateral push depending on where the center of your spiral is. For example, an object to the right of the center will move right.";

#RESPONSE "DRAW5";
#TEXT "Okay.";

#PROMPT "DRAW5";
#TEXT "Now use the outward vortex skill to jump these three targets over the wall and into the corral. If you need additional ink, talk to me. Good luck!";

#RESPONSE "";
#TEXT "Thanks.";

#PROMPT "DRAW6";
#TEXT "Now, we'll learn the inward vortex. The inward vortex sucks objects towards the center of the vortex.";

#RESPONSE "DRAW7";
#TEXT "Okay.";

#PROMPT "DRAW7";
#TEXT "Paint another spiral, except this time, start from the outside and draw inwards.";

#RESPONSE "DRAW8";
#TEXT "Okay.";

#PROMPT "DRAW8";
#TEXT "An inward vortex deals damage by causing objects to collide with each other at high speeds.";

#RESPONSE "DRAW9";
#TEXT "Okay.";

#PROMPT "DRAW9";
#TEXT "Be careful not to get caught in your own inward vortex, or you could be in real danger.";

#RESPONSE "DRAW10";
#TEXT "Okay.";

#PROMPT "DRAW10";
#TEXT "Now use the inward vortex skill to cause all of these targets to hit each other at the same time. If you need additional ink, talk to me. Good luck!";

#RESPONSE "";
#TEXT "Thanks.";

#PROMPT "TOWN";
#TEXT "Good luck, friend!";

#RESPONSE "";
#ACTION script_load("player/teleport");
#TEXT "Thanks.";

##END

#CONTROL "script";
##BEGIN

#SEQUENCE "wait";
# move_to(41, 76);
# wait( 10000 );

##END