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

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

*model = "pc_eye_01";
*model_col = colorRGB(0.5,0.5,1.0);
*model_scale = 1.2;

#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      0.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";
#GUARD eq(char_get_attribute("player", "opening"), 1);
#TEXT "I'm done practicing. Let's go back to town.";

#RESPONSE "TOWN2";
#GUARD eq(char_get_attribute("player", "opening"), 2);
#TEXT "I'm done practicing. Let's go back to town.";

#RESPONSE "FLICK";
#GUARD avar("tut_flick_00");
#TEXT "Can you tell me about the flick again?";

#RESPONSE "STAR";
#GUARD avar("tut_flick_02");
#TEXT "Can you tell me about the star again?";

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

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

#PROMPT "STAR";
#TEXT "\"Escape\" will return you to your home in the village. Use it if you find yourself in a dangerous situation, or if you just want to get home quickly.";

#RESPONSE "STAR3";
#TEXT "Okay.";

#PROMPT "STAR3";
#TEXT "To perform this skill, paint a five-pointed star. I've drawn a star on the ground here in the center of the level. Copy it as closely as you can.";

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

#PROMPT "FLICK";
#TEXT "Simply draw a line from any object to another point.";

#RESPONSE "FLICK4";
#TEXT "Okay.";

#PROMPT "FLICK4";
#TEXT "The object you draw from will receive a push in the direction of the line.";

#RESPONSE "FLICK5";
#TEXT "Okay.";

#PROMPT "FLICK5";
#TEXT "A longer line will create a stronger force. The speed in which you draw and release the line is irrelevant.";

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

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

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

#PROMPT "TOWN2";
#TEXT "Let's go!";

#RESPONSE "";
#ACTION script_load("city/cin_02");
#TEXT "Okay.";

##END

#CONTROL "script";
##BEGIN

#SEQUENCE "wait";
# this_control_jump(
    "range faction",
    "
      *faction = \"player\";
	",
    1
    );
# wait( 10000 );

##END