More help with plotscripting
Moderators: marionline, SDHawk
-
- Red Slime
- Posts: 49
- Joined: Thu Oct 29, 2015 8:18 pm
More help with plotscripting
What are conditions?
-
- Red Slime
- Posts: 49
- Joined: Thu Oct 29, 2015 8:18 pm
Plotscripting conditions
Here's a little something from the wiki:
while (condition) do, begin
# various things you want the script to repeat
end
# various things you want to happen after the script finishes
How do I make condition be "If player is on this map only"?
while (condition) do, begin
# various things you want the script to repeat
end
# various things you want to happen after the script finishes
How do I make condition be "If player is on this map only"?
Last edited by AzureGames on Thu Feb 23, 2017 9:23 pm, edited 1 time in total.
To accomplish that you can look in the dictionary under "Tweaking Maps." The first command, in fact, is "current map," which returns whatever map the player is in.
Assuming you want the player to be on map 0 only, the check for this should be
Assuming you want the player to be on map 0 only, the check for this should be
Code: Select all
while(current map == 0) do, begin
#things you want to do
wait(1) #This is important to include at the end of the loop. Without it your game will crash!
end
My pronouns are they/them
Ps. I love my wife
Ps. I love my wife
- Taco Bot
- Meat, Cheese, and Silicon
- Posts: 484
- Joined: Fri Jul 18, 2014 12:15 am
- Location: Santa Cruz
- Contact:
or maybe what you're looking for is something like
where "themap" is the name or number of the map you want
Code: Select all
if (current map == themap) then (
whatever code you want to do
)
Sent from my iPhone
-
- Red Slime
- Posts: 49
- Joined: Thu Oct 29, 2015 8:18 pm
New question.
How do I make a script repeat over and over until I leave the map?