Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Progression/EXP compact and small mod

Recommended Posts

I want to make a mod that fits my playstyle. I really like Gun Bonsai but I don't want anything to change how my weapon works, so I was thinking of doing something similar just for player's level up. The idea is really simple but all the mods I have found either add too much or completely change the way the game is played. I want something with high compatibility, I want to play it with other 40 mods if I want, or with my small selection of favourites (2 mods). This would be used to balance wads, and that's all; it's not supposed to really add anything new. Ideally, mod should be quite compact and easy, without interfering too much with the way you play, and you should be able to set a few options in the menu: how fast you level up (amount of XP per each thing), and if you get random upgrades or you get to choose them (maybe even if you get the new upgrade instantly or you have to wait for a new map to start?)
No idea how to even start, but I've been fiddling around with ZScript for the past week, looking at the code of some mods (some in DECORATE, others in ACS).


- Killing enemies give you a tiny bit of XP
- Finishing an episode with 100% kills give you more XP
- Finding a secret does not grant you XP: usually secrets already have power ups, ammos, weapons, etc.
- When you level up (amount of XP), you get a new upgrade point (option to have it random)


I was thinking about the upgrades. They can be taken more than once hopefully.
- Ammo Bag: increases ammo capacity by a little, stacks with backpack
- Scavenger: enemies have a small chance to drop ammo for weapons you have
- Survivor: enemies have a small chance to drop health
- Phoenix: 30%/50%/60% of resurrecting after dying. Only works once per level (a few seconds of invulnerability after you resurrect, of course)
- Switch: weapon switch is faster
- Toughness: reduces hitscan damage by a small amount
- Kung Fu: increases melee damage and berserk powerups give armour as well
- Hack: same as Gun Bonsai, incoming homing projectiles can be redirected to nearby enemies (higher chance with higher points)


Why am I writing this here?

Well, I'd like to have some help whenever possible. I already read the ZScript Basics, but I was thinking: if I give these powerups as items to a player, wouldn't they be removed when I play pistol start? Where would I store them? They also need to be loaded from a savefile... lots of things to think about. I'm currently looking at Gun Bonsai's code to learn a thing or two.

Share this post

Link to post

You start by lowering your expectations, and asking basic questions about what's actually possible, and what is feasible.

Honestly, your project looks very complicated and expansive for a beginning mapper or coder. You should start out very small, a piece at a time, and start with very small mods and get those to work before tackling a magnum opus mod as your very first thing.

Share this post

Link to post

I'd agree with you but I found very simple to implement a few of these already. As you said, little by little. The actual coding is not very complex, the hard part is to understand how the game handles everything.

I managed to have enemies drop random ammos from weapons you own, and health packs as well, also increase bag capacity. All of these into separate mods. Next step is to implement these modifications into an item or something that the player carries when he "levels up"; still haven't done anything. I guess the hardest one would be the weapon switch change, which would require to modify all the weapons (from what I've seen, there's no global variable that dictates the weapon switch, but rather the state of the weapons themselves; so it wouldn't even be a global/high compatibility modification...)

Share this post

Link to post

Well, you can somehow externally alter weapon raising/lowering by modifying weapon's PSprite Y field...

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now