Inn Cost
Events
Player - Player 1 (Red) types a chat message containing -Inn Cost as A substring
Conditions
(Substring((Entered chat string), 1, 9)) Equal to -Inn Cost
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 10, 10)) Not equal to
(Substring((Entered chat string), 12, 12)) Not equal to
Then - Actions
Game - Display to (All players) for 30.00 seconds the text: RAN!
Set X = (Integer((Substring((Entered chat string), 10, 11))))
Set Inn_Cost[X] = (Integer((Substring((Entered chat string), 12, (Length of (Entered chat string))))))
Skip remaining actions
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 10, 10)) Equal to
Then - Actions
Set X = (Integer((Substring((Entered chat string), 11, 12))))
Else - Actions
Set X = (Integer((Substring((Entered chat string), 10, 11))))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 13, 13)) Equal to
Then - Actions
Set Inn_Cost[X] = (Integer((Substring((Entered chat string), 14, (Length of (Entered chat string))))))
Else - Actions
Set Inn_Cost[X] = (Integer((Substring((Entered chat string), 13, (Length of (Entered chat string))))))