UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

[USER TUTORIAL] in game objectives

broken avatar :(
Created 10 years ago
by Deleted User
0 Members and 1 Guest are viewing this topic.
6,439 views
broken avatar :(
  • zombie madness
  • Deleted Member
×
broken avatar :(
zombie madness
This user is deleted :(
download the script file (its a attachment)

put the script file in root/mods/mapname/maps
in youre mapname.gsc:

put this line
Code Snippet
Plaintext
thread maps\zombie_madness_script::main();

underneath this line
Code Snippet
Plaintext
maps\_zombiemode::main();

so it looks like this
Code Snippet
Plaintext
/*--------------------
ZOMBIE MODE
----------------------*/
[[level.DLC3.weapons]]();
[[level.DLC3.powerUps]]();
maps\_zombiemode::main();
thread maps\zombie_madness_script::main();

save youre mapname.gsc build youre map with the new script file ticked in iwd file list
if you wish to edit the text just open this script
Code Snippet
Plaintext
zombie_madness_script.gsc
in notepadd++ or any text editing software

and edit to youre liking
thats it enjoy

-zm
Last Edit: March 28, 2014, 09:07:56 pm by zombie madness
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 8 years ago
Posts
2,790
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
Signature
Let's keep this thread on topic from here on in. -DBZ

+1 to off-topic reply -DBZ

lmao. Too funny.

Goliath Script Placer: http://ugx-mods.com/forum/index.php/topic,11234.msg125257/topicseen.html#new

"...Christ, people. Learn C, instead of just stringing random characters
together until it compiles (with warnings)..."

-Linus Torvalds
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet
Simply getting an entity and printing something on the screen doesn't make it an objective.
broken avatar :(
  • zombie madness
  • Deleted Member
×
broken avatar :(
zombie madness
This user is deleted :(
Simply getting an entity and printing something on the screen doesn't make it an objective.
its my first script go easy
broken avatar :(
×
broken avatar :(
Location: tr
Date Registered: 1 March 2013
Last active: 2 days ago
Posts
816
Respect
Forum Rank
The Decider
Primary Group
2015 Contest Winner
My Groups
More
My Contact & Social Links
More
Personal Quote
Caw caw caw
×
johndoe's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
2015 Contest Winner
johndoe's Contact & Social Linksmyc153-johndoe
This may be quite useful for the people to understand how codwaw's objective system works and if you read this tut and apply what it does, your script will become more than useful to some people. I appreciate the effort by the way, we gotta start from somewhere when we start learning new things, don't we?
broken avatar :(
  • zombie madness
  • Deleted Member
×
broken avatar :(
zombie madness
This user is deleted :(
This may be quite useful for the people to understand how codwaw's objective system works and if you read this tut and apply what it does, your script will become more than useful to some people. I appreciate the effort by the way, we gotta start from somewhere when we start learning new things, don't we?
yeah thats why i added in at the bottom "if you wish to edit then open this script file"
broken avatar :(
×
broken avatar :(
drago
Location: mx
Date Registered: 5 July 2013
Last active: 4 years ago
Posts
942
Respect
Forum Rank
The Decider
Primary Group
Member
My Contact & Social Links
More
×
jjbradman's Groups
jjbradman's Contact & Social Linksjjbradmanjjbradmanjjbradman
This may be quite useful for the people to understand how codwaw's objective system works and if you read this tut and apply what it does, your script will become more than useful to some people. I appreciate the effort by the way, we gotta start from somewhere when we start learning new things, don't we?
yeah, this kind of stuff is what help most people to start coding. ex the "hello world program"
broken avatar :(
×
broken avatar :(
Location: gb
Date Registered: 16 March 2014
Last active: 7 years ago
Posts
19
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Programmer :)
×
Suffocating Edge's Contact & Social LinkszombieedgeZasah_lewisZasah_C
Hey, just a grammatical error, you put:

Code Snippet
Plaintext
iprintln ("here are you're objectives");

It should be:

Code Snippet
Plaintext
iprintln ("here are your objectives");

(You're = you are)

As well as this you made a few spelling mistakes. I think it would be more professional to correct them; also really you should start with capital letters however, I think looking at this code will help me as I'm new to scripting in GSC, thanks for the upload! :D
broken avatar :(
  • zombie madness
  • Deleted Member
×
broken avatar :(
zombie madness
This user is deleted :(
Hey, just a grammatical error, you put:

Code Snippet
Plaintext
iprintln ("here are you're objectives");

It should be:

Code Snippet
Plaintext
iprintln ("here are your objectives");

(You're = you are)

As well as this you made a few spelling mistakes. I think it would be more professional to correct them; also really you should start with capital letters however, I think looking at this code will help me as I'm new to scripting in GSC, thanks for the upload! :D
it dosnt support ' in the iprint trust me
broken avatar :(
×
broken avatar :(
[UGX] Founder
Location: usBay Area, California
Date Registered: 24 June 2011
Last active: 8 months ago
Posts
5,551
Respect
6,691Add +1
Forum Rank
Immortal
Primary Group
UGX Administrator
My Groups
More
My Contact & Social Links
More
Signature
If Java had true garbage collection, most programs would delete themselves upon execution.
×
treminaor's Groups
UGX Administrator
UGX Team Member
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
it dosnt support ' in the iprint trust me
That's the opposite of what he's telling you. He said you wrote "you're" and it should be "your". Even if the ' didn't work in iPrintLn, it would still be spelled wrong because of the e on the end. "youre" is not the same as "your".

And yes, please take half a second to capitalize the first letters of your sentences when you are releasing a script for other people to use. It's unprofessional to have the script printing out lines with no capitalization and incorrect punctuation.
broken avatar :(
  • zombie madness
  • Deleted Member
×
broken avatar :(
zombie madness
This user is deleted :(
That's the opposite of what he's telling you. He said you wrote "you're" and it should be "your". Even if the ' didn't work in iPrintLn, it would still be spelled wrong because of the e on the end. "youre" is not the same as "your".

And yes, please take half a second to capitalize the first letters of your sentences when you are releasing a script for other people to use. It's unprofessional to have the script printing out lines with no capitalization and incorrect punctuation.
fixed sorry for my spelling and grammer its not been right for ages now
Last Edit: March 28, 2014, 09:08:42 pm by zombie madness
broken avatar :(
  • DeletedUser
  • Deleted Member
×
broken avatar :(
DeletedUser
This user is deleted :(
Rewrote the script from the ground up, so you don't need to put extra stuff in the map (except for the endgame trigger, but it's disableable), utilizes WaW objective system and has a perk objective setting :)
Code Snippet
Plaintext
#include common_scripts\utility;
#include maps\_utility;
#include maps\_zombiemode_utility;

main()
{
// WINS by Ray1235
//////////////
//          //
// SETTINGS //
//          //
//////////////
level.ray_obj_perk_amount = 4;
level.ray_obj_perk_enable = true;
level.ray_obj_pap_objective = true;
level.ray_obj_end_game = false;
level.ray_obj_end_game_obj_name = "Escape";
level.ray_obj_end_game_buyable = true;
level.ray_obj_end_game_cost = 10000;
// SETTINGS END
objective_add(1,"active","Turn the power on");
level waittill("electricity_on");
objective_state(1,"done");
players = GetPlayers();
if(level.ray_obj_perk_enable == true){
objective_add(2,"Find and get all "+level.ray_obj_perk_amount+" perks");
array_thread(players,::perk_objective_watch);
level waittill("ray_obj_player_has_all_perks");
objective_state(2,"done");
}
if(level.ray_obj_end_game == true)
{
objective_add(3,"active",level.ray_obj_end_game_obj_name);
trig getEnt("ray_obj_endgame_trig","targetname");
if(level.ray_obj_end_game_buyable == false)
{
trig waittill("trigger");
level notify("end_game");
objective_state(3,"done");
} else {
for(;;)
{
trig waittill("trigger",user);
if(user.cost >= level.ray_obj_end_game_cost)
{
level notify("end_game");
objective_state(3,"done");
}
}
}
}
}
perk_objective_watch()
{
self endon("disconnect");
for(;;)
{
if(self.perk_hud.size>=level.ray_obj_perk_amount)
{
level notify("ray_obj_player_has_all_perks");
}
wait(0.1);
}
}
P.S. May I request a scripter rank? :D
broken avatar :(
×
broken avatar :(
Location: de
Date Registered: 6 August 2012
Last active: 4 years ago
Posts
277
Respect
Forum Rank
Mr. Elemental
Primary Group
Community Scripter Elite
My Groups
More
×
YaPh1l's Groups
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
YaPh1l's Contact & Social Links
Ray, your script will not even compile. You have undefined variables. Also, you shouldn't be using level variables for variables that you only need in one function.

- Phil.
broken avatar :(
  • DeletedUser
  • Deleted Member
×
broken avatar :(
DeletedUser
This user is deleted :(
Ray, your script will not even compile. You have undefined variables. Also, you shouldn't be using level variables for variables that you only need in one function.

- Phil.
Woops, I guess i forgot to change perk_amount to level.ray_obj_perk_amount

 
Loading ...