Search found 25 matches

by Torquemada
Mon Apr 15, 2019 12:10 am
Forum: Mod Creation
Topic: Adding tag to existing object
Replies: 1
Views: 1579

Adding tag to existing object

Hi I wanted to make the editor a bit easier to use by redefining the object filter, for example make a new filter called "vegetation" so I can easily find all trees, bushes, flowers, etc. To do that I need to add an extra tag to the corresponding object called "vegetation". Is it possible to add a p...
by Torquemada
Wed Jul 25, 2018 4:46 pm
Forum: Mod Creation
Topic: Moving item from one pedestial to the next
Replies: 19
Views: 7783

Re: Moving item from one pedestial to the next

I'm trying to recreate your solution, but it's over my head :) I'm just glad my noob solution works as well. It's basicly same solution for me except I am destroying more than one item (wiping everything I might have put on the altar). I am also using the same function for more than one pedestal by...
by Torquemada
Wed Jul 25, 2018 12:19 am
Forum: Mod Creation
Topic: Moving item from one pedestial to the next
Replies: 19
Views: 7783

Re: Moving item from one pedestial to the next

Thank Zo Kath Ra

Yeah an oversight with onInsert trigger turned out to be the culprit, as seen in my reply above
by Torquemada
Wed Jul 25, 2018 12:11 am
Forum: Mod Creation
Topic: Moving item from one pedestial to the next
Replies: 19
Views: 7783

Re: Moving item from one pedestial to the next

I found out what was wrong, each time I put something on the pedestal the onInsert trigger is fired, each time it checks for the right offering, if offerings are correct, all items are destroyed with delay and the target object spawned on the pedestal. The problem here is the spawned object also tri...
by Torquemada
Tue Jul 24, 2018 11:16 pm
Forum: Mod Creation
Topic: Moving item from one pedestial to the next
Replies: 19
Views: 7783

Re: Moving item from one pedestial to the next

This can be perfectly be solved with my clunky script Take my script, make multiple if e.go.name == things that decrement a counter then when the counter has decremented x times (x for the amount of specific items) that need to be placed. But i'm definitely interested in a more advanced script. I t...
by Torquemada
Tue Jul 24, 2018 10:11 pm
Forum: Mod Creation
Topic: Moving item from one pedestial to the next
Replies: 19
Views: 7783

Re: Moving item from one pedestial to the next

It's a one time only but I need to destroy all the items I placed on the pedestial before the other item is moved to it.
I don't know why I get stack overflow error.
by Torquemada
Tue Jul 24, 2018 8:54 pm
Forum: Mod Creation
Topic: Moving item from one pedestial to the next
Replies: 19
Views: 7783

Moving item from one pedestial to the next

Hi I am currently trying to do the following: - Put items on Pedestial1 - When correct items are placed on Pedestial1 they will be removed and the contents of Pedestial2 will be placed on Pedestial1 This is what I have currently: for i,v in pedestial1.surface:contents() do v.go:destroyDelayed() end ...
by Torquemada
Wed Jul 05, 2017 2:29 am
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3522
Views: 1066562

Re: Ask a simple question, get a simple answer

I planned to use 2 identical subjects (2 skulls). Tried to substitute in your script skull_placed = false skull_placed = false function checkAltar(altar, item) if altar.go == altar_3 and skull.go == skull then skull_placed = true else if altar.go == altar_4 and skull.go == skull then skull_placed =...
by Torquemada
Wed Jul 05, 2017 1:58 am
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3522
Views: 1066562

Re: Ask a simple question, get a simple answer

It only needs updated to use your specific object ids. I'd say re-copy/paste the original script, then alter only those to match the ones you will use. Example (excerpts): if altar.go == altar_3 and item.go == skull_1 then if altar.go == altar_4 and item.go == skull_2 then if item1_placed == true a...
by Torquemada
Tue Jul 04, 2017 7:53 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3522
Views: 1066562

Re: Ask a simple question, get a simple answer

Good afternoon! Please tell me how to write a script for the following conditions: There are 2 altars - altar-1 and altar-2 There are 2 items - item-1 and item-2 There is a secret door It is necessary that the door is opened when both objects lie on the altars Thank you Assuming that item_1 must be...