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
Help on entity activation
MsHannerBananer Offline
Member

Posts: 218
Threads: 34
Joined: Sep 2013
Reputation: 10
#2
RE: Help on entity activation

(07-12-2014, 10:26 PM)TShapeShifter Wrote: hey guys, this is probably a dumb question and much likely the answer is no but I recently have been wondering, is it possible to activate an entity upon the possession of a certain number of notes? Like for example is it possible for an entity to only activate itself if the player picks up all the notes in a story?
Sorry if this is a dumb question, any help is very much appreciated, thank you Smile

It's not a dumb question! xD

If it is possible, I would think you can use an if statement. Note's are considered items, and are technically stored in the inventory. You could set up a script box that calls a check function that looks for the if statement and whether or not you have all notes. The if statement would look something like this:

PHP Code: (Select All)
if(HasItem("nameofnote1") == true && HasItem("nameofnote2") == true && HasItem("nameofnote3") == true)
{
Script called yadda yadda


If the player is missing any of those notes, the script won't call. Big Grin

I've never tried it myself, so I'm not completely sure, however if you can attach script to the interaction with notes, then I'm sure this would work.

07-12-2014, 10:48 PM
Find


Messages In This Thread
Help on entity activation - by TShapeShifter - 07-12-2014, 10:26 PM
RE: Help on entity activation - by MsHannerBananer - 07-12-2014, 10:48 PM
RE: Help on entity activation - by TShapeShifter - 07-12-2014, 10:54 PM
RE: Help on entity activation - by Romulator - 07-13-2014, 01:56 AM
RE: Help on entity activation - by TShapeShifter - 07-13-2014, 03:07 AM
RE: Help on entity activation - by Mudbill - 07-13-2014, 07:38 AM
RE: Help on entity activation - by Romulator - 07-13-2014, 08:42 AM
RE: Help on entity activation - by TShapeShifter - 07-13-2014, 10:03 PM
RE: Help on entity activation - by Mudbill - 07-13-2014, 10:15 PM
RE: Help on entity activation - by TShapeShifter - 07-13-2014, 10:45 PM
RE: Help on entity activation - by Mudbill - 07-14-2014, 12:12 AM



Users browsing this thread: 1 Guest(s)