lummerlars
Member
- Reaction score
- 2
Hi. I have made a Save/load trigger. Right now its a simple GUI Trigger. It can save and load, Heroes and Items. I will add more save mods to it later.
My question is: How can i make it more non-hackable. Because right now its very easy to hack. The code goes:
How can i make it more safe?
My question is: How can i make it more non-hackable. Because right now its very easy to hack. The code goes:
Trigger:
- Events
- Player - Player 1 (Red) types a chat message containing -save as An exact match
- Conditions
- Actions
- Set Code = <Empty String>
- Set UnitGroup = (Units owned by (Triggering player) matching (((Matching unit) is A Hero) Equal to True))
- Unit Group - Pick every unit in UnitGroup and do (Actions)
- Loop - Actions
- If ((Unit-type of (Picked unit)) Equal to HeroType[1]) then do (Set Code = (Code + HeroString[1])) else do (Do nothing)
- If ((Unit-type of (Picked unit)) Equal to HeroType[2]) then do (Set Code = (Code + HeroString[2])) else do (Do nothing)
- If ((Unit-type of (Picked unit)) Equal to HeroType[3]) then do (Set Code = (Code + HeroString[3])) else do (Do nothing)
- If ((Unit-type of (Picked unit)) Equal to HeroType[4]) then do (Set Code = (Code + HeroString[4])) else do (Do nothing)
- Set Code = (Code + (String((Number of items carried by (Picked unit)))))
- For each (Integer A) from 1 to 6, do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Item carried by (Picked unit) in slot (Integer A)) is owned) Equal to True
- Then - Actions
- For each (Integer B) from 1 to TotalItems, do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Item-type of (Item carried by (Picked unit) in slot (Integer A))) Equal to ItemType[(Integer B)]
- Then - Actions
- Set Code = (Code + ItemString[(Integer B)])
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
- For each (Integer B) from 1 to TotalItems, do (Actions)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
- Loop - Actions
- Game - Display to (All players) the text: Code
How can i make it more safe?