Moving Platform Script
#16
Posted 11 March 2016 - 04:16 PM
#17
Posted 11 March 2016 - 04:21 PM
It's the checks. I had to add LA_RAFTING to the checks to get it to allow rafting. If you add a check to see if "OnPlatform == false", it should work.
EDIT: Oh, wait, never mind, you don't have a global variable for being on the platform, anymore.
Edited by Binx, 11 March 2016 - 04:39 PM.
#18
Posted 11 March 2016 - 04:40 PM
Edited again. It should at least compile now, but I haven't tested it with Meropits because that script is a mess and I don't want to set it up in a test quest.
It did compile this time. You were right, though, it didn't have any effect.
I wouldn't mind using a non-Mero script, but there's pretty much nothing else in the DB other than his that I can find.
#19
Posted 11 March 2016 - 04:57 PM
It did compile this time. You were right, though, it didn't have any effect.
I wouldn't mind using a non-Mero script, but there's pretty much nothing else in the DB other than his that I can find.
Like I said, before, the problem is in the line
if(Link->Action != LA_Scrolling)
You need to add a check to that line to see if you're on the platform. Looking through the script you posted, you still have "bool OnPlatform(ffc this)", right?, if it's still there, change the above line to
if((Link->Action != LA_SCROLLING) && (OnPlatform(this) != true))
That *should* fix the problem. Not sure how it woud done with Dimentio's script, since it doesn't use a global variable.
Edited by Binx, 11 March 2016 - 04:58 PM.
#20
Posted 11 March 2016 - 05:15 PM
Like I said, before, the problem is in the line
if(Link->Action != LA_Scrolling)You need to add a check to that line to see if you're on the platform. Looking through the script you posted, you still have "bool OnPlatform(ffc this)", right?, if it's still there, change the above line to
if((Link->Action != LA_SCROLLING) && (OnPlatform(this) != true))That *should* fix the problem. Not sure how it woud done with Dimentio's script, since it doesn't use a global variable.
"Could not macth type signature."
#21
Posted 11 March 2016 - 05:29 PM
Hmmmm. that's strange, probably a syntax error on my part. Or maybe it's that it isn't hard-coded to use a specific ffc...
Probably won't do anything but try changing
OnPlatform(this) != true
to
OnPlatform == false
Edited by Binx, 11 March 2016 - 05:32 PM.
#22
Posted 11 March 2016 - 05:54 PM
Hmmmm. that's strange, probably a syntax error on my part. Or maybe it's that it isn't hard-coded to use a specific ffc...
Probably won't do anything but try changingOnPlatform(this) != trueto
OnPlatform == false
No good.
#23
Posted 11 March 2016 - 05:57 PM
#24
Posted 11 March 2016 - 06:14 PM
The alteration to Mero's script does use a global check to check if you are on a platform. If you want, I can fix the other pit scripts that you are using to check for if you are on a platform.
#25
Posted 11 March 2016 - 06:31 PM
#26
Posted 11 March 2016 - 06:50 PM
Check my first post again. I missed that the platform script is just called "Platform", not "MovingPlatform".
Still compiles, but platforms don't hold up over pits.
Here is my global as of now:
My platform script:
And my pit script, which is mixed in with a shield item script (IIRC, it's Zoria's modification of Mero's script, or some-such).
#27
Posted 11 March 2016 - 07:12 PM
Because that line is in the global script, and "this" only refers to an FFC within an FFC script.
Then there needs to be a global variable that tells you if he's on the platform. I've tried every way possible of modifying the Update_Holelava function and OnPitCombo functions (trying to get rafting to work, even tried to make a scripted raft for it), and nothing worked until I expanded the Link->Action check in the global. I dunno *why* that is, but as long as there's nothing in the global to protect platforms from pits, it won't work.
#28
Posted 11 March 2016 - 07:39 PM
#29
Posted 11 March 2016 - 09:41 PM
What I posted is pretty much all the relevant script work, the rest is a sideview ladder, power bracelet, and sideview, using the other global script slots. Platforms are handled by global flags, as are pits. In the script above, there's no check for platforms.
I'm considering tabling this until I'm competent enough with zscript to write in my own code. I can just use water as pits for now.
#30
Posted 11 March 2016 - 09:59 PM
- Binx likes this
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users