The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help How to create a User-Input Script?
ehovda321 Offline
Junior Member

Posts: 38
Threads: 22
Joined: Dec 2011
Reputation: 0
#1
How to create a User-Input Script?

How could I do something like this...?

void 2choices(); // ASKS THE PLAYER IF YES OR NO?
{

if(Input.GetKeyDown("y") == true)
{
SetSwingDoorLocked("door1", false, true);
RemoveItem("key1");
}

if(Input.GetKeyDown("n") == true)
{

}

}

I've seen it done a couple times in custom stories before, but I've lost the names of the custom stories... Sad

Anybody got any ideas? Could I do something like this in the HPL2 engine? Thanks for taking the time to read this! Smile
(This post was last modified: 01-06-2013, 10:26 AM by ehovda321.)
01-06-2013, 10:24 AM
Find


Messages In This Thread
How to create a User-Input Script? - by ehovda321 - 01-06-2013, 10:24 AM



Users browsing this thread: 3 Guest(s)