Product Chat / How to do multiple Notes?

Author
Message
Duchenkuke
GameGuru VBOTB Developer
8
Years of Service
User Offline
Joined: 7th Jun 2016
Location: Germany
Posted: 8th Jun 2016 11:53
Hey Guys,

sorry to bother you again...
I know there are Threads about this, but they don't contain the Information I need... so I gotta ask here..

How can I do multiple Notes in one Level?
Please tell me exactly what I need to do, so I can understand ^^
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 8th Jun 2016 12:09 Edited at: 10th Jun 2016 16:28
See next post, I found a better way


i5, NV960 2GB, 16GB memory, 2x 2TB Hybrid, Win10.
i3 , Intel integrated graphics, 6GB memory, 512GB Generic SATAIII Win8.1.
Intel Celeron (duel Core), Radeon integrated graphics, 4GB memory, 180gB Generic SATAII, WinVista.
Q6600, Intel integrated graphics, 8GB memory, 512GB Generic SATAII, Win7.
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 8th Jun 2016 12:14 Edited at: 8th Jun 2016 12:29
Actually scrub that I found a better way:

instructions.lua


create a folder called instructions in you scriptbank/images folder and put your images in there (name the images 000.png, 001.png, 002.png etc)

then put this script on your object and change the objects name to the name of the note you image you want to display (ie change the name to 0 or 1 or 2 etc)

Credit goes to the amazing Smallg who created this script a while ago.
https://forum.game-guru.com/thread/207801?page=9#msg2524123

i7, NV960 4GB, 16GB memory, 2x 4TB Hybrid, Win10.
i5 , AMD 6770 1GB, 8GB memory, 512GB Generic SATAIII + 2TB Seagate Baracuda SATAIII, Win7.
i3, Radeon integrated graphics, 4GB memory, 512gB Generic SATAII, Win8.1.
Q6600, Intel integrated graphics, 2GB memory, 180GB Generic SATAII, WinXP.

Attachments

Login to view attachments
Duchenkuke
GameGuru VBOTB Developer
8
Years of Service
User Offline
Joined: 7th Jun 2016
Location: Germany
Posted: 8th Jun 2016 12:50
Thank you very much for your Answer.

But I got a Problem, first, I cant "read" the notes.
Second, the "read note" message displays on all notes within the level no matter how far they are away...

Attachments

Login to view attachments
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 8th Jun 2016 13:00
I'm not sure, you would have to ask smallg, it's one of his scripts, he might be able to tell you why.

i7, NV960 4GB, 16GB memory, 2x 4TB Hybrid, Win10.
i5 , AMD 6770 1GB, 8GB memory, 512GB Generic SATAIII + 2TB Seagate Baracuda SATAIII, Win7.
i3, Radeon integrated graphics, 4GB memory, 512gB Generic SATAII, Win8.1.
Q6600, Intel integrated graphics, 2GB memory, 180GB Generic SATAII, WinXP.
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 8th Jun 2016 13:28
Had a quick look at the script. I think you have to change dis to a lower value by the looks. It seems to be set very high at 3000 by default.


SPECS: Q6600 CPU. Nvidia 660GTX. 8 Gig Memory. Win 7.
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 8th Jun 2016 13:45
Yeah, looking at it that would probably be it, it's basically detecting you looking at it from halfway across the map, maybe drop that down to 80 or 100

i7, NV960 4GB, 16GB memory, 2x 4TB Hybrid, Win10.
i5 , AMD 6770 1GB, 8GB memory, 512GB Generic SATAIII + 2TB Seagate Baracuda SATAIII, Win7.
i3, Radeon integrated graphics, 4GB memory, 512gB Generic SATAII, Win8.1.
Q6600, Intel integrated graphics, 2GB memory, 180GB Generic SATAII, WinXP.
Duchenkuke
GameGuru VBOTB Developer
8
Years of Service
User Offline
Joined: 7th Jun 2016
Location: Germany
Posted: 8th Jun 2016 15:04
No... changing that value doesn't do anything... And I still can't read the Notes... hmm
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 8th Jun 2016 15:17
I can't look at it at the moment because i'm at work, but when I get home if nobody else has sorted it for you i'll see if I can get it working and let you know, can't guarantee I can though, I'm not great at LUA.

