Freshness

Discussions of the development process of the game.
User avatar
twirlimp
Posts: 204
Joined: Wed Dec 30, 2015 8:00 am
android_version: 4.3

Re: Freshness

Postby twirlimp » Thu Dec 29, 2016 8:52 pm

Voom wrote:lol, hot springs it is! You might need to rework the way NPCs move and and interact with other objects (like go through doors, talk to other NPCs, etc.).


Honestly that would be my pleasure and not a chore at all.

I suspect that performance might be an issue, but I'm willing to do an experiment and risk scrapping it if it lags too much (or I'll keep trying to optimize it).

In case a full NPC schedule is too much, I'll just give them a list of spawns that they can be in, and set them to interact with the spawn environment only when the player is there. That would minimize the performance to the lowest degree possible, and might even be better than a full schedule if there's a reliable time counter that can tell the Player which spawn the NPCs are in at a specific time.

Voom wrote:Maybe another layer on Tiled when creating a map and pathway for NPCs.


I personally don't see why they can't just use the existing layers, but I haven't looked into the map-walking code intensively (only briefly during monster AI changes).
ideas plox

User avatar
Zukero
Lead Developer
Posts: 1263
Joined: Thu Jul 21, 2011 9:56 am
android_version: 6.0

Re: Freshness

Postby Zukero » Thu Dec 29, 2016 9:48 pm

The pathfinding of the swarmers could be reused to send a NPC to a designated tile, and have a script event trigger the movement, and ideally, another script triggered upon reaching the destination.
Lvl: 78, XP: 8622632, Gold: 271542, RoLS: 1, ElyR: -, RoL: -, ChaR: 1, GoLF: 1, ShaF: 1, SRoV: 1, VSH: 1, WMC: 1, GoW: 1
HP: 71, AC: 301%, AD: 38-47, AP: 3, ECC: 50%, CM: 3.75, BC: 101%, DR: 2

User avatar
twirlimp
Posts: 204
Joined: Wed Dec 30, 2015 8:00 am
android_version: 4.3

Re: Freshness

Postby twirlimp » Thu Dec 29, 2016 9:51 pm

Zukero wrote:The pathfinding of the swarmers could be reused to send a NPC to a designated tile, and have a script event trigger the movement, and ideally, another script triggered upon reaching the destination.


The swarmer pathfinding is something I'm extremely familiar with (too familiar tbh) but wouldn't this cause a large performance hit game-wide if all NPCs were to have schedules?
ideas plox

User avatar
Voom
Posts: 372
Joined: Sat Dec 19, 2015 5:24 pm
android_version: 4.4
Location: Fort Lauderdale, FL

Re: Freshness

Postby Voom » Fri Dec 30, 2016 4:05 am

Ooh, this is getting interesting. Could there be a script that would activate an NPC's movement only once the char is in the same map tile as the NPC? Localized something or other...
Voomster Lvl 23 |HP 52 |AC 173% |AD 17-52 |ECC 20% |CM 3.0 |BC 61% |DR 2 Build 2/5321/0

Voomboy Retired at 41 and is reading The Fey of Feygard
Voom Retired at 46 and took up translating

User avatar
twirlimp
Posts: 204
Joined: Wed Dec 30, 2015 8:00 am
android_version: 4.3

Re: Freshness

Postby twirlimp » Fri Dec 30, 2016 6:16 am

Voom wrote:Ooh, this is getting interesting. Could there be a script that would activate an NPC's movement only once the char is in the same map tile as the NPC? Localized something or other...


This should be doable one way or another yes.
ideas plox

User avatar
Zukero
Lead Developer
Posts: 1263
Joined: Thu Jul 21, 2011 9:56 am
android_version: 6.0

Re: Freshness

Postby Zukero » Fri Dec 30, 2016 10:51 am

Yeah, there are plenty of triggers (like, at least 5) we can use.
Lvl: 78, XP: 8622632, Gold: 271542, RoLS: 1, ElyR: -, RoL: -, ChaR: 1, GoLF: 1, ShaF: 1, SRoV: 1, VSH: 1, WMC: 1, GoW: 1
HP: 71, AC: 301%, AD: 38-47, AP: 3, ECC: 50%, CM: 3.75, BC: 101%, DR: 2


Return to “Ideas in Motion”

Who is online

Users browsing this forum: No registered users and 1 guest