Search found 433 matches

by zimberzimber
Mon Jul 04, 2016 10:13 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3753
Views: 1480151

Re: Ask a simple question, get a simple answer

RE: Bear Form Potion. Thats because conditions aren't present in the current asset pack sadly. The icon can be changed with a change to the equipped items icon, but I think it would react badly to trying to unequip/equip items. (Unless you can prevent the player from doing that) Speaking of which.....
by zimberzimber
Thu Jun 23, 2016 9:48 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3753
Views: 1480151

Re: Ask a simple question, get a simple answer

Looks useful, except I have absolutely no idea on how to use tables. :oops:
Help please?
by zimberzimber
Thu Jun 23, 2016 4:49 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3753
Views: 1480151

Re: Ask a simple question, get a simple answer

How do I force conditions to remove themselves when the champion dies? onTick() if not champion:isAlive() doesn't work, because it seems like ticks happen only when the hero is alive. could you use PartyComponent.onDie(self, champion) ? Huh, ashamed I didn't think of that... Then is there a way to ...
by zimberzimber
Thu Jun 23, 2016 4:02 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3753
Views: 1480151

Re: Ask a simple question, get a simple answer

A few questions about custom conditions - How do I force one to make a champion unable to act? (paralyzed/petrified) How do I force conditions to remove themselves when the champion dies? onTick() if not champion:isAlive() doesn't work, because it seems like ticks happen only when the hero is alive....
by zimberzimber
Sat Jun 11, 2016 7:42 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3753
Views: 1480151

Re: Ask a simple question, get a simple answer

The spawn() function returns a game object. The setCastByChampion() function always returns nil. Ah, I see. Thanks for clarifying! And thanks to everyone who helped with the positioning, obstacle detection, and spell damage/source! So here's my complete script for summoning tile damagers: function ...
by zimberzimber
Sat Jun 11, 2016 6:35 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3753
Views: 1480151

Re: Ask a simple question, get a simple answer

AndakRainor wrote:Try that instead!

Code: Select all

  local a = spawn(s, party.level, x, y, direction, party.elevation)
  a.tiledamager:setCastByChampion(champ:getOrdinal())
  a.tiledamager:setAttackPower(power)
Huh.. This works... But why didn't the previous one work?
by zimberzimber
Sat Jun 11, 2016 4:40 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3753
Views: 1480151

Re: Ask a simple question, get a simple answer

And so I face another spell related issue. :cry: When I have to change more than one thing related to the tileDamager I have to make any other modification after the first one not part of the ' spawn ' line. I tried doing it separately, but it shows me an error saying ' tried to index local 'a' (a n...
by zimberzimber
Fri Jun 10, 2016 10:58 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3753
Views: 1480151

Re: Ask a simple question, get a simple answer

AndakRainor wrote:To call a function in an if statement is the same thing as anywhere else:

Code: Select all

if myScriptId.script.myTest() then ...
Problem is that I have to do it on an external script, which is not tied into the game with a script entity, which (correct me if I'm wrong) doesn't have an ID like script entities do.
by zimberzimber
Fri Jun 10, 2016 12:02 am
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3753
Views: 1480151

Re: Ask a simple question, get a simple answer

Also another point about spells; you are supposed to make them more powerful by 20% per skill level of the caster. That is what is written on the player screen, and it is the responsibility of a modder to make it a reality. Again, spells are a serious matter! Unless you just want to code only a few...
by zimberzimber
Thu Jun 09, 2016 11:00 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3753
Views: 1480151

Re: Ask a simple question, get a simple answer

AndakRainor wrote:
zimberzimber wrote:
AndakRainor wrote:That's right, except for the first tile obviously, since you must decide to spawn or not to spawn before taking advantage of the IceShards component.
Yea already noticed that with the wall_fire playing its sound even though nothing appeared.