How do I code if not Link->X 55, also slot questions
#1
Posted 16 June 2018 - 02:03 AM
Example
global script Kyle slot1
global script Mary slot2
global script Overdrive Ostrich slot3
#2: How do I apply slot1 global script in a game?
#3: How do I error free code if Link's X position is not at 55 something happens?
#2
Posted 16 June 2018 - 07:11 AM
#1: How do I code different global scripts that will be put into slots?
Example
global script Kyle slot1
global script Mary slot2
global script Overdrive Ostrich slot3
#2: How do I apply slot1 global script in a game?
#3: How do I error free code if Link's X position is not at 55 something happens?
There are four global script slots, each with a specific purpose.
Slot 0, Init: This runs once, when a quest is first loaded, for a single frame.
Slot 1, Continue: This runs each time a quest is loaded, after the first.It runs for one frame.
Slot 2, Active: This script can run for multiple frames, and it what people generally mean, when they reference a global script. You can have only one active script running at a time, and there is no way to change it.
Slot 3, Exit: Broken in 2.50.2 and earlier, fixed in 2.53. Runs when Link dies, or the player presses F6.
You want to design your active script (slot 2) to perform all of the tasks that you wish to accomplish, during gameplay.
#3
Posted 16 June 2018 - 10:53 AM
These links may be helpful to that end:
https://www.purezc.n...showtopic=38773
https://www.purezc.n...showtopic=72983
Not tried Moosh's program (the second link), but replies appear to say it works well, so...
#4
Posted 16 June 2018 - 04:28 PM
if (Link->X != 55) { //dostuff }
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users