Create story script

From XStoryPlayer Wiki
Revision as of 14:15, 12 January 2015 by Xwikip (Talk | contribs) (Created page with "In this tutorial we will add some scripting: Give feedback to player, make the doors open when a specific event occurs, let female alien walk by. <ol> <li>We don't want the d...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

In this tutorial we will add some scripting: Give feedback to player, make the doors open when a specific event occurs, let female alien walk by.

  1. We don't want the doors to open automatically. We need to make the doors objects that can be driven by the script.
    Open the /init/story/scenes.dat</li> file and add:
    door_objecti DOOR1
    {
      q        =  0;
      q_min    = -150;
      q_max    =  150;
      q_spring =  1.33;
     
      open = false;
     
      obj_name = "cell1"; // 
    }

    </ol>