@vexal: i'm a programmer at college. i'm new to data editor but the triggers and the galaxy code i understand a lot of. i'm still trying to figure out the data editor. please, by all means submit a tutorial on how to do it, i would gladly change it.
@thealmaity: took me a second but i think i understand. its kinda elaborate especial with 20 buttons. i will keep what u say in mind for future projects.
@vexal: wouldn't the price of the upgrade be the non-local check? before trigger runs it checks global variable for the proper amount?
@kueken: i've tried to spam click it when i have lag and when other people have lag and when battle net lags. i get maybe 1-2 false upgrades as i break my mouse buttons.
its a upgrade button that spends points for armor upgrade. its not suppose to deactivate and it cant easy check for too many upgrades.the first 3-4 lines of code calculates and raises the price. the next lines of code sets the player's variable data and gives the upgrade.
they are managing to do it before the price raise... i could i guess do it in the first line of code, but will it really make a difference?
short hand code.
event:dialog button is used
variable: x placeholder
variable: price
condition: if dialog button=x
action:
set x placeholder*globalvariableupgrade[triggeringplayer]
set x* 1.5
if x<= points[triggeringplayer]
then modify globalvvariableupgrade[triggeringplayer]+1
give upgrades and adjust more variables.
else
you dont have enough.
its the 4th line of code. and ya with units u can check overstock but this i don't think you can without doing something massively elaborate?
on a positive note, i got the player name and reported him for cheating. at most players can get 50, i got 80 once trying very hard at the end. but he got 99 in the beginning.
i'm getting bug reports, that people have manage to get a upgrade 99 times. in the first 5 min. i've personally tested and retested these dialog functions. i don't see how they can do it that fast. there no wait times and the price for the upgrade goes up each time. i could maybe see one or 2 but 99?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
@vexal: i'm a programmer at college. i'm new to data editor but the triggers and the galaxy code i understand a lot of. i'm still trying to figure out the data editor. please, by all means submit a tutorial on how to do it, i would gladly change it.
@thealmaity: took me a second but i think i understand. its kinda elaborate especial with 20 buttons. i will keep what u say in mind for future projects.
@vexal: wouldn't the price of the upgrade be the non-local check? before trigger runs it checks global variable for the proper amount?
@kueken: i've tried to spam click it when i have lag and when other people have lag and when battle net lags. i get maybe 1-2 false upgrades as i break my mouse buttons.
its a upgrade button that spends points for armor upgrade. its not suppose to deactivate and it cant easy check for too many upgrades.the first 3-4 lines of code calculates and raises the price. the next lines of code sets the player's variable data and gives the upgrade.
they are managing to do it before the price raise... i could i guess do it in the first line of code, but will it really make a difference?
short hand code.
event:dialog button is used variable: x placeholder variable: price condition: if dialog button=x action: set x placeholder*globalvariableupgrade[triggeringplayer] set x* 1.5 if x<= points[triggeringplayer] then modify globalvvariableupgrade[triggeringplayer]+1 give upgrades and adjust more variables. else you dont have enough.
its the 4th line of code. and ya with units u can check overstock but this i don't think you can without doing something massively elaborate?
on a positive note, i got the player name and reported him for cheating. at most players can get 50, i got 80 once trying very hard at the end. but he got 99 in the beginning.
that may be few and far between but i will a 1 second delay
i'm getting bug reports, that people have manage to get a upgrade 99 times. in the first 5 min. i've personally tested and retested these dialog functions. i don't see how they can do it that fast. there no wait times and the price for the upgrade goes up each time. i could maybe see one or 2 but 99?