Search found 832 matches

by Foxley
Sun Jul 03, 2016 4:16 pm
Forum: Q&A Discussion
Topic: Potential problems with "while (true) do" scripts?
Replies: 3
Views: 1023

Oh yeah, I forgot that you can set an on-key-press script too. I should probably give that a try. Is there a way to do an if statement in an on-key-press script that checks for the scancode of whatever key was just pressed? That way I could just do "if key pressed is left, and stairs zone are a...
by Foxley
Sun Jul 03, 2016 6:27 am
Forum: Q&A Discussion
Topic: Potential problems with "while (true) do" scripts?
Replies: 3
Views: 1023

Potential problems with "while (true) do" scripts?

I was trying to come up with a way to handle diagonal stair movements that wouldn't require a constant while loop checking for zones like the example script that's on the wiki has, because I was concerned about it potentially interfering with other scripts that might need to happen on the same map. ...
by Foxley
Sat Jul 02, 2016 4:17 pm
Forum: Game Discussion
Topic: Heart of the OHR Contest 2016
Replies: 279
Views: 56734

I like this sound of this. It incentivizes finishing on time or early so you can request feedback and testing, but doesn't screw over people who need a bit more time to ensure it'll be better quality. I'm going to try to get something with substance to it before July 31st and ask for feedback at tha...
by Foxley
Thu Jun 30, 2016 6:14 pm
Forum: Q&A Discussion
Topic: Clear pass block?
Replies: 7
Views: 1506

Aha! Didn't know that a 0 value was equivalent to passable, it doesn't mention that in plotdict.xml under read or write pass block documentation. I'll give that a try later.
by Foxley
Thu Jun 30, 2016 6:09 pm
Forum: Q&A Discussion
Topic: Getting handle on a slice created in an ended script?
Replies: 16
Views: 3271

Even 50 looks scary! I guess I'll just start a global variable stockpile in a separate . hss and include it in the main .hss, and briefly comment each one in case I can't remember what they're for. So I take it you don't need to declare globals in order? You can declare 1-25, then 50-100, then 200-3...
by Foxley
Thu Jun 30, 2016 5:23 pm
Forum: Q&A Discussion
Topic: Clear pass block?
Replies: 7
Views: 1506

Ouch. I guess I could try that, I'm just concerned it would erase map states that were changed by other events in the same dungeon. If it messes things up I guess I'll just use tags and invisible NPCs to block and unblock that space.
by Foxley
Thu Jun 30, 2016 5:18 pm
Forum: Q&A Discussion
Topic: Getting handle on a slice created in an ended script?
Replies: 16
Views: 3271

Okay, I'll go back to using globals for slices. Does every global in the entire game need to be declared with a unique number? That's why I don't want to use globals that much, keeping track of potentially hundreds of them in the process of developing my game is going to be a pain. Could I just decl...
by Foxley
Thu Jun 30, 2016 6:09 am
Forum: Q&A Discussion
Topic: Clear pass block?
Replies: 7
Views: 1506

Clear pass block?

I used write pass block to create a wall around a big slice - the rolling boulder I just put a screenshot of in my previous thread. Unfortunately, I can't seem to find a way to reset those things. When I do write pass block again, instead of toggling them back to being passable again, they remain so...
by Foxley
Thu Jun 30, 2016 5:51 am
Forum: Q&A Discussion
Topic: Getting handle on a slice created in an ended script?
Replies: 16
Views: 3271

You gave me the idea of doing this:

Code: Select all

container := first child(lookup slice(sl:map layer 2))
And it seems to be working, thanks!
by Foxley
Thu Jun 30, 2016 4:50 am
Forum: Q&A Discussion
Topic: Getting handle on a slice created in an ended script?
Replies: 16
Views: 3271

Getting handle on a slice created in an ended script?

Is it possible to assign a variable in a script to a slice handle on a slice that was created in another script, after that script has already ended? Hopefully that makes sense. Basically, I want to be able to do things with this slice after it's stopped animating and the script that animated it has...
by Foxley
Wed Jun 29, 2016 11:50 pm
Forum: Q&A Discussion
Topic: Script to have heroes use a ropeway lift
Replies: 19
Views: 3470

That's a pretty complicated cutscene script! Yeah, a bit. The results look almost exactly how I envisioned it should look, though, so I think it's worth it. The script got a lot bigger after implementing some NPC script arguments to make it work seamlessly to transport heroes from right to left or ...
by Foxley
Wed Jun 29, 2016 6:09 am
Forum: Q&A Discussion
Topic: Script to have heroes use a ropeway lift
Replies: 19
Views: 3470

This script is now totally done in respects of both functionality and aesthetics. Huge thanks to anyone and everyone who helped. Here's the script in case anyone is curious. global variable (1, lift slice) plotscript, use lift, arg, begin variable (i, partysize) i &am...
by Foxley
Wed Jun 29, 2016 4:30 am
Forum: Q&A Discussion
Topic: Script to have heroes use a ropeway lift
Replies: 19
Views: 3470

I discovered a workaround. Instead of attaching the slice to the activation NPC, I attached it to an NPC that does absolutely nothing that's at a Y coordinate one tile down from the activation NPC. Now it forces the slice to be drawn on top. I probably should have considered this much sooner...
by Foxley
Wed Jun 29, 2016 3:39 am
Forum: Q&A Discussion
Topic: Script to have heroes use a ropeway lift
Replies: 19
Views: 3470

So here's what's happening, basically: Leader moves into the lift (it's like one of those gondola lift things, so it has an interior, and should be drawn on top with a window in front so the heroes are visible) and is drawn on top Ally moves into the lift and is drawn on top Wait for heroes to finis...
by Foxley
Sun Jun 26, 2016 4:29 pm
Forum: Q&A Discussion
Topic: Script to have heroes use a ropeway lift
Replies: 19
Views: 3470

Only thing that's off at this point is that the lift slice is being drawn below the heroes, when it should be above it. I'm not really sure what to do about that, unless there's a way to intentionally put a slice above other slices on the sprite container.