im trying to make a level reset trigger but i dont want to change the old stats of a player like..
if i have a lvl 100 player then turn it back to 1 again and the stats should not change...
would someone help me?.... im currently making an RPG map based on Ragnarok....
Level Reset.......
Moderator: Cheaters
-
- Junior Member
- Posts: 32
- Joined: May 31st, 2008, 3:49 pm
- Title: Greedy
- Location: Manila,Philippines
-
- Forum Staff
- Posts: 1400
- Joined: March 17th, 2008, 12:07 am
Re: Level Reset.......
Make an integer value that you can set the stats to.
When they are level 99, set the value to their stats
(So values: Stat[1] = STR, Stat[2] = AGI, Stat[3] = INT)
When they level to 100, have it add the stats from those values,
or just set them to those values. Win!
When they are level 99, set the value to their stats
(So values: Stat[1] = STR, Stat[2] = AGI, Stat[3] = INT)
When they level to 100, have it add the stats from those values,
or just set them to those values. Win!
Made by the late ILikeHacking
My quote from SKillER
Spoiler:
Apparently, SKillER is a newfag.
-
- Super Moderator
- Posts: 3190
- Joined: February 24th, 2009, 1:31 pm
- Location: JEW LAND
Re: Level Reset.......
best thing i can think off.. is make a gamecache save the score / heroes and w/e
use ur reset command
gamecache load - stuff u saved..
use ur reset command
gamecache load - stuff u saved..
-
- Forum Staff
- Posts: 506
- Joined: November 17th, 2008, 3:49 pm
Re: Level Reset.......
Just as Kryptonyte said, the easiest way would just to use variables.
Just something quick..anyways i used custom script here, since its an easy way of making it MUI, so it wont conflict on the chance that other units level at the same time. StatAdd, STR, AGI, and INT, you need to make new variables for, just make them regular unit/integer variables, not array. I dont know how you want to reset level, if its just leveling up or using an item..but this should work either way, with just a little editing.
Code: Select all
Untitled Trigger 001
Events
Unit - A unit Gains a level
Conditions
(Hero level of (Triggering unit)) Equal to 100
Actions
Custom script: local unit udg_StatAdd
Custom script: local integer udg_STR
Custom script: local integer udg_AGI
Custom script: local integer udg_INT
Set StatAdd = (Triggering unit)
Set AGI = (Agility of StatAdd (Exclude bonuses))
Set INT = (Intelligence of StatAdd (Exclude bonuses))
Set STR = (Strength of StatAdd (Exclude bonuses))
Hero - Set StatAdd Hero-level to 1, Show level-up graphics
Hero - Modify Strength of StatAdd: Set to STR
Hero - Modify Agility of StatAdd: Set to AGI
Hero - Modify Intelligence of StatAdd: Set to INT
Just something quick..anyways i used custom script here, since its an easy way of making it MUI, so it wont conflict on the chance that other units level at the same time. StatAdd, STR, AGI, and INT, you need to make new variables for, just make them regular unit/integer variables, not array. I dont know how you want to reset level, if its just leveling up or using an item..but this should work either way, with just a little editing.
-
- Junior Member
- Posts: 32
- Joined: May 31st, 2008, 3:49 pm
- Title: Greedy
- Location: Manila,Philippines
Re: Level Reset.......
ow... i didnt expect this replies...
btw thank u very much....
anywayz... which is better GUI or JASS??...
btw thank u very much....
anywayz... which is better GUI or JASS??...
-
- Forum Addict
- Posts: 451
- Joined: November 21st, 2008, 9:36 am
- Title: Coleen!
Re: Level Reset.......
JASS, JASS is better because GUI is leaky, which makes JASS Better, but the bad thing most of the people doesn't know how to read JASS, which makes GUI Better.
(If I am not mistaking)
GUI = Easy to Read But Sometimes LEAKY
JASS = Most of them are easy to read, but guess others are not. It depends on you if you can read JASS, Good Thing is Less Leaks.
(If I am not mistaking)
GUI = Easy to Read But Sometimes LEAKY
JASS = Most of them are easy to read, but guess others are not. It depends on you if you can read JASS, Good Thing is Less Leaks.
-
- Junior Member
- Posts: 32
- Joined: May 31st, 2008, 3:49 pm
- Title: Greedy
- Location: Manila,Philippines
Re: Level Reset.......
uhhhhhh,,,,....
thnx... i should take the JASS path....
thnx... i should take the JASS path....
-
- Senior Member
- Posts: 152
- Joined: October 5th, 2009, 7:31 am
- Title: Taiwan, Singapore
- Location: Here!? XD
Re: Level Reset.......
decyper wrote:uhhhhhh,,,,....
thnx... i should take the JASS path....
For beginner, JASS is a bit hard. You can start with GUI and convert it to JASS. Isn't it's easy?
Just go WE and play some Trigger Editor, and convert it to JASS.