Get game skill from zscript

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: Get game skill from zscript

Re: Get game skill from zscript

by SanyaWaffles » Wed Nov 20, 2019 10:57 pm

I remember documenting the G_SkillPropertyInt(SKILLP_ACSReturn) early on.

It's good to see that's actually correct.

Re: Get game skill from zscript

by Graf Zahl » Mon Nov 18, 2019 3:18 am

The proper way would be to call G_SkillPropertyInt(SKILLP_ACSReturn). That gives you a virtual skill index and allows your mod to function with skill definitions that are non-standard. Directly using the skill index is not recommended.

Re: Get game skill from zscript

by Apeirogon » Mon Nov 18, 2019 2:37 am

I want the monsters in my mod on higher difficulty uses special attacks, which would not be accessible for them on lower difficulty.
So I want a way to set some variables in skill definition which allow to do so.

Re: Get game skill from zscript

by Graf Zahl » Mon Nov 18, 2019 1:26 am

Normally skill related decisions should not be made on this but on the set skill properties. They are not necessarily done so that a higher skill is harder. What are you trying to do?

Re: Get game skill from zscript

by Matt » Sun Nov 17, 2019 2:37 pm

I think it's just "skill", like "if(skill==0)damage*=0.5;" etc.

Get game skill from zscript

by Apeirogon » Sun Nov 17, 2019 1:46 pm

As title say.
What should I need to do to be able to check what difficulty, including custom, player select from zscript? I try change custom cvar from gameskill block in mapinfo but in dont work.

Top