Search found 68 matches

by KhrougH
Wed Oct 24, 2018 2:33 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3901
Views: 3032142

Re: Ask a simple question, get a simple answer

can i use "baseObjet" to identify an object or an item?

example:
for var in party.map:entitiesAt(party.x, party.y) do
if string.match(var.baseObject, "decoration") then

this return nil, so it doesn't work. but maybe there is another way.
by KhrougH
Wed Oct 24, 2018 3:21 am
Forum: Custom Dungeons
Topic: Circle of Hate
Replies: 1
Views: 5174

Circle of Hate

oook, here we go, i'm working on this mod... i like puzzles much more than monsters and i'm trying to do my best for balancing. several ideas... of corse nothing really original, but i wish i can do something enjoyable :) Circle of Hate is the name of my Mod. is a title of a song of an old school ba...
by KhrougH
Tue Oct 23, 2018 6:27 pm
Forum: Info
Topic: greetings
Replies: 6
Views: 18419

Re: greetings

oh, i see...
i will :D
by KhrougH
Tue Oct 23, 2018 6:13 pm
Forum: Mod Creation
Topic: clicking on a wall
Replies: 24
Views: 32026

Re: clicking on a wall

no worries, guys, i solved this problem by myself, thanks to Isaac help here is the defineObjet about a general object you have to use. let's stay on the example. so a brush to paint a wall: defineObject{ name = "brush", baseObject = "base_item", components = { { class = "Mo...
by KhrougH
Tue Oct 23, 2018 8:18 am
Forum: Mod Creation
Topic: Catchable tiny_rats
Replies: 19
Views: 26637

Re: Catchable tiny_rats

i'm using this script but i noticed that if i spawn these tiny rats on elevation 0 they recognize walls , but if i spawn them at an higher elevation than they falls to the ground but they walk through walls. i wonder why.
by KhrougH
Mon Oct 22, 2018 7:30 pm
Forum: Mod Creation
Topic: clicking on a wall
Replies: 24
Views: 32026

clicking on a wall

i would like that something happens when you click on a wall... every wall!!! an example could be: imagine having a brush, the brush is onMouse, than you click on the wall so you can paint it... so when you click on the wall a script starts for changing the wall (for example) or maybe it could be st...
by KhrougH
Thu Oct 18, 2018 1:21 am
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3901
Views: 3032142

Re: Ask a simple question, get a simple answer

here i go with another annoying question: there's any chance i can activate a lock with 2 different keys? my intention is having a specific key for the lock but having the chance to unlock it also with a "lock_pick". which is a realistic way to open a door if you don't have the key. i trie...
by KhrougH
Wed Oct 17, 2018 8:20 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3901
Views: 3032142

Re: Ask a simple question, get a simple answer

The lock object —if that's what is calling your function— is the first argument that the function gets when it's called; you can inspect it. The argument is hidden, and automatic from connected objects. In user scripts, it depends on the calling syntax . Example: --Must use the Game Object: .go fun...
by KhrougH
Wed Oct 17, 2018 1:21 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3901
Views: 3032142

Re: Ask a simple question, get a simple answer

There is a built in iterator for this. ;) for level = 1, Dungeon:getMaxLevels() do for obj in Dungeon.getMap(level):allEntities() do if obj.lock or obj.door then print('Name:',obj.name, "ID:" obj.id, "Level:",obj.level) end end end ok, but because i don't need it in every map my...
by KhrougH
Wed Oct 17, 2018 12:09 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3901
Views: 3032142

Re: Ask a simple question, get a simple answer

There is a built in iterator for this. ;) for level = 1, Dungeon:getMaxLevels() do for obj in Dungeon.getMap(level):allEntities() do if obj.lock or obj.door then print('Name:',obj.name, "ID:" obj.id, "Level:",obj.level) end end end Excellent, i wil work on this. not sure i can u...

Go to advanced search