HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Saving & Loading Multiple Heroes In the Same Game

07-22-2004, 11:22 PM#1
Kelna2
Ok, I am using the WEU saving and Loading, What I am trying to do is allow players to save their hero, and their backpack and load them in another game without duping Items. I do not wish to use an item that takes up a slot in the hero's and the backpack's inventory to prevent duping, I cannot use Gold Or Lumber to fix this, they are both being used for other triggers and game play, I do have a system up in place right now, but it is hack-able, It sets the back pack to the heroes exp right before it saves, then when you load next game it adds 1 exp to both backpack and hero and then checks to see if they are the same, the problem comes in when the hero reaches its highest level, then they are able to dupe, so, you guys know how i can fix this?
07-23-2004, 06:46 AM#2
HexenLordX
Quote:
Originally Posted by Kelna2
Ok, I am using the WEU saving and Loading, What I am trying to do is allow players to save their hero, and their backpack and load them in another game without duping Items. I do not wish to use an item that takes up a slot in the hero's and the backpack's inventory to prevent duping, I cannot use Gold Or Lumber to fix this, they are both being used for other triggers and game play, I do have a system up in place right now, but it is hack-able, It sets the back pack to the heroes exp right before it saves, then when you load next game it adds 1 exp to both backpack and hero and then checks to see if they are the same, the problem comes in when the hero reaches its highest level, then they are able to dupe, so, you guys know how i can fix this?

Several fixes to this. The one I used was that once you pick a hero to start with, the load trigger is disabled. And once you load, you cannot load again. This prevents the user from duping items in the same game. As far as moving from game to game, I used a trigger to set all items in the hero's inventory to variables, and if they left the game without typing -save, the items would be removed from the game. Another way would be to set the items that you don't want to be duped, undroppable, therefor they couldn't give them to someone else and leave and then do it repeatedly with that person in other games.

I'm coming up with a system right now to make items undupable by method of loading character, dropping item for partner and leaving without saving.

Duping was prevented in the FFORPG series by making items dropped by you only allowed to be picked up by you. I'm not sure how you want to do it, but there's just a few ways.
07-23-2004, 06:59 AM#3
Ceo
Quote:
Originally Posted by HexenLordX
As far as moving from game to game, I used a trigger to set all items in the hero's inventory to variables, and if they left the game without typing -save, the items would be removed from the game.

That's extremely ingenious! I will definately use this, thank you. It's even better because I already have triggers that saves all of the heroes items to arrays for a bag system.
07-24-2004, 09:03 PM#4
Kelna2
Quote:
Originally Posted by HexenLordX
Several fixes to this. The one I used was that once you pick a hero to start with, the load trigger is disabled. And once you load, you cannot load again. This prevents the user from duping items in the same game. As far as moving from game to game, I used a trigger to set all items in the hero's inventory to variables, and if they left the game without typing -save, the items would be removed from the game. Another way would be to set the items that you don't want to be duped, undroppable, therefor they couldn't give them to someone else and leave and then do it repeatedly with that person in other games.

I'm coming up with a system right now to make items undupable by method of loading character, dropping item for partner and leaving without saving.

Duping was prevented in the FFORPG series by making items dropped by you only allowed to be picked up by you. I'm not sure how you want to do it, but there's just a few ways.

Hmm, I like your idea where if you leave and you don't type -save it removes your items, but the others I really cant use for the map that I'm making, But, I think i thought up a new thing that will help me out, here it is,

Set Gold_Integer = Player1's Current Gold
Set player1's gold to random number 1-5,000,000
Set Number_Code = Player1's Current Gold
Save Hero
Set Player1's Gold to Gold_Integer
Set Player1's Wood to Number_Code

Save Backpack

Hero Loaded
Set Hero_Code_Confirm_Integer[1] = Player1's Gold
Set Player1_Wood = Player1's Wood

Backpack Loaded
Set Hero_Code_Confirm_Integer[2] = Player1's Wood
Set Player1's wood to Player1_Wood
If: Hero_Code_Confirm_Integer[1] is equal to Hero_Code_Confirm_Integer[2]
Than: Do Nothing
Else: Show Player1 Defeat Showing Message: Cheater!