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!You cant modify stock scripts, from what ive heard and tested. There are a few, from what I know zm_usermap, and ive heard _load but not sure. callbacks_shared.gsc has a few things that you can do during certain events, and there are notifys you can use as workarounds for now. There is a notify in minus_to_player_score that can get you the exact points the player spent, not sure if it works but more than likely it will.
Best we can do is keep looking. It really seems like they would allow us to do this since they included the scripts for us to use in the first place.
It doesn't really matter as long as the scripts work. I can't seem to find a way for editing these scripts to work.
If you specifically want to do something inside the minus player points function i suppose you could waittill the notify that happens when minus player points is complete, but this would still only work for this function and any other function that has a notify.
I did see something like this happen before. I was making a perk to double the points gained by kills and it seems like the score never doubled and it was just as normal. I'm trying to see if I can get it to work right now.
Double Post Merge: October 08, 2016, 11:43:13 pm
One problem might be where you place the script. All of my custom scripts are in a new folder I made inside share/raw/scripts.
Also when trying to compile with the _zm_perks.gsc inside my zone file and copied inside my scripts folder I get an error when compiling. I didn't edit the script at all.Spoiler: click to open...^1
^1^
^1ERR(6E) scripts/custom/_zm_score.gsc (706,0) : Compiler Internal Error : Unresolved external 'zm_pers_upgrades_functions::pers_upgrade_pistol_points_set_score'[close]
Nope, what are you specifically trying to change? Ill try to change it myself to see if its just you having this problem.
Just read what you edited, ill check it out.
Double Post Merge: October 08, 2016, 11:36:50 pm
I just copied the script into usermaps/mapname/scripts/zm and then added it to the zone file and entered the game.
It didn't show the println but that might be because I tested it on a door, I'm not sure but doors might not use that function to take points.
I'm going to make a script real quick to test this and see if that function will show the println.
Hmm this should be working, make sure you checked the link button when compiling in launcher. If nothing else works ill go look and see if i'm doing anything different.
Try just editing the original file and don't add anything to the zone file. If that works then its a problem with either adding it to zone or copying it.
I think it might just be a problem for you. I have been using edited stock scripts for a while and it seems to work for me.
Are you editing the original script or a copy?