Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.

CamZ

Events


Player - Player 1 (Red) types a chat message containing -Zoom as A substring


Player - Player 2 (Blue) types a chat message containing -Zoom as A substring


Player - Player 3 (Teal) types a chat message containing -Zoom as A substring


Player - Player 4 (Purple) types a chat message containing -Zoom as A substring


Player - Player 5 (Yellow) types a chat message containing -Zoom as A substring


Player - Player 6 (Orange) types a chat message containing -Zoom as A substring

Conditions

Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




(Substring((Entered chat string), 7, (Length of (Entered chat String)))) Equal to Empty String



Then - Actions




Skip remaining actions



Else - Actions


Set Camera_Distance = (Real((Substring((Entered chat string), 7, (Length of (Entered chat String))))))


Camera - Set (Triggering player)'s camera Distance to target to Camera_Distance over 0.20 seconds


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




Camera_Distance Greater than or equal to 3000.00



Then - Actions




Camera - Set (Triggering player)'s camera Distance to target to 3000.00 over 0.20 seconds




Set Camera_Distance = 3000.00




Game - Display to (All players matching ((Triggering player) Equal to (Matching player))) for 6.00 seconds the text: |c00ff0000Zoomed ou...



Else - Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




Camera_Distance Less than or equal to 500.00



Then - Actions




Camera - Set (Triggering player)'s camera Distance to target to 500.00 over 0.20 seconds




Set Camera_Distance = 500.00




Game - Display to (All players matching ((Triggering player) Equal to (Matching player))) for 6.00 seconds the text: |c00ff0000Zoomed in...



Else - Actions
alright i just need the zoom from like 200 to 1000
how do i set camera_distance?
and what is (Real((Substring((Entered chat string), 7, (Length of (Entered chat String))))))
So, you have the if/then/else-action, click on "New Condition" for it and then do:
- In the condition, click "Real Comparison"
- Click on the first data you can change and select "Conversion - Convert String to Real"
- The standard should be "Real(Entered Chat String)", instead of the "Entered Chat String", select "Substring"
- Now you should see this: "Substring(String, 1, 5)" if you don't, retrace the steps until you see it.
- Replace the "String" with "Event Response - Entered Chat String".
- Replace the first number (1) with 7
- Replace the second number with "String Length" (it should automatically be set to "String Length of (Entered Chat String)".
- Click on "Ok" everywhere you can until you're back in the normal trigger-screen and there it is! the function you want.
how do you make it equal to empty string? sorry for the questions im just a beginner here
Set the condition to "String Comparison" and click on the red data (the 'incorrect data').
After you've clicked on it, simply press Enter (don't do anything else), then it'll be an empty string.
So, you have the if/then/else-action, click on "New Condition" for it and then do:
- In the condition, click "Real Comparison"
- Click on the first data you can change and select "Conversion - Convert String to Real"
- The standard should be "Real(Entered Chat String)", instead of the "Entered Chat String", select "Substring"
- Now you should see this: "Substring(String, 1, 5)" if you don't, retrace the steps until you see it.
- Replace the "String" with "Event Response - Entered Chat String".
- Replace the first number (1) with 7
- Replace the second number with "String Length" (it should automatically be set to "String Length of (Entered Chat String)".
- Click on "Ok" everywhere you can until you're back in the normal trigger-screen and there it is! the function you want.
it works!! thanks
