CaptDeath
New Member
- Reaction score
- 103
i am trying to make a in game calcuator so im asking you guys weres my mistake?
Trigger:
- One trigger Calc
- Events
- Player - Player 1 (Red) types a chat message containing * as A substring
- Player - Player 1 (Red) types a chat message containing + as A substring
- Player - Player 1 (Red) types a chat message containing \ as A substring
- Player - Player 1 (Red) types a chat message containing - as A substring
- Player - Player 1 (Red) types a chat message containing = as An exact match
- Player - Player 1 (Red) types a chat message containing # as A substring
- Conditions
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Substring(*, 1, 1)) Equal to *
- Then - Actions
- Set Calc[(Player number of (Triggering player))] = (Calc[(Player number of (Triggering player))] x (Integer((Substring((Entered chat string), 2, (Length of (Entered chat string)))))))
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Substring(+, 1, 1)) Equal to +
- Then - Actions
- Set Calc[(Player number of (Triggering player))] = (Calc[(Player number of (Triggering player))] + (Integer((Substring((Entered chat string), 2, (Length of (Entered chat string)))))))
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Substring(\, 1, 1)) Equal to \
- Then - Actions
- Set Calc[(Player number of (Triggering player))] = (Calc[(Player number of (Triggering player))] / (Integer((Substring((Entered chat string), 2, (Length of (Entered chat string)))))))
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Substring(-, 1, 1)) Equal to -
- Then - Actions
- Set Calc[(Player number of (Triggering player))] = (Calc[(Player number of (Triggering player))] - (Integer((Substring((Entered chat string), 2, (Length of (Entered chat string)))))))
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Entered chat string) Equal to =
- Then - Actions
- Game - Display to (All players) the text: (String(Calc[(Player number of (Triggering player))]))
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Substring(#, 1, 1)) Equal to #
- Then - Actions
- Set Calc[(Player number of (Triggering player))] = (Integer((Substring((Entered chat string), 2, (Length of (Entered chat string))))))
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events