Search found 137 matches

by ratman
Tue Nov 24, 2020 11:53 pm
Forum: Mod Creation
Topic: [REFERENCE] Here's a list of all pre-defined sounds in LoG 2
Replies: 19
Views: 17449

Re: [REFERENCE] Here's a list of all pre-defined sounds in LoG 2

Is there a sound that would go good with an earthquake?

Also this is there something wrong with this script? it gives error 'stack overflow'

Code: Select all

function playSound()
playSound("blob_launch")
end
edit: never mind, for some reason it didn't like the capital in the function name.
by ratman
Thu Nov 19, 2020 12:15 am
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3737
Views: 1349954

Re: Ask a simple question, get a simple answer

How would I make the guiItems appear at different 'layers'? right now the skillsTab appears in front of everything else so they cant see the buttons or anything.
by ratman
Wed Nov 18, 2020 1:01 am
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3737
Views: 1349954

Re: Ask a simple question, get a simple answer

Thanks.
In this line how would I move the SkillsTab up? I've figured out that w - (635 * f2) is to move it sideways, but there is no y position or anything.

Code: Select all

context.drawGuiItem("SkillsTab", w - (635 * f2), 287 * f2, 0, 0, 510, 292, 510*f2, 292*f2)
by ratman
Tue Nov 17, 2020 3:28 am
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3737
Views: 1349954

Re: Ask a simple question, get a simple answer

Thanks, it works now. edit: no it does not: party definition: defineObject{ name = "party", baseObject = "party", components = { { class = "Timer", name = "timeSlowTimer", timerInterval = 30, disableSelf = true, enabled = false, onActivate = function(self) zim_functions.script:timeNormal() end, }, {...
by ratman
Tue Nov 17, 2020 2:52 am
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3737
Views: 1349954

Re: Ask a simple question, get a simple answer

now it gives error : 'bad argument #1 to 'drawGuiItem' (string expected, got nil) on the same line.
by ratman
Tue Nov 17, 2020 12:10 am
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3737
Views: 1349954

Re: Ask a simple question, get a simple answer

I try to use yours with one line modified, but it gives me error "attempt to index global 'GraphicsContext' (a nil value) Line that gives error: GraphicsContext.drawGuiItem(SkillsTab, w - (548 * f2), 287 * f2, 0, 0, 510, 292, 510*f2, 292*f2) full party definition: defineObject{ name = "party", baseO...
by ratman
Mon Nov 16, 2020 3:20 am
Forum: Support and Tech Discussion
Topic: scripting help
Replies: 16
Views: 14627

Re: scripting help

Thanks. How would I make it so it destroys the items even if they are not the right ones?
by ratman
Mon Nov 16, 2020 3:01 am
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3737
Views: 1349954

Re: Ask a simple question, get a simple answer

How would I modify your OnDrawSkills so that it doesn't have all the new graphics and just the old skill system except it calls addSkillTemp, removeSkillTemp and clearSkillTemp? You might be able to get away with only covering the buttons instead Line 1854 is what covers the skills area so you can'...
by ratman
Mon Nov 16, 2020 12:24 am
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3737
Views: 1349954

Re: Ask a simple question, get a simple answer

How would I modify your OnDrawSkills so that it doesn't have all the new graphics and just the old skill system except it calls addSkillTemp, removeSkillTemp and clearSkillTemp?
by ratman
Sun Nov 15, 2020 7:50 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3737
Views: 1349954

Re: Ask a simple question, get a simple answer

Thanks, I guess I'll just make it so it gives a trait every time. *what about how to make it so the skills cost more points the higher the level? In the functions.lua of my mod, look for addSkillTemp, removeSkillTemp and clearSkillTemp. The line champion:setSkillPoints(champion:getSkillPoints() - 1...