Page 192 of 396
Re: Ask a simple question, get a simple answer
Posted: Sun Feb 05, 2017 6:03 am
by Isaac
Mysterious wrote:Hi all.
I have been searching for a Musical piece or 2 for the Inn I have made in my Mod. Alas to no avail
Most of you have heard a musical score play in most RPG Games when you enter a (Inn). So I was wondering can anyone direct me to a site where the Music File would either be free or low cost?
Thank you.
Try here:
viewtopic.php?t=13955
Re: Ask a simple question, get a simple answer
Posted: Sun Feb 05, 2017 9:38 am
by sleepy
So, I've realized you can use stairs to transit elevation if you make an up and a down sairs so that they are overlapping, and then set a custom target to a square at the end of the cell. Looking at the way stairs are transitioned: it seems kind of like how ladders work.
I'm curious if anyone has tried to marry the stairways with the ladder code in order to remove the screen fade/transition.
Re: Ask a simple question, get a simple answer
Posted: Sun Feb 05, 2017 11:36 am
by zimberzimber
sleepy wrote:I'm curious if anyone has tried to marry the stairways with the ladder code in order to remove the screen fade/transition.
You can get read of it by using
GameMode.fadeOut(color, length) as soon as the fade out begins.
But since the stairs going up/down camera animation doesn't finish on the height of the other elevation, it'll just jump forward and look weird.
Re: Ask a simple question, get a simple answer
Posted: Sun Feb 05, 2017 1:01 pm
by sleepy
zimberzimber wrote:sleepy wrote:I'm curious if anyone has tried to marry the stairways with the ladder code in order to remove the screen fade/transition.
You can get read of it by using
GameMode.fadeOut(color, length) as soon as the fade out begins.
But since the stairs going up/down camera animation doesn't finish on the height of the other elevation, it'll just jump forward and look weird.
That's what I'd thought. Which is why I brought up using the ladder code. Though with the lack of information available; this makes me suspect they are hard coded.
Like, if the ladder had components for defining start(x,y,z,f,e), end(x,y,z,f,e), climbSpeed(), or something, and then it would average translation @climbSpeed from A to B.
I kind of feel like it does something similar for the stairwells as it currently does with ladders. Just the way the party 'grips' to them. I feel like that's the bit not in the API.
Re: Ask a simple question, get a simple answer
Posted: Sun Feb 05, 2017 2:16 pm
by zimberzimber
Here's what can be done:
Define a camera to be used with stairs
Upon activating a scrip, the camera is moved to the parties position and plays a 'going up/down' animation
Play the going up/down sound
When the animation ends, the the parties position to the new location
reset the current camera
Only hard part is animating the camera
Re: Ask a simple question, get a simple answer
Posted: Sun Feb 05, 2017 3:18 pm
by akroma222
sleepy wrote:zimberzimber wrote:sleepy wrote:I'm curious if anyone has tried to marry the stairways with the ladder code in order to remove the screen fade/transition.
You can get read of it by using
GameMode.fadeOut(color, length) as soon as the fade out begins.
But since the stairs going up/down camera animation doesn't finish on the height of the other elevation, it'll just jump forward and look weird.
That's what I'd thought. Which is why I brought up using the ladder code. Though with the lack of information available; this makes me suspect they are hard coded.
Like, if the ladder had components for defining start(x,y,z,f,e), end(x,y,z,f,e), climbSpeed(), or something, and then it would average translation @climbSpeed from A to B.
I kind of feel like it does something similar for the stairwells as it currently does with ladders. Just the way the party 'grips' to them. I feel like that's the bit not in the API.
Hey Sleepy,
have you had a look through this thread?
viewtopic.php?f=22&t=8178&hilit=Stairs+ ... vator+Demo
There is a Stairs & Elevator Demo dungeon ... it may be of some help
( EDIT... however, it doesnt use the overlapping stair + ladder code that you are pursuing )
Akroma
Re: Ask a simple question, get a simple answer
Posted: Sun Feb 05, 2017 3:29 pm
by akroma222
Isaac wrote:akroma222 wrote:Question - can we recreate Attack Swipes ??
I know all the Attack Swipe models are in the asset pack, using "swipe01" material.
...and also that we can set new materials/textures etc etc
Just wondering if we can actually override / replicate / mimic the Attack Swipes ??
Ta!
I did for my Tiger Strength potion; but was a bit of a kludge, and is more of an additive effect.
https://www.dropbox.com/s/tq3vk02qubnp0 ... m.avi?dl=0
This was done by adding a disabled model to the party, and toggling it on/off for any melee attacks. Each time they attack... the custom swipe effect is shown, and then disabled.
**It might also be possible to make a particle effect, and just spawn one in front of the party with each attack; I didn't try that though.
IRRC the engine
calls the swipe model files by name, so there didn't seem to be a way to redefine or override that. If it exists as a model component [somewhere], then it might be possible to override that once the name is known ~if such is the case.
Cheers Isaac!
Sorry for the late reply - I actually attempted the method you described (but kind of decided to be complicated again )
Interesting - these swipe models possibly existing somewhere as a Model component...? Surely it would be attached to the Party?
Anyhow - this was the model component I used ...
Code: Select all
{
class = "Model",
name = "swipe_horizontal",
model = "mod_assets/models/swipes/swipe_claw_Holy01.fbx",
onInit = function(self)
self:disable()
end,
},
...And I just wanted to check - did you enable & disable this^ component from the onAttack party hook??
p.s. - Tiger Form looks v cool!
Re: Ask a simple question, get a simple answer
Posted: Sun Feb 05, 2017 7:17 pm
by Isaac
Reading back through the script, I enable it in onDrawGui ~inside a condition that checks for the right-mouse-button click, the correct location of the mouse cursor when clicked, and that the champion is ready to attack. I disable it again in the onGetPortrait hook; that runs every frame for the duration of the effect.
**I do not know/remember why I chose onDrawGui instead of onDrawAttackPanel; but I plan to find out [again]. It would seem able to simplify it by removing the screen region check.
The tricky part of the tiger effect, is the management of arbitrary items they may be carrying in the hands; often weapons. They have to be removed, stored, and returned, outside of inventory.
Re: Ask a simple question, get a simple answer
Posted: Sun Feb 05, 2017 7:54 pm
by Zo Kath Ra
I'd like to change the direction of a "blob" without destroying it and spawning a new one.
I could use teleporters, but I want to change the direction even if the blob isn't in the center of a square.
Changing the direction to up/down can be done like this:
ProjectileComponent:setVelocity(0)
ProjectileComponent:setFallingVelocity(number)
Re: Ask a simple question, get a simple answer
Posted: Sun Feb 05, 2017 8:03 pm
by zimberzimber
Zo Kath Ra wrote:I'd like to change the direction of a "blob" without destroying it and spawning a new one.
I could use teleporters, but I want to change the direction even if the blob isn't in the center of a square.
Changing the direction to up/down can be done like this:
ProjectileComponent:setVelocity(0)
ProjectileComponent:setFallingVelocity(number)
If you want to turn it left/right mid flight, you can change world position.
I can't really post code right now, but you could find an example for this in my asset packs lich.lua (shameless self advertising
)