Scripts / Solar's Objectives Indicator System

Author
Message
Solar
7
Years of Service
User Offline
Joined: 11th Apr 2017
Location: South Africa
Posted: 13th Dec 2017 19:53
Hi GameGuru people!

I would like to share my objectives Indicator system with you. This system is similar to the one I used in my game demo "Resist Revolution", which can be downloaded and played in the "Work in Progress" board. Feel free to use and modify as you like.

This system can be used to show your objectives on the screen, similar to a lot of warfare games out there.

To implement the system:

1. Place three objects on your map and assign the first one with the obj_1 script, the second one with obj_2 script, and the third one with obj_3 script (I used 3 cylinders for the purpose of this tutorial.)

2. Set the three objects to non-static entity and always active.

3. Place another entity next to the third object. (Iused the scifi keycard). This will trigger the winzone to finish your level.
Assign the winzone_2 script to this entity and set it to non-static, spawn at start - no, always active - no. Also give this
entity a name like "win" or something, because we are going to trigger this entity with the third object.

4. Assign the name of your "winzone" item to the ifused field of the third object.

Now if you run your level, the first objective indicator will appear on screen. If you walk up to it, a message will be displayed "OBJECTIVE 1 COMPLETED". Also, the second objective indicator will appear on the screen. Once this objective is reached, "OBJECTIVE 2 COMPLETED" will be displayed, and the third objective indicator will appear. If you approach the third objective, it will also show a completed message, and the winzone will be activated.

Objectives placed in the editor:


In-game screenshot:


I also included two alternative scripts "obj_1_simul" and "obj_2_simul", which can be used instead of "obj_1" and "obj_2" scripts, if you want both objectives to appear simultaneously on the screen.

Simultaneous objectives:



Attachments

Login to view attachments
PM
Solar
7
Years of Service
User Offline
Joined: 11th Apr 2017
Location: South Africa
Posted: 13th Dec 2017 19:59 Edited at: 13th Dec 2017 20:44
Ooops!

I tried to imbed the three images in the first post, but for some reason they don't show up.

Please find the three images attached to this post. Sorry about that.

Edit to add: If you right-click on the image icons, you can select open in new tab then the images can be viewed.

Attachments

Login to view attachments
PM
Bugsy
16
Years of Service
User Offline
Joined: 24th Nov 2008
Location: Savannah
Posted: 13th Dec 2017 22:51
this is awesome and I will definitely use it at some point! thank you.
Solar
7
Years of Service
User Offline
Joined: 11th Apr 2017
Location: South Africa
Posted: 14th Dec 2017 00:09
Thank you, Bugsy. Hope you enjoy the scripts.
PM
PCS
8
Years of Service
User Offline
Joined: 7th Jul 2016
Playing:
Posted: 14th Dec 2017 20:41
HI Solar. Thanks for the scripts.

i saw a small type error in your obj_1.lua script line 3 it reads g_avtivated1 = 0 instead of g_activated1 = 0



unless you have made it so for a reason.

Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 4GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11
Solar
7
Years of Service
User Offline
Joined: 11th Apr 2017
Location: South Africa
Posted: 15th Dec 2017 01:12 Edited at: 15th Dec 2017 01:17
Hi PCSKILLER.

Thank you for pointing out the typo. Here is the corrected script.

Attachments

Login to view attachments
PM
warlock12
8
Years of Service
User Offline
Joined: 12th Sep 2016
Location: Argentina
Posted: 15th Dec 2017 01:19
Very creative, interesting script and very generous of you!
Big Hug!
The game is a serious thing (El juego es una cosa seria)
Solar
7
Years of Service
User Offline
Joined: 11th Apr 2017
Location: South Africa
Posted: 15th Dec 2017 01:29
@ Warlock12

Thank you. It's my pleasure!
PM
25-WATTS
8
Years of Service
User Offline
Joined: 23rd Feb 2016
Location:
Posted: 15th Dec 2017 07:45
Excellent work thank you so much.
PM
Solar
7
Years of Service
User Offline
Joined: 11th Apr 2017
Location: South Africa
Posted: 15th Dec 2017 10:01
@ 25-WATTS

You're welcome!
PM
Bolt Action Gaming
GameGuru Tool Maker
11
Years of Service
User Offline
Joined: 24th Oct 2013
Location: Harrisburg, PA (USA)
Posted: 15th Dec 2017 15:20
This is an exceptional gift for a free script.
One good turn deserves another - check your forum messages and merry christmas
AceRimmer
Reviewed GameGuru on Steam
9
Years of Service
User Offline
Joined: 28th Feb 2015
Playing: classic British heavy metal mostly
Posted: 15th Dec 2017 18:41
very useful, many thanks
its like deja-vu, but all over again, again
Solar
7
Years of Service
User Offline
Joined: 11th Apr 2017
Location: South Africa
Posted: 15th Dec 2017 20:22
@ Bolt Action Gaming - Thank you very much! Merry Christmas for you too!

@ AceRimmer - You're welcome!
PM
Blacknyt46
8
Years of Service
User Offline
Joined: 29th Feb 2016
Location:
Posted: 20th Dec 2017 07:44
Thank you Solar! Awesome scripts.
Jim C
Solar
7
Years of Service
User Offline
Joined: 11th Apr 2017
Location: South Africa
Posted: 20th Dec 2017 13:42
@ Blaknyt46 - You're welcome!
PM
Pink Panther
14
Years of Service
User Offline
Joined: 1st Feb 2010
Location:
Posted: 21st Dec 2017 19:08
Thank you so much. Saw this in your game and thought I would love to be able to do that!
PM
Solar
7
Years of Service
User Offline
Joined: 11th Apr 2017
Location: South Africa
Posted: 21st Dec 2017 21:03
@ Pink Panther - Cool! Hope you enjoy the scripts!
PM

Login to post a reply

Server time is: 2024-12-23 00:23:37
Your offset time is: 2024-12-23 00:23:37