Cacodemon
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Skill selection done Quake-style
 
Author
All times are GMT. The time now is 19:04. Post New Thread    Post A Reply
CarpetolA
Warming Up


Posts: 13
Registered: 07-07


Hey, CarpetolA here!

I have just made a small introduction map with three skill levels - Easy, Medium and Hard, and I just want to know how I can implement these skills into the skill selectors. I know how to remove the skill menu (noskillmenu), but I'm not sure about the actual skills. How can I make the selectors "activate" the particular skill that the player wants to choose?

EDIT: I got it working now. Here's how I did the whole thing:

code:
#include "zcommon.acs" script 1 (int line) { print (s:"This hall selects Easy skill."); ChangeSkill (SKILL_EASY); } script 2 (int line) { print (s:"This hall selects Medium skill."); ChangeSkill (SKILL_NORMAL); } script 3 (int line) { print (s:"This hall selects Hard skill."); ChangeSkill (SKILL_HARD); }


Thanks goes to Graf Zahl, Fisk and t.v. for helping me with the annoying scripting! Couldn't have done it without you three! :D

P.S. I actually didn't get noskillmenu to work, tbh... I just put it in MAPINFO, and fired up ZDoom with the WAD, but it seems like I have to do something else than that :S I assumed I just needed to do that, so I don't know how to get rid of this obstacle. I'll post another thread regarding this, since I think it doesn't have anything to do with the problem on this thread, so don't reply here! Look for my new thread "noskillmenu goes apesh*t!" and you can post some solutions to that problem so I can probably get it fixed. Thanks for your concern! :)

__________________
To live is to die.

Last edited by CarpetolA on 07-10-08 at 21:19

Old Post 07-10-08 12:46 #
CarpetolA is offline Profile || Blog || PM || Email || Search || Add Buddy Report to mod || IP || Edit/Delete || Quote
CodeImp
Moderator


Posts: 1082
Registered: 12-03


Moved to editing forum. And is this ZDoom you are using?

__________________
Doom Builder 2 is coming!

Old Post 07-10-08 13:20 #
CodeImp is offline Profile || Blog || PM || Homepage || Search || Add Buddy Report to mod || IP || Edit/Delete || Quote
Graf Zahl
Forum Legend


Posts: 4191
Registered: 01-03



CarpetolA said:
Hey, CarpetolA here!

I have just made a small introduction map with three skill levels - Easy, Medium and Hard, and I just want to know how I can implement these skills into the skill selectors. I know how to remove the skill menu (noskillmenu), but I'm not sure about the actual skills. How can I make the selectors "activate" the particular skill that the player wants to choose?



Since the 'noskillmenu' indicates ZDoom the answer is simple.

There's an action special called ChangeSkill. Use that in the script right before the map ends and you are done.

If you stick to the default skills the relevant values are 0-4 so the 3 levels you probably want are 1, 2 and 3.

Old Post 07-10-08 13:41 #
Graf Zahl is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy Report to mod || IP || Edit/Delete || Quote
CarpetolA
Warming Up


Posts: 13
Registered: 07-07



CodeImp said:
Moved to editing forum. And is this ZDoom you are using?

Yes, I intend to use ZDoom as the engine of choice.


Graf Zahl said:
Since the 'noskillmenu' indicates ZDoom the answer is simple.

There's an action special called ChangeSkill. Use that in the script right before the map ends and you are done.

If you stick to the default skills the relevant values are 0-4 so the 3 levels you probably want are 1, 2 and 3.


Scripts... My worst enemies... But anyhow, I will try doing that :) Thanks, GZ! ;)

Old Post 07-10-08 13:53 #
CarpetolA is offline Profile || Blog || PM || Email || Search || Add Buddy Report to mod || IP || Edit/Delete || Quote
Fisk
Member


Posts: 318
Registered: 02-07


code:
//Activate Line Special 80 and for Script Number, use 200. For Arg1, put //either 1, 2, or 3, depending on which skill line the player has crossed. //At the end of the map, call this script again with argument 1 set to 0. int finalskill; Script 200 (int skill) { if(!skill) ChangeSkill(finalskill); else finalskill=skill; }

Old Post 07-10-08 14:38 #
Fisk is offline Profile || Blog || PM || Search || Add Buddy Report to mod || IP || Edit/Delete || Quote
t.v.
Mini-Member


Posts: 69
Registered: 10-06


there was such a skill selection in "Chosen", in case you want an example.
link

Old Post 07-10-08 15:30 #
t.v. is offline Profile || Blog || Email || Homepage || Search || Add Buddy Report to mod || IP || Edit/Delete || Quote
CarpetolA
Warming Up


Posts: 13
Registered: 07-07


OK, so I finally got the skill problem outta my way, but I'm now facing another problem. I can't get rid of the skill menu! It requires the lump MAPINFO to do it, I know that, but I can't even use it properly! If you could post solutions to this enigma, my introduction map could have a future. I'll hear from ya guys soon! :)

__________________
To live is to die.

Old Post 07-10-08 21:26 #
CarpetolA is offline Profile || Blog || PM || Email || Search || Add Buddy Report to mod || IP || Edit/Delete || Quote
Graf Zahl
Forum Legend


Posts: 4191
Registered: 01-03


You need to define an episode to get rid of the skill menu:

code:
clearepisodes episode MAP01 name "The Chosen" noskillmenu


If you only have one episode you may skip the name.

Old Post 07-10-08 22:10 #
Graf Zahl is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy Report to mod || IP || Edit/Delete || Quote
Gez
Member


Posts: 375
Registered: 07-07



t.v. said:
there was such a skill selection in "Chosen", in case you want an example.
link



Another example.

Old Post 07-10-08 22:35 #
Gez is offline Profile || Blog || PM || Email || Search || Add Buddy Report to mod || IP || Edit/Delete || Quote
CarpetolA
Warming Up


Posts: 13
Registered: 07-07



Graf Zahl said:
You need to define an episode to get rid of the skill menu:

code:
clearepisodes episode MAP01 name "The Chosen" noskillmenu


If you only have one episode you may skip the name.


Wow, thanks, GZ! And thanks to Gez for helping me with a problem that is already solved. But that's OK, it shows how helpful you people are ;) Thanks guys!

Old Post 07-10-08 23:49 #
CarpetolA is offline Profile || Blog || PM || Email || Search || Add Buddy Report to mod || IP || Edit/Delete || Quote
All times are GMT. The time now is 19:04. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Skill selection done Quake-style

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Forums Directory