Posts
208
Respect
31Add +1
Forum Rank
Mr. Elemental
Primary Group
Member
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
Hi! I'm wondering since i have an upgraded_upgraded weapon, that can i make it so i can buy wall ammo off the wall for an upgraded_upgraded weapon, and to change the pack a punch price for an upgraded_upgraded weapon to be different from 5000? Also can that weapon be removed from the mystery box once it has been double pap, to prevent a useless weapon in a mystery box? If anyone could help me, that would be appreciated
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. | |
Oil Rig Beta Access |
I have an old topic on zombiemodding.com where it tells you all the stuff you meed to change for wall-buy, ammo, hasweapon checks etc. You would have to look for it. Search for my username ( also BluntStuffy and try something like _upgraded_upgraded )
If you cant find it i can try and look for it tonight/tomorrow
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. | |
Oil Rig Beta Access |
OMFG thank you so much. I've been trying to find a solution for this for ages. But i also have 2 questions regarding this.
1: In your post you said something about alt ammo, is alt ammo purchasable from the original weapon trigger? (ex: buys type 99, upgrades it, it gets gl attachment, buys type 99 upgraded ammo)
2: the hintstring don't seem to update from the script. The prices are 5000 for _upgraded_upgraded ammo but buying a gun, it just lists " 500(gun price) || 350 (ammo price) || 4500 (upgraded ammo price " instead of updating _upgraded price and adding _upgraded_upgraded's price. I also changed the orignal pap price in the script but it shows as 4500 still.
Tbh, i'm not really sure anymore. It's been a while since i messed with that ( as you can see from the date ). You would have to try and see, if it doesn't you could Always change the function in _zombiemode_weapons that give the ammo to the players.
I was trying some weird stuff with alt-weapons and ammo, so just ignore the talk about alt-ammo etc if you dont use it.
The hintstrings are 'fixed' so they wont update themself. You need to change them. So look for the sethintstring() lines. Most of them for weapons and PaP look like this:
where it has the & infront of the " This indicates it's a localized string ( so it adjusts itself to the language you install the game with. You can either go to /raw/english/localizedstrings/ and look for the zombie.str. Then you can adjust them in there. You can also just hard-code them in your scripts by removing the & and just typing them out:
Since there's no real benefit in localized strings for modding you are prob easier of just hardcoding them.hope that helps,Spoiler: click to open...btw, the hintstrings for weapons are in the add_zombie_weapon() function:[close]
Blunt
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. | |
Oil Rig Beta Access |
You can add a variable in a string with a + and if you want to continue the string you simply add a + after that and add a new string. So for example:
Localized strings are really only usefull if you want to release multiple langue-versions of your map. If you only make an english version using localized strings is only extra work for nothing.
You can change the pap-hintstring, sure. It will be more complicated to make it display the correct price depending on if you appraoch the machine with a paped or a non-paped weapon. But you can simply do something like.
"Press Use to upgrade weapon [5000]. Double upgrade [10000]"
It should be in zombiemode_perks somewhere, just search for sethintstring
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. | |
Oil Rig Beta Access |
It worked in game but idk if could cause problems later on. But thank you so much for helping me
One other question, i'm using harry's scripts for perks and pap so the strings and sethintstrings for the pap price aren't called there i think, because i looked for sethintstring and nothing regarding pap showed up so idk.
That should work fine.
Havent used those myself, so i couldn't tell you. Guess just open all files that come with it at the same time, and search through all of them at the same time for sethintstring(). Think i've seen him put a lot of variables at the top of his scripts, so it's eaasier for user to edit.
So it could be he included them as a 'setting' and stored the string in a variable at the top of a script somewhere..
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. | |
Oil Rig Beta Access |
I found the variable
But i wouldn't know how to script it to allow 5000 for the 1st upgrade and 10000 for 2nd upgrade since the script line is structured by
there's also this
but it works the same way as the script you showed me. so idk, very confusing lol.
All this stuff has nothing to do with the hintstring/price. it's for spawning the models etc
That's the string you need to change, just type whatever you want here just like with the weapons. ( the .pap_price variable sets the price for the normal pap, you can search where that variable is set.