Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support


Post Reply 
 
Thread Rating:
  • 14 Vote(s) - 2.93 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Challenge Threadᆦ ᆦ ᆦ
Author Message
Your Computer Offline
SCAN ME!

Posts: 3,475
Joined: Jul 2011
Reputation: 234
Post: #53
RE: [CHALLENGE THREAD]

(04-14-2012 09:03 PM)Homicide13 Wrote:  Is "global" supposed to refer to primitives that can be accessed from anywhere within the .hps script file, or is it supposed to refer to primitives that can be shared between hps files? (I really hope I'm using the word "primitive" correctly in this situation. >_> )

Tongue Classes aren't primitives (though they are their own data type). But, yes, things that are in the global scope can be accessed anywhere within the script, but in HPL2 it is only within that one script.

(04-14-2012 09:03 PM)Homicide13 Wrote:  Can you give me some examples of these reasons?

Let's say, for example, one of your classes has members that are supposed to reference other classes. If you try to call a method that accesses these members without first instantiating these other classes, this will crash the program, or at least exit out with an error. However, AngelScript seems to instantiate the class at the time of declaring the variable that references the object, so this may not be an issue here. There are other reasons why one would want to define their own constructors (e.g. you want a member to have a different value at construction time), but these reasons usually do not relate to accessing members that don't necessarily exist.

Tutorials: From Noob to Pro
(This post was last modified: 04-14-2012 09:27 PM by Your Computer.)
04-14-2012 09:27 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Challenge Threadᆦ ᆦ ᆦ - nemesis567 - 04-10-2012, 02:49 PM
RE: [CHALLENGE THREAD] - JetlinerX - 04-10-2012, 04:49 PM
RE: [CHALLENGE THREAD] - Cranky Old Man - 04-10-2012, 05:12 PM
RE: [CHALLENGE THREAD] - AnthonyTrix - 04-10-2012, 05:40 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-10-2012, 05:45 PM
RE: [CHALLENGE THREAD] - Kreekakon - 04-10-2012, 06:13 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-10-2012, 06:24 PM
RE: [CHALLENGE THREAD] - Kreekakon - 04-10-2012, 06:28 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-10-2012, 06:35 PM
RE: [CHALLENGE THREAD] - Putmalk - 04-10-2012, 06:53 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-10-2012, 06:56 PM
RE: [CHALLENGE THREAD] - palistov - 04-10-2012, 07:44 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-10-2012, 08:02 PM
RE: [CHALLENGE THREAD] - palistov - 04-10-2012, 08:27 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-10-2012, 08:31 PM
RE: [CHALLENGE THREAD] - palistov - 04-10-2012, 09:04 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-10-2012, 09:09 PM
RE: [CHALLENGE THREAD] - palistov - 04-10-2012, 09:39 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-10-2012, 09:50 PM
RE: [CHALLENGE THREAD] - Miss Rigi - 04-10-2012, 10:20 PM
RE: [CHALLENGE THREAD] - palistov - 04-10-2012, 10:30 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-11-2012, 01:09 AM
RE: [CHALLENGE THREAD] - nemesis567 - 04-11-2012, 01:01 PM
RE: [CHALLENGE THREAD] - ClayPigeon - 04-11-2012, 02:58 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-11-2012, 05:20 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-11-2012, 07:56 PM
RE: [CHALLENGE THREAD] - ClayPigeon - 04-11-2012, 09:48 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-12-2012, 01:09 AM
RE: [CHALLENGE THREAD] - Homicide13 - 04-12-2012, 06:16 AM
RE: [CHALLENGE THREAD] - ClayPigeon - 04-12-2012, 09:47 AM
RE: [CHALLENGE THREAD] - DRedshot - 04-12-2012, 11:26 AM
RE: [CHALLENGE THREAD] - nemesis567 - 04-12-2012, 02:04 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-12-2012, 04:26 PM
RE: [CHALLENGE THREAD] - Your Computer - 04-12-2012, 06:19 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-12-2012, 07:11 PM
RE: [CHALLENGE THREAD] - Your Computer - 04-12-2012, 07:49 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-12-2012, 07:51 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-12-2012, 09:20 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-12-2012, 09:40 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-14-2012, 01:43 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-14-2012, 05:22 PM
RE: [CHALLENGE THREAD] - Putmalk - 04-14-2012, 05:59 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-14-2012, 06:17 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-14-2012, 07:14 PM
RE: [CHALLENGE THREAD] - Your Computer - 04-14-2012, 07:33 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-14-2012, 08:10 PM
RE: [CHALLENGE THREAD] - Your Computer - 04-14-2012, 08:38 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-14-2012, 09:03 PM
RE: [CHALLENGE THREAD] - Your Computer - 04-14-2012 09:27 PM
RE: [CHALLENGE THREAD] - DRedshot - 04-14-2012, 09:12 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-14-2012, 08:39 PM
RE: [CHALLENGE THREAD] - Your Computer - 04-14-2012, 08:47 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-14-2012, 08:51 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-14-2012, 09:27 PM
RE: [CHALLENGE THREAD] - Your Computer - 04-14-2012, 11:38 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-14-2012, 10:32 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-15-2012, 12:24 AM
RE: [CHALLENGE THREAD] - Your Computer - 04-15-2012, 12:50 AM
RE: [CHALLENGE THREAD] - nemesis567 - 04-15-2012, 12:30 AM
RE: [CHALLENGE THREAD] - Apjjm - 04-15-2012, 12:32 AM
RE: [CHALLENGE THREAD] - nemesis567 - 04-15-2012, 12:34 AM
RE: [CHALLENGE THREAD] - Homicide13 - 04-15-2012, 01:21 AM
RE: [CHALLENGE THREAD] - Your Computer - 04-15-2012, 01:32 AM
RE: [CHALLENGE THREAD] - nemesis567 - 04-15-2012, 01:53 AM
RE: [CHALLENGE THREAD] - Homicide13 - 04-15-2012, 02:00 AM
RE: [CHALLENGE THREAD] - nemesis567 - 04-15-2012, 02:03 AM
RE: [CHALLENGE THREAD] - Homicide13 - 04-15-2012, 02:11 AM
RE: [CHALLENGE THREAD] - Your Computer - 04-15-2012, 02:27 AM
RE: [CHALLENGE THREAD] - nemesis567 - 04-15-2012, 02:37 AM
RE: [CHALLENGE THREAD] - Homicide13 - 04-15-2012, 02:45 AM
RE: [CHALLENGE THREAD] - Your Computer - 04-15-2012, 02:51 AM
RE: [CHALLENGE THREAD] - Homicide13 - 04-15-2012, 02:58 AM
RE: [CHALLENGE THREAD] - Your Computer - 04-15-2012, 02:59 AM
RE: [CHALLENGE THREAD] - Homicide13 - 04-15-2012, 03:09 AM
RE: [CHALLENGE THREAD] - Homicide13 - 04-15-2012, 04:31 AM
RE: [CHALLENGE THREAD] - nemesis567 - 04-15-2012, 01:59 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-15-2012, 03:01 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-15-2012, 04:10 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-15-2012, 06:27 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-15-2012, 06:39 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-15-2012, 06:46 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-15-2012, 06:55 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-17-2012, 04:41 AM
RE: [CHALLENGE THREAD] - nemesis567 - 04-17-2012, 01:44 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-17-2012, 05:37 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-17-2012, 05:40 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-17-2012, 05:46 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-17-2012, 05:49 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-17-2012, 05:57 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-17-2012, 05:57 PM
RE: [CHALLENGE THREAD] - DRedshot - 04-17-2012, 05:59 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-17-2012, 06:00 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-17-2012, 06:06 PM
RE: [CHALLENGE THREAD] - DRedshot - 04-17-2012, 06:34 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-17-2012, 06:40 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-17-2012, 07:08 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-17-2012, 08:24 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-17-2012, 08:57 PM
RE: [CHALLENGE THREAD] - Apjjm - 04-17-2012, 09:16 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-17-2012, 10:22 PM
RE: [CHALLENGE THREAD] - DRedshot - 04-17-2012, 10:52 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-17-2012, 11:31 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-17-2012, 11:12 PM
RE: [CHALLENGE THREAD] - Your Computer - 04-17-2012, 11:33 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-17-2012, 11:57 PM
RE: [CHALLENGE THREAD] - Your Computer - 04-18-2012, 01:05 AM
RE: [CHALLENGE THREAD] - nemesis567 - 04-18-2012, 12:03 AM
RE: [CHALLENGE THREAD] - nemesis567 - 04-18-2012, 01:35 AM
RE: [CHALLENGE THREAD] - nemesis567 - 04-18-2012, 12:10 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-18-2012, 04:01 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-18-2012, 04:03 PM
RE: [CHALLENGE THREAD] - Your Computer - 04-18-2012, 04:21 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-18-2012, 04:21 PM
RE: [CHALLENGE THREAD] - Your Computer - 04-18-2012, 05:08 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-18-2012, 05:40 PM
RE: [CHALLENGE THREAD] - Apjjm - 04-18-2012, 08:49 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-18-2012, 08:57 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-18-2012, 09:06 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-19-2012, 06:05 AM
RE: [CHALLENGE THREAD] - Your Computer - 04-19-2012, 06:21 AM
RE: [CHALLENGE THREAD] - Homicide13 - 04-19-2012, 07:51 AM
RE: [CHALLENGE THREAD] - Your Computer - 04-19-2012, 08:36 AM
RE: [CHALLENGE THREAD] - Homicide13 - 04-19-2012, 08:43 AM
RE: [CHALLENGE THREAD] - Your Computer - 04-19-2012, 09:09 AM
RE: [CHALLENGE THREAD] - Apjjm - 04-19-2012, 01:56 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-19-2012, 04:17 PM
RE: [CHALLENGE THREAD] - Apjjm - 04-19-2012, 04:19 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-19-2012, 05:09 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-19-2012, 02:09 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-20-2012, 07:03 PM
RE: [CHALLENGE THREAD] - Apjjm - 04-20-2012, 07:24 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-20-2012, 09:00 PM
RE: [CHALLENGE THREAD] - Apjjm - 04-20-2012, 11:50 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-21-2012, 01:34 AM
RE: [CHALLENGE THREAD] - nemesis567 - 04-24-2012, 02:54 PM
RE: [CHALLENGE THREAD] - Apjjm - 04-24-2012, 09:33 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-24-2012, 09:51 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-24-2012, 09:54 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-25-2012, 12:20 AM
RE: [CHALLENGE THREAD] - nemesis567 - 04-26-2012, 12:02 AM
RE: [CHALLENGE THREAD] - Apjjm - 04-26-2012, 02:00 AM
RE: [CHALLENGE THREAD] - Rapture - 04-26-2012, 05:17 AM
RE: [CHALLENGE THREAD] - Homicide13 - 04-26-2012, 06:44 AM
RE: [CHALLENGE THREAD] - Apjjm - 04-26-2012, 01:57 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-26-2012, 01:59 PM
RE: [CHALLENGE THREAD] - Apjjm - 04-26-2012, 07:29 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-26-2012, 09:26 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-26-2012, 10:34 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-26-2012, 11:36 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-26-2012, 11:43 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-27-2012, 12:02 AM
RE: [CHALLENGE THREAD] - nemesis567 - 04-27-2012, 12:21 AM
RE: [CHALLENGE THREAD] - Apjjm - 04-29-2012, 09:29 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-27-2012, 01:29 AM
RE: [CHALLENGE THREAD] - Your Computer - 04-27-2012, 02:17 AM
RE: [CHALLENGE THREAD] - Homicide13 - 04-27-2012, 02:31 AM
RE: [CHALLENGE THREAD] - Your Computer - 04-27-2012, 03:49 AM
RE: [CHALLENGE THREAD] - Homicide13 - 04-27-2012, 04:06 AM
RE: [CHALLENGE THREAD] - nemesis567 - 04-27-2012, 01:56 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-27-2012, 04:24 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-29-2012, 09:55 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-30-2012, 05:22 AM
RE: [CHALLENGE THREAD] - nemesis567 - 04-30-2012, 12:54 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-30-2012, 01:38 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-30-2012, 02:02 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-30-2012, 03:04 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-30-2012, 05:26 PM
RE: [CHALLENGE THREAD] - Homicide13 - 05-01-2012, 12:48 AM
RE: [CHALLENGE THREAD] - nemesis567 - 05-01-2012, 01:12 AM
RE: [CHALLENGE THREAD] - Homicide13 - 05-01-2012, 05:20 AM
RE: [CHALLENGE THREAD] - Your Computer - 05-01-2012, 11:22 AM
RE: [CHALLENGE THREAD] - Homicide13 - 05-01-2012, 12:37 PM
RE: [CHALLENGE THREAD] - nemesis567 - 05-01-2012, 01:35 PM
RE: [CHALLENGE THREAD] - Your Computer - 05-01-2012, 02:07 PM
RE: [CHALLENGE THREAD] - Apjjm - 05-01-2012, 03:47 PM
RE: [CHALLENGE THREAD] - nemesis567 - 05-01-2012, 04:04 PM
RE: [CHALLENGE THREAD] - Homicide13 - 05-01-2012, 06:01 PM
RE: [CHALLENGE THREAD] - Apjjm - 05-01-2012, 06:39 PM
RE: [CHALLENGE THREAD] - Homicide13 - 05-02-2012, 05:45 AM
RE: [CHALLENGE THREAD] - Theforgot3n1 - 05-02-2012, 09:19 PM
RE: [CHALLENGE THREAD] - Homicide13 - 05-02-2012, 10:33 PM
RE: [CHALLENGE THREAD] - nemesis567 - 05-02-2012, 11:24 PM
RE: [CHALLENGE THREAD] - nemesis567 - 05-05-2012, 04:02 PM
RE: [CHALLENGE THREAD] - Homicide13 - 05-06-2012, 04:48 AM
RE: [CHALLENGE THREAD] - Homicide13 - 05-06-2012, 10:03 PM
RE: [CHALLENGE THREAD] - Apjjm - 05-07-2012, 02:37 AM
RE: [CHALLENGE THREAD] - Homicide13 - 05-07-2012, 02:58 AM
RE: [CHALLENGE THREAD] - nemesis567 - 05-07-2012, 11:00 PM
RE: [CHALLENGE THREAD] - Homicide13 - 05-08-2012, 01:22 AM
RE: [CHALLENGE THREAD] - nemesis567 - 05-08-2012, 01:38 AM



User(s) browsing this thread: 1 Guest(s)