Andor's Trail Content Studio [ATCS] - Win/Mac/Linux Content Editor

Discussions of the development process of the game.
Post Reply
Lead Developer
Posts: 1455
Joined: Thu Jul 21, 2011 9:56 am
android_version: 7.1

Re: Andor's Trail Content Studio [ATCS] - Win/Mac/Linux Content Editor

Post by Zukero » Tue Sep 05, 2017 7:09 am

The hardest part in this is the "until the player rests" trigger. Sleeping can't trigger a script, and you have no way to know whether a player has slept since a given point in time.
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

Posts: 128
Joined: Mon Oct 27, 2014 12:14 pm
android_version: 4.4

Re: Andor's Trail Content Studio [ATCS] - Win/Mac/Linux Content Editor

Post by Nut » Tue Sep 05, 2017 1:56 pm

"until the player rests" trigger.
If you find a solution please post the technic. I would like to use it too...
Nut: Lvl 61, HP 103, AC 273%, AD 32-41, CHS 67, BC 159% WA 3, Do 5, BS MC 1, CS 2, IF 1, Reg 1, WP 1, S 1, AP L 1, RoLS
Anwyn: Lvl 52, HP 126, AC 221%, AD 28-36, CHS 27, BC 119% Do 4, CS 2, IF 3, Ev 2, Reg 1, Ta 1, RoLS

User avatar
Posts: 17
Joined: Wed May 04, 2016 5:14 pm
android_version: 6.0
Location: Nihilion

Re: Andor's Trail Content Studio [ATCS] - Win/Mac/Linux Content Editor

Post by Omicronrg9 » Wed Sep 06, 2017 1:45 am

Without the trigger, the only thing I've thought about is to put a script in the same tile where the "rest" mapevent is placed,but I think probably It will cause the player to don't sleep or to don't read the script...However you could put the script area around the bed and at least It will be seem that the player has slept.
Yes,this is not a great way to do that,but the best one would be to create (code) that trigger...And sadly I don't know how to code (yet...I haven't time for learning java :c)
Or maybe,make (code too) a dialogue reward with "rest" mapevent features (or just full health to looks like you've slept).
For the meantime I will use the script around as It's simple and and quick...

Now my crazy side will write instead of me:

Using keys,actor conditions and scripts,I believe It's possible to create a "Rest area".

Imagine a place(room) in AT where you rest.For example,the foaming flask tavern or Prim's Inn.
1.Put the script over a tile or tiles you are sure player will step on.
2.Put in the dialogue some words or whatever you want to say (or nothing if It's possible),plus these dialogue rewards:
2.1: First reward will deactivate the rest mapevent.In that way you won't be able to sleep.Yes,that seems absurd as you want to make the player sleep...But wait a moment please!!
2.2: Second and third rewards will activate two (or more if you need) mapevents. One (or more,depending on the location of the script) will be a key mapevent,which will make you to be stuck in that rest area until you achieve "x" condition,like in Mikhail's house (You have to talk to Mikhail in order to go out).That condition will be to "rest",or what is the same, stepping on the bed.
That's where third reward comes in! It will consist on a script located in the same place where the old rest map event were placed, that will show the character sleepy thoughts (yourself).In that dialogue you could just add the necessary reward to unlock the key area and the questProgress,gold...whatever.You could also give a chance to player whether sleep or not (and if not,He/She will still be stuck in that place,or...whatever as I said).
Even more,you could add a "Resting" actor condition that will recover all your HP in just one (or more) turn to make that "fake rest" more... real,and change the mapFilter too...Possibilities are wide I think.
Don't forget to create the last script area (Alternatively you can do that in the bed script) that will return things to normality!
Don't forget also to deactivate each script (with rewards) when conversation ends,to don't repeat again the process.
I expect to don't forget anything!

The activate/deactivateMapObjectGroup activates/deactivates an object layer,or a single object? I'm so confused with that.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest