-gold 01 300 Crash Problem
Moderator: Cheaters
-
- Member
- Posts: 58
- Joined: December 8th, 2007, 8:11 pm
-gold 01 300 Crash Problem
I am making a cheat for gold, so when you type -gold 01 300 it gives player 01 300 gold (-gold (player number) (amount of gold)). But if I type -gold 13 300 the game crashes, because there are only 12 players. So how can I make the trigger ignore the command if I type -gold (number bigger than 12) 300? I tried many ways but I found only one and its to make a different trigger for every player (eg. if I type -gold 01 300 - a trigger for player 01, if I type -gold 02 300 - a new trigger for player 02..).
[blinking]Sorry for my english ^_^[/blinking]
-
- Shopping Maul USA Creator
- Posts: 1759
- Joined: January 18th, 2007, 11:07 am
- Title: No Comment
- Location: Calgary Canada
- Has thanked: 45 times
- Been thanked: 8 times
Re: -gold 01 300 Crash Problem
first tip is, dont type "13" when theres only 12 players.
I would say the best is to leave out the player number and type a trigger for every player.
event - a player types -gold
condition - name of triggering player = to player 1
action - Dont know how its worded exactly in editor, but tell it to give player 1 +300 gold
then repeat the trigger for 11 other players.
I would say the best is to leave out the player number and type a trigger for every player.
event - a player types -gold
condition - name of triggering player = to player 1
action - Dont know how its worded exactly in editor, but tell it to give player 1 +300 gold
then repeat the trigger for 11 other players.
-
- Legendary Genius
- Posts: 1311
- Joined: August 8th, 2007, 8:10 am
- Title: Legendary Genius²
- Location: St. George Utah
Re: -gold 01 300 Crash Problem
How about have a condition where the player number has to be less than 13 and greater than -1 like:
((Integer((Substring((Entered chat string), 7, 8 )))) Less than 13) and ((Integer((Substring((Entered chat string), 7, 8 )))) Greater than -1)
((Integer((Substring((Entered chat string), 7, 8 )))) Less than 13) and ((Integer((Substring((Entered chat string), 7, 8 )))) Greater than -1)
Computer Specs:
Motherboard: GA-990FXA-UD3
CPU: FX-8350 @ 4.0GHz
PSU: Corsair CX500
RAM: G.Skill Ripjaws X 8GB @ 1866
GPU: Radeon HD 4870 1GB
HDD: OCZ Vertex series 30GB SSD
Case: Antec 900
Monitor: Toshiba 32"
OS: Windows 7 Ultimate
Motherboard: GA-990FXA-UD3
CPU: FX-8350 @ 4.0GHz
PSU: Corsair CX500
RAM: G.Skill Ripjaws X 8GB @ 1866
GPU: Radeon HD 4870 1GB
HDD: OCZ Vertex series 30GB SSD
Case: Antec 900
Monitor: Toshiba 32"
OS: Windows 7 Ultimate
-
- Shopping Maul USA Creator
- Posts: 1759
- Joined: January 18th, 2007, 11:07 am
- Title: No Comment
- Location: Calgary Canada
- Has thanked: 45 times
- Been thanked: 8 times
Re: -gold 01 300 Crash Problem
Why not create a player group variable called "gold".
At map start set every player in this group. then instead of writing the trigger 11 times, then use the condition-player is in gruop "gold"
that should work too me thinks.
At map start set every player in this group. then instead of writing the trigger 11 times, then use the condition-player is in gruop "gold"
that should work too me thinks.
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
Re: -gold 01 300 Crash Problem
Ok, this might not be the correct trigger you are looking for, something around the lines of vampirism beast. It checks to see if the Triggering player is of multiple conditions:
Triggering player is ally of Player who gold is being given to
Given player is A player = True
Given player is Player = true
Triggering player is not player who gold is being given to
With these triggers are kinda self explanatory to keep you from loosing gold by mistyping.
Now for the trigger, it does the -gold 02(Player) 200(gold) It will give 200 gold to player 2, and remove 200 from red if he has it. If he does not have the gold, do not run the trigger.
Triggering player is ally of Player who gold is being given to
Given player is A player = True
Given player is Player = true
Triggering player is not player who gold is being given to
With these triggers are kinda self explanatory to keep you from loosing gold by mistyping.
Now for the trigger, it does the -gold 02(Player) 200(gold) It will give 200 gold to player 2, and remove 200 from red if he has it. If he does not have the gold, do not run the trigger.
Code: Select all
Gold Give
Events
Player - Player 1 (Red) types a chat message containing -gold as A substring
Conditions
(Substring((Entered chat string), 1, 5)) Equal to -gold
((Player((Integer((Substring((Entered chat string), 7, 8)))))) slot status) Equal to Is playing
((Player((Integer((Substring((Entered chat string), 7, 8)))))) controller) Equal to User
((Player((Integer((Substring((Entered chat string), 7, 8)))))) is an ally of (Triggering player)) Equal to True
(Player((Integer((Substring((Entered chat string), 7, 8)))))) Equal to (Triggering player)
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Substring((Entered chat string), 7, 8)) Equal to 01
(Substring((Entered chat string), 7, 8)) Equal to 02
(Substring((Entered chat string), 7, 8)) Equal to 03
(Substring((Entered chat string), 7, 8)) Equal to 04
(Substring((Entered chat string), 7, 8)) Equal to 05
(Substring((Entered chat string), 7, 8)) Equal to 06
(Substring((Entered chat string), 7, 8)) Equal to 07
(Substring((Entered chat string), 7, 8)) Equal to 08
(Substring((Entered chat string), 7, 8)) Equal to 09
(Substring((Entered chat string), 7, 8)) Equal to 10
(Substring((Entered chat string), 7, 8)) Equal to 11
(Substring((Entered chat string), 7, 8)) Equal to 12
(Integer((Substring((Entered chat string), 10, 20)))) Less than or equal to ((Triggering player) Current gold)
Then - Actions
Player - Add (0 - (Integer((Substring((Entered chat string), 9, 20))))) to (Triggering player) Current gold
Player - Add (Integer((Substring((Entered chat string), 9, 20)))) to (Player((Integer((Substring((Entered chat string), 7, 8)))))) Current gold
Else - Actions