i7, NV960 4GB, 16GB memory, 2x 4TB Hybrid, Win10.
i5 , AMD 6770 1GB, 8GB memory, 512GB Generic SATAIII + 2TB Seagate Baracuda SATAIII, Win7.
i3, Radeon integrated graphics, 4GB memory, 512gB Generic SATAII, Win8.1.
Q6600, Intel integrated graphics, 2GB memory, 180GB Generic SATAII, WinXP.
Duchenkuke
GameGuru VBOTB Developer
8
Years of Service
User Offline
Joined: 7th Jun 2016
Location: Germany
Posted: 8th Jun 2016 16:39
No Problem ! Thank you for helping me anyway !
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 8th Jun 2016 19:30 Edited at: 8th Jun 2016 19:30
Ok here you go script attached...

1. Create a folder scriptbank/images/instructions.
2. Name each of your images 000, 001, 002, 003 and so on, put them in the instructions folder.
3. Put the script on the object you are using for the note (make sure the objects static field is set to no.
4. Change the name field of the object with the script to the number of the image you want to display, ie 0 for 000, 1 for 001, 2 for 002 and so on.

This should be working now, it does for me.

i7, NV960 4GB, 16GB memory, 2x 4TB Hybrid, Win10.
i5 , AMD 6770 1GB, 8GB memory, 512GB Generic SATAIII + 2TB Seagate Baracuda SATAIII, Win7.
i3, Radeon integrated graphics, 4GB memory, 512gB Generic SATAII, Win8.1.
Q6600, Intel integrated graphics, 2GB memory, 180GB Generic SATAII, WinXP.

Attachments

Login to view attachments
Duchenkuke
GameGuru VBOTB Developer
8
Years of Service
User Offline
Joined: 7th Jun 2016
Location: Germany
Posted: 9th Jun 2016 07:35
Thank you for your efford. But i'm afraid it is still very bugy. When I press e, the Image appears, but when I go away like 5 metres and press e, the image still appears... also, when I hold e the image is flickering like hell.. and I still can see the "hint" notification all over the map.
When I go to the second note, (25 metres away) I still can press e to view the first note. The second note wont appear even if I stand right in front of it...
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 9th Jun 2016 07:40 Edited at: 9th Jun 2016 07:57
It's working fine for me.

try this one, it's a version that's updated for sprites instead of images.

https://forum.game-guru.com/thread/207801?page=12#msg2541219

i7, NV960 4GB, 16GB memory, 2x 4TB Hybrid, Win10.
i5 , AMD 6770 1GB, 8GB memory, 512GB Generic SATAIII + 2TB Seagate Baracuda SATAIII, Win7.
i3, Radeon integrated graphics, 4GB memory, 512gB Generic SATAII, Win8.1.
Q6600, Intel integrated graphics, 2GB memory, 180GB Generic SATAII, WinXP.
Duchenkuke
GameGuru VBOTB Developer
8
Years of Service
User Offline
Joined: 7th Jun 2016
Location: Germany
Posted: 9th Jun 2016 09:48
I will check it out now. Thanks
Duchenkuke
GameGuru VBOTB Developer
8
Years of Service
User Offline
Joined: 7th Jun 2016
Location: Germany
Posted: 9th Jun 2016 10:15
So I tried it on another Level and got the instructions.lua working now. Now I only need to figure out how to set an delay, when you press e, so it wont toggle it like 10 times per second.
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 9th Jun 2016 10:27
Glad you got that working so far, sorry I can't help you with the flickering, I have no idea why it does that for you, it doesn't seem to do it for me unless I hold down the E button, in which case it flashes on and off.

i7, NV960 4GB, 16GB memory, 2x 4TB Hybrid, Win10.
i5 , AMD 6770 1GB, 8GB memory, 512GB Generic SATAIII + 2TB Seagate Baracuda SATAIII, Win7.
i3, Radeon integrated graphics, 4GB memory, 512gB Generic SATAII, Win8.1.
Q6600, Intel integrated graphics, 2GB memory, 180GB Generic SATAII, WinXP.
Duchenkuke
GameGuru VBOTB Developer
8
Years of Service
User Offline
Joined: 7th Jun 2016
Location: Germany
Posted: 9th Jun 2016 14:05
yeah it flashes when I hold e too, but it flashes also when i press e for a quarter second ... ^^
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 9th Jun 2016 18:12 Edited at: 10th Jun 2016 09:38
the 3000 is only used if you didnt set a distance in the function call PlayerLooking(e) <- it would now default to 3000 (this is just to keep it working for simplicity.

the number that affects the range is the 150 used in PlayerLooking(e,150,20)

as for it flashing the image, this is because you have something resetting pressed to 0 even if you aren't letting go of the 'e' key, this should fix it.

lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Duchenkuke
GameGuru VBOTB Developer
8
Years of Service
User Offline
Joined: 7th Jun 2016
Location: Germany
Posted: 9th Jun 2016 21:30
okay, I used your script, and now I get this Message:

Attachments

Login to view attachments
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 10th Jun 2016 09:39
Fixed, copy the code from my previous post again and try again
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Duchenkuke
GameGuru VBOTB Developer
8
Years of Service
User Offline
Joined: 7th Jun 2016
Location: Germany
Posted: 10th Jun 2016 11:51
Thanks Hou helped me out !

I am new to gamegruru and dont know anything about scripting.... can you help me one more time ?
I need a script for a jumpscare. entity spawns when the player enters trigger zone. entity stays for 2 seconds then disapears. Could you do that for me? ^^
That would be awesome )
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 10th Jun 2016 13:35
It's already been done, you can find it in the same thread that I posted a link to a couple of posts up.

it's in the forum section that is for discussion about scripts...

First post has an index of the scripts in the thread: https://forum.game-guru.com/thread/207801
Here's the direct link to the jump scar script: https://forum.game-guru.com/thread/207801?page=7#msg2516046

i5, NV960 2GB, 16GB memory, 2x 2TB Hybrid, Win10.
i3 , Intel integrated graphics, 6GB memory, 512GB Generic SATAIII Win8.1.
Intel Celeron (duel Core), Radeon integrated graphics, 4GB memory, 180gB Generic SATAII, WinVista.
Q6600, Intel integrated graphics, 8GB memory, 512GB Generic SATAII, Win7.
Duchenkuke
GameGuru VBOTB Developer
8
Years of Service
User Offline
Joined: 7th Jun 2016
Location: Germany
Posted: 10th Jun 2016 15:01
yeah i know, i downloaded both scripts but the one makes the entity appear 2 times, and the other several times...

I need one with a one time 3 second appearance
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 10th Jun 2016 16:19 Edited at: 10th Jun 2016 16:34
OK, you don't need a new script for that, you can do it by editing the existing one, it even tells you how if you open it up in notepad and look at the top couple of paragraphs:

Download the script from https://forum.game-guru.com/thread/207801?page=7#msg2516046

If you open up the script and look at the top there is a section with clear labels that tells you which setting controls which attribute.





So to get only one appearance you change the line (if i'm reading this right):


to



That way it picks a random number from 1 to 1 and you only get one appearance.

To change the length if time it appears for, then change:


to however long you want, it's in milliseconds, so if you want it to appear for 1 second you enter 1000, if you want 5 seconds you enter 5000, and so on.

That's the beauty of most of Smallg's scripts he makes them so they're easy to change variables and even labels them so you know exactly what to change.

Edit: if you only want the script to work once in total and not again when you walk into the zone, then just add Destroy(e) straight after function jumpscare_exit(e) and before the last end

i5, NV960 2GB, 16GB memory, 2x 2TB Hybrid, Win10.
i3 , Intel integrated graphics, 6GB memory, 512GB Generic SATAIII Win8.1.
Intel Celeron (duel Core), Radeon integrated graphics, 4GB memory, 180gB Generic SATAII, WinVista.
Q6600, Intel integrated graphics, 8GB memory, 512GB Generic SATAII, Win7.
Duchenkuke
GameGuru VBOTB Developer
8
Years of Service
User Offline
Joined: 7th Jun 2016
Location: Germany
Posted: 10th Jun 2016 16:54
okay, it worked Thank you Belidos!
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 10th Jun 2016 17:12
You're welcome.

i5, NV960 2GB, 16GB memory, 2x 2TB Hybrid, Win10.
i3 , Intel integrated graphics, 6GB memory, 512GB Generic SATAIII Win8.1.
Intel Celeron (duel Core), Radeon integrated graphics, 4GB memory, 180gB Generic SATAII, WinVista.
Q6600, Intel integrated graphics, 8GB memory, 512GB Generic SATAII, Win7.

Login to post a reply

Server time is: 2024-11-25 01:59:23
Your offset time is: 2024-11-25 01:59:23