Jump to content

Coding Something I may have Done wrong


Recommended Posts

Hey Doomworld Doominck here I'm currently coding Tord Larsson from Eddsworld and I was wondering am I coding him right or not cus I really want to make a proper NPC cus I really don't know if I'm doing the coding right?

unknown-97.png

Share this post


Link to post

Your Obituary line (line 33) is missing a quotation mark at the end.

Share this post


Link to post
1 minute ago, MFG38 said:

Your Obituary line (line 33) is missing a quotation mark at the end.

AAAA really is that how the text thing works?

Share this post


Link to post
25 minutes ago, Doominick said:

AAAA really is that how the text thing works?

 

Yes. All string properties have to be enclosed in a pair of quotation marks, otherwise the port will error out.

 

Now that I'm looking at the code more closely, I have no idea what you're trying to do with the "#include" on line 1 - while that directive does work in DECORATE, you're using it incorrectly in this case. It's generally used for specifying additional DECORATE lumps for the port to parse, and judging by the rest of the code, that's not what you're doing here. Replace that with "actor".

 

Also, the Speed and FastSpeed properties can probably be truncated. I'd imagine that the commas cause the port to error out - they should be replaced with periods (.) at the very least. Really, though, the zeroes are just redundant and should be done away with entirely.

Share this post


Link to post
42 minutes ago, MFG38 said:
4 minutes ago, MFG38 said:

 

Yes. All string properties have to be enclosed in a pair of quotation marks, otherwise the port will error out.

 

Now that I'm looking at the code more closely, I have no idea what you're trying to do with the "#include" on line 1 - while that directive does work in DECORATE, you're using it incorrectly in this case. It's generally used for specifying additional DECORATE lumps for the port to parse, and judging by the rest of the code, that's not what you're doing here. Replace that with "actor".

 

Also, the Speed and FastSpeed properties can probably be truncated. I'd imagine that the commas cause the port to error out - they should be replaced with periods (.) at the very least. Really, though, the zeroes are just redundant and should be done away with entirely.

Mhmm mhmm whatelse

Share this post


Link to post
19 hours ago, MFG38 said:

 

Yes. All string properties have to be enclosed in a pair of quotation marks, otherwise the port will error out.

 

Now that I'm looking at the code more closely, I have no idea what you're trying to do with the "#include" on line 1 - while that directive does work in DECORATE, you're using it incorrectly in this case. It's generally used for specifying additional DECORATE lumps for the port to parse, and judging by the rest of the code, that's not what you're doing here. Replace that with "actor".

 

Also, the Speed and FastSpeed properties can probably be truncated. I'd imagine that the commas cause the port to error out - they should be replaced with periods (.) at the very least. Really, though, the zeroes are just redundant and should be done away with entirely.

 

unknown-96.png

Share this post


Link to post

Looking a lot better now. The SOLID and SHOOTABLE flags are redundant, though, as they're automatically set by the Monster flag combo. You can safely remove them.

 

Also, are you sure you want the monster to move at the speed of light?

Share this post


Link to post
19 minutes ago, MFG38 said:

Looking a lot better now. The SOLID and SHOOTABLE flags are redundant, though, as they're automatically set by the Monster flag combo. You can safely remove them.

 

Also, are you sure you want the monster to move at the speed of light?

Yes

Share this post


Link to post

Well, I'm not one to stop you in that case. I am curious now as to what a speed of 5000 looks in-engine, though.

 

For comparison, the speed of an Imp fireball is 10, FYI.

Share this post


Link to post
8 minutes ago, MFG38 said:

Well, I'm not one to stop you in that case. I am curious now as to what a speed of 5000 looks in-engine, though.

 

For comparison, the speed of an Imp fireball is 10, FYI.

Oh alrighty then I just want to Tord move like hes in mutiplayer 

 

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...