Ask a simple question, get a simple answer
Re: Ask a simple question, get a simple answer
Thanks minmay. After taking a quick look at a few, it appears they are all spawnburst type particles (or maybe some very short durations). It doesn't look like anything was intended to work indefinitely and as a result camera movements weren't an issue (but please point out if I missed something here). There isn't a way to change the offset of the particle system to move with a free-look camera, is there?
Re: Ask a simple question, get a simple answer
Screen effects already move with the camera. Free-looking transforms the entire party object and therefore all of its components. Perhaps you wanted to emit particles to object space but forgot to add objectSpace = true to the emitter definition?
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Re: Ask a simple question, get a simple answer
I guess I should clarify that the issue is really just when I move the camera up or down (it sort of pushes forward into the floor if I look down and pulls back when I look up). It pans fine and does move correctly with the party. The built in screenEffects appear to work regardless of the camera rotation axis. The only differences I can see to the way it's done in the base definitions are:
1. They use boxMin and boxMax to position the particle where as I use an offset in the actual particle defintion.
2. I am simply enabling the particle component attached to the party, rather than calling PartyComponent:playScreenEffect().
I tested number 1 and it didn't seem to make a difference. Do I have to use playScreenEffect or am I just missing something obvious?
1. They use boxMin and boxMax to position the particle where as I use an offset in the actual particle defintion.
2. I am simply enabling the particle component attached to the party, rather than calling PartyComponent:playScreenEffect().
I tested number 1 and it didn't seem to make a difference. Do I have to use playScreenEffect or am I just missing something obvious?
Re: Ask a simple question, get a simple answer
How to give the party xp?
Last edited by The cube on Wed Apr 15, 2015 4:24 pm, edited 1 time in total.
- AndakRainor
- Posts: 674
- Joined: Thu Nov 20, 2014 5:18 pm
Re: Ask a simple question, get a simple answer
http://www.grimrock.net/modding/scripti ... /#ChampionThe cube wrote:How to gift the party xp?
Champion:gainExp(xp)
Re: Ask a simple question, get a simple answer
Ohh i was looking at the party part of scripting reference >_>AndakRainor wrote:http://www.grimrock.net/modding/scripti ... /#ChampionThe cube wrote:How to gift the party xp?
Champion:gainExp(xp)
This time i checked the reference, How to remove items from an alcove? There is no alcove component at all.
Re: Ask a simple question, get a simple answer
Alcoves use SurfaceComponent.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Re: Ask a simple question, get a simple answer
I am trying to port over a script from my LoG1 mod, but the following line doen't seem to work anymore:
...probably because the "sender.id" concept doesn't exist anymore. I presume I have to exchange it somehow with "go." but all my try outs fail.
someone an idea?
Code: Select all
if sender.id == "wall_button_2" then
someone an idea?
Re: Ask a simple question, get a simple answer
Using sender.go.id should work. What else are you doing in this function?THOM wrote:I am trying to port over a script from my LoG1 mod, but the following line doen't seem to work anymore:
...probably because the "sender.id" concept doesn't exist anymore. I presume I have to exchange it somehow with "go." but all my try outs fail.Code: Select all
if sender.id == "wall_button_2" then
someone an idea?
* Attach three buttons to this script (with their default names), and all should hudPrint their id, but wall_button_2 should also play the sound for a secret.
Code: Select all
function buttons(sender)
hudPrint(tostring(sender.go.id))
if sender.go.id == "wall_button_2" then
playSound("secret")
end
end
Re: Ask a simple question, get a simple answer
It's an adaption from this script:Isaac wrote: What else are you doing in this function?
http://54.158.249.29/forum/viewtopic.ph ... 6&start=10
And now it works perfect! Thank You!!