
Ask a simple question, get a simple answer
Re: Ask a simple question, get a simple answer
Haha, no big deal, I realize now that I sounded pretty mean there. That indentation was really bad though 

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
All good big chief, the indents were indeed an Abomination!minmay wrote:Haha, no big deal, I realize now that I sounded pretty mean there. That indentation was really bad though
Id messed around with it when I was first trying to wrap my head around how those shadow functions are set up and Id forgot to correct them
(Can you tell I was initially Confused??


Labyrinth of Lies (viewtopic.php?f=14&t=4400)
Legacy of Lies (viewtopic.php?f=22&t=12983&hilit=+legacy)
Legacy of Lies (viewtopic.php?f=22&t=12983&hilit=+legacy)
Re: Ask a simple question, get a simple answer
Yeah, that one was a quick example and not very readable...I think I'll make a separate thread about this.
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
So far Ive collected up:
--The Explanation - Overwriting standard functions in the global environment (info dump)
--The Map Marker example (that follows the explanation^)
--The custom Award XP example (linked^^)
--The MonsterAttack pierce examples (posted above)
(...you should see mockery I made of the indentations for the other examples!
)
I kinda get it now - but yeah a new Thread for Shadowfunctions would be v useful for folks
I will put together something for the ^^aforementioned monster attack Counter stuff I had in mind soon
Im pretty sure I canwork from the Monster attack Pierce example to do this
--The Explanation - Overwriting standard functions in the global environment (info dump)
--The Map Marker example (that follows the explanation^)
--The custom Award XP example (linked^^)
--The MonsterAttack pierce examples (posted above)
(...you should see mockery I made of the indentations for the other examples!

I kinda get it now - but yeah a new Thread for Shadowfunctions would be v useful for folks
I will put together something for the ^^aforementioned monster attack Counter stuff I had in mind soon
Im pretty sure I canwork from the Monster attack Pierce example to do this

Labyrinth of Lies (viewtopic.php?f=14&t=4400)
Legacy of Lies (viewtopic.php?f=22&t=12983&hilit=+legacy)
Legacy of Lies (viewtopic.php?f=22&t=12983&hilit=+legacy)
Re: Ask a simple question, get a simple answer
How to setup default partry?
- zimberzimber
- Posts: 432
- Joined: Fri Feb 08, 2013 8:06 pm
Re: Ask a simple question, get a simple answer
You'll have to create a function that changes each champions values to those you'd like to have, and launch that function after the party is created in game. (i.e put a floor trigger under the parties starting position that calls that function from a script entity)Smok wrote:How to setup default partry?
Here is a list of champion related functions
Re: Ask a simple question, get a simple answer
But how can i chceck if player choosed to create party or to go default.zimberzimber wrote: You'll have to create a function that changes each champions values to those you'd like to have, and launch that function after the party is created in game. (i.e put a floor trigger under the parties starting position that calls that function from a script entity)
Here is a list of champion related functions
I have nother question. Can i exclude races/classes/skills/spells/recipes etc. i don't want from my addon? Lets say I want to change setting a little.
- zimberzimber
- Posts: 432
- Joined: Fri Feb 08, 2013 8:06 pm
Re: Ask a simple question, get a simple answer
Your only option is to compare all values (names, starting traits, skills, race, etc...) for every champion with those the default party has.But how can i chceck if player choosed to create party or to go default.
If you want to modify an already present trait/class/anything else thats already defined, you can just define it again with the new values you want.I have nother question. Can i exclude races/classes/skills/spells/recipes etc. i don't want from my addon? Lets say I want to change setting a little.
Want the Berserk to grant +10 strength per level? Copy its definition (found in the vanilla asset pack), and change values at will. Make sure the name (Not the uiName) stays the same.
You you want to remove a definition, you'll have to make some adjustments to whats being initialized. If you take a look at your init.lua, you'll notice the first (probably) line is 'import "assets/scripts/standard_assets.lua". That is a script file that initializes all the base game definitions.
You can't modify it, but you can remove the "assets/scripts/standard_assets.lua" line in your init.lua, and copy everything you need from standard_assets.lua, into your init.lua (or another file that gets initialized before any other file) (standard_assets.lua can be found in the vanilla asset pack as well)
- zimberzimber
- Posts: 432
- Joined: Fri Feb 08, 2013 8:06 pm
Re: Ask a simple question, get a simple answer
How do I use 'Console.suppressWarnings'?
Tried multiple ways, all ended up with an error.
Tried multiple ways, all ended up with an error.
- Zo Kath Ra
- Posts: 940
- Joined: Sat Apr 21, 2012 9:57 am
- Location: Germany
Re: Ask a simple question, get a simple answer
The correct function name is:zimberzimber wrote:How do I use 'Console.suppressWarnings'?
Tried multiple ways, all ended up with an error.
Console.setSuppressWarnings
Found with
Code: Select all
for key,value in pairs(Console) do print(key,value) end
Console.setSuppressWarnings(false) <-- warnings on