Jump to content

Recommended Posts

Posted (edited)
  On 3/28/2020 at 5:43 PM, NexusComa said:

You would need to add the reference up top also to make PayerRef actually be the player reference.

With: Actor Property PlayerREF Auto <- then to fill the reference press auto fill when you're in the kit on that entree.

I did that. I actually know the properties tab and auto-fill functions, believe it or not :D

Still, I can't get it to compile in this form.

I'll work in the arrays now, it's usually 5 potions except for one, and why they left that one out of the game, who knows...

 

 

  Reveal hidden contents

 

 

 

  On 3/28/2020 at 5:43 PM, NexusComa said:

Well that was like pulling the pin on a grenade ... I applaud your tenacity.

 

Well, I can always abandon the project or if you're afraid I'm gonna hurt someone with it :ermm:

I do realize that it can be exhausting to deal with non-professionals, and I'm sorry.

Edited by TangerineDog
Posted (edited)

"Well that was like pulling the pin on a grenade ... I applaud your tenacity." .. Is a complement

Like I said sometime PlayerRef can be fussy .. probably because it's in the same line and all ...

"non-professionals" .. I think you're way pass the noob phase my friend.

Edited by NexusComa
Posted
  On 3/28/2020 at 5:59 PM, NexusComa said:

"Well that was like pulling the pin on a grenade ... I applaud your tenacity." .. Is a complement

 

Like I said sometime PlayerRef can be fussy .. probably because it's in the same line and all ...

 

"non-professionals" .. I think you're way pass the noob phase my friend.

Phew, I'm glad to hear that :D Thanks!

In that case, I'll feel less bad for not knowing what it is I'm doing.

Posted (edited)

Looks like you missed the one at the start of the line. Going off what you posted earlier.

Just use it when you can and if you can't use it the other way. It all comes down to some calls needing to know it in real time or if it can be a reference.

Also: random = random + 1 can be: random =+1 ; that's the same call

Edited by NexusComa
Posted (edited)

"In that case, I'll feel less bad for not knowing what it is I'm doing."
We all start this way. Make sure to keep what you learn in a spot you can refer back to latter.
​Good programmers have a huge library like this of pass calls that worked out. So they don't have to keep reinventing the wheel.

​Also a good idea to add rem statements. Like ReDragon2013 did. ; this is so when I come back 3 years from now it don't take me 2 days to figure out what i was doing here and helps with de-bugging.

Edited by NexusComa
Posted (edited)

"I do realize that it can be exhausting to deal with non-professionals, and I'm sorry."
On the contrary after a lifetime of programming watching others bloom like you are doing right now is one of my greatest joys.

​The arrays are nice. But here is one of them odd things .. the long form as you did in your 1st script is actually faster as the code doesn't need to trace the array each time. ;this however is debatable.
You can do some cool tricks with arrays so it is good to know how to use them. They can help make a code more generic and use some fancy math.

 

I wouldn't worry about script length .. I have a few scripts that are huge that work just fine. Like a random dungeon generator.

 

Also: I did think you were putting this on the player directly ... (my bad)


Edited by NexusComa
Posted
  On 3/28/2020 at 6:09 PM, NexusComa said:

Looks like you missed the one at the start of the line. Going off what you posted earlier.

Just use it when you can and if you can't use it the other way. It all comes down to some calls needing to know it in real time or if it can be a reference.

Also: random = random + 1 can be: random =+1 ; that's the same call

Slight error. It would be random += 1 rather than random =+ 1 at least I have never seen the latter and am unsure if it would even compile.

Posted (edited)

Thanks for the advice! It will be heeded :wink:

 

Well, in this case, I'll leave the Game.GetPlayer() in and use it without arrays and go to testing it.

This is certainly gonna be interesting. FIngers crossed.

 

Edit: and no, += 1 didn't compile, but I got to =+1 on my own devices :)

Edited by TangerineDog
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...