Editor Tutorials on YouTube - part 15 is out
Re: Editor Tutorials on YouTube - part 12 is out
Regarding automap tiles in part 11, you could try using Map:setAutomapTile() to dynamically update the automap tile when the wall is destroyed.
Re: Editor Tutorials on YouTube - part 12 is out
There's two things that you didin't talk about in the alcove puzzles video, that are essential for alcove puzzles:
1. How to spawn items to the alcove / remove items from the alcove
2. How to correctly count the amount of, for example, rocks in the alcove, when some of them could be in a stack
I'm trying to do an alcove puzzle now, and would like to know how to do these two. Thanks!
Oh, and the new videos are awesome.
1. How to spawn items to the alcove / remove items from the alcove
2. How to correctly count the amount of, for example, rocks in the alcove, when some of them could be in a stack
I'm trying to do an alcove puzzle now, and would like to know how to do these two. Thanks!
Oh, and the new videos are awesome.
- Dhomochevsky
- Posts: 88
- Joined: Sat Feb 16, 2013 11:18 pm
- Location: Spain
Re: Editor Tutorials on YouTube - part 12 is out
Sorry for my english. I subscribed on your channel few days ago, absolutely amazing tutorials. For me this videos are really useful because i'm not the best doing mods and scripts
You do that videos easy and clear and probably i'm going to use some of your hints to make things on my future mods.
My idea was congratulate you for your job some days ago but i can't do until today because i'm too busy with different things. Thanks for all job you do
You do that videos easy and clear and probably i'm going to use some of your hints to make things on my future mods.
My idea was congratulate you for your job some days ago but i can't do until today because i'm too busy with different things. Thanks for all job you do
My LOG mods:
The Voice
Remember of Treihadwyl (Bloodwych 8 bits Remake)
My LOG 2 mods:
One room on RRR3 project
The Voice
Remember of Treihadwyl (Bloodwych 8 bits Remake)
My LOG 2 mods:
One room on RRR3 project
Re: Editor Tutorials on YouTube - part 12 is out
Interesting. But is is posible to add a new item using the original model and sprite?
Re: Editor Tutorials on YouTube - part 12 is out
Okay. Quick researching actually helped me to get a grasp on how it's done. But still lot's of guessing, heh (:
- Skuggasveinn
- Posts: 562
- Joined: Wed Sep 26, 2012 5:28 pm
Re: Editor Tutorials on YouTube - part 12 is out
you can do this
That will use the long_sword as a base, but when you define a class (in this case class="Item") you overwrite the whole class, so in the code above the item class is missing the weight, they gfxAtlas index and everything else in the Item Class, but it has the other classes intact.
So the guessing part is limited to the class your are overwriting.
Skuggasveinn.
Code: Select all
defineObject{
name = "longersword",
baseObject = "long_sword",
components = {
{
class ="Item",
uiName = "Longersword",
description = "exactly like a longsword but just a tiny bit longer."
},
}
}
So the guessing part is limited to the class your are overwriting.
Skuggasveinn.
-
- Posts: 168
- Joined: Thu Oct 30, 2014 1:56 am
Re: Editor Tutorials on YouTube - part 12 is out
Code: Select all
for v,i in alcove:contents() do
- cromcrom
- Posts: 549
- Joined: Tue Sep 11, 2012 7:16 am
- Location: Chateauroux in a socialist s#!$*&% formerly known as "France"
Re: Editor Tutorials on YouTube - part 12 is out
Thankyou so much for the tuts. May I suggest some GraphicsContext tutorial ? That could be tremendously helpfull.
A trip of a thousand leagues starts with a step.
- Skuggasveinn
- Posts: 562
- Joined: Wed Sep 26, 2012 5:28 pm
Re: Editor Tutorials on YouTube - part 12 is out
in my head it just means for variable(v) counter(i) in alcove.GoldenShadowGS wrote:What is the purpose of the "v" ?Code: Select all
for v,i in alcove:contents() do
A more correct syntax would have been for _,i in alcove,
Taken from the Lua scripting guide
By all standards I'm still a complete freshman in Lua, never used it before modding LoG1, so I'm still learning myself, and do mistakes oftenLUA scripting guide wrote: The variable consisting of only an underscore "_" is commonly used as a placeholder when you want to ignore the variable
Skuggasveinn.
-
- Posts: 168
- Joined: Thu Oct 30, 2014 1:56 am
Re: Editor Tutorials on YouTube - part 12 is out
I am learning as well. I think I figured out how to do a for loop
i is the variable
first 1 is the starting value of i
4 is the max value of i
the second 1 is the increment value.
so this for loop, it will print
1
2
3
4
If I change the increment value to 2. then my print will only show
1
3
I completely understand this so far.
So then I am looking at some Grimrock scripts examples and a lot of time, the increment value is left off. I assume the increment value defaults to 1 when it is missing.
Then I see your for loop with v,i and I am completely lost. it has no numbers or anything.
Code: Select all
for i = 1,4,1 do
print(i)
end
first 1 is the starting value of i
4 is the max value of i
the second 1 is the increment value.
so this for loop, it will print
1
2
3
4
If I change the increment value to 2. then my print will only show
1
3
I completely understand this so far.
So then I am looking at some Grimrock scripts examples and a lot of time, the increment value is left off. I assume the increment value defaults to 1 when it is missing.
Then I see your for loop with v,i and I am completely lost. it has no numbers or anything.