Search found 433 matches

by zimberzimber
Thu Jun 09, 2016 10:43 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3753
Views: 1480227

Re: Ask a simple question, get a simple answer

Isn't that part of what isBlocked() does? No, you have at least to test if the party is not in front of a tile with a lower elevation, in that case the ice shards spell does nothing. Right, it fizzles and does nothing. The iceShard component is still responsible for not not doing anything in case t...
by zimberzimber
Thu Jun 09, 2016 10:09 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3753
Views: 1480227

Re: Ask a simple question, get a simple answer

Hey guys, making spells is way more complex than that ;) You also have to test elevation when spawning ground spells! Isn't that part of what isBlocked() does? And if you want your fire wall to spawn on more than one tile, you will have to test every tiles Or you can just give it an iceShards compo...
by zimberzimber
Thu Jun 09, 2016 7:20 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3753
Views: 1480227

Re: Ask a simple question, get a simple answer

... But like minmay said, it doesn't seem to matter that any specific party member did the damage. It may as well have been :setCastByParty(true) :( Yes, if you don't plan on doing anything related to damage dealt by a champion or DPS checking. For example, if a monster is immune to damage unless d...
by zimberzimber
Thu Jun 09, 2016 11:57 am
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3753
Views: 1480227

Re: Ask a simple question, get a simple answer

I just tested it with Zero XP characters, and found that after killing a monster with it, the whole party got the same experience bonus; actually PC 1 & 4 (humans) got 220xp, and PC 2&3 got 200xp. Only the mage ever damaged the monster [via the spell]... so I'm starting to wonder what setCastByCham...
by zimberzimber
Wed Jun 08, 2016 11:29 pm
Forum: Mod Creation
Topic: Playing different animations
Replies: 1
Views: 1666

Re: Playing different animations

You could add delayed calls to force the turn action to an external script entity, and have the snake call it once the attack starts, and have the last delayed call force the snake to attack. But the animation cycle here won't be as smooth, or may get cut in the middle, because the snake will not pe...
by zimberzimber
Wed Jun 08, 2016 9:39 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3753
Views: 1480227

Re: Ask a simple question, get a simple answer

You can tag the tile damager as coming from a specific PC like this: onCast = function(champ, x, y, direction, skill) local dx,dy = getForward(party.facing) spawn("wall_fire", party.level, party.x+dx, party.y+dy, direction, party.elevation).tiledamager:setCastByChampion(champ:getOrdinal()) end, Oh ...
by zimberzimber
Wed Jun 08, 2016 9:16 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3753
Views: 1480227

Re: Ask a simple question, get a simple answer

I don't think this is needed, just omitting the object name will have the game generate a safe one. huh, good to know. So far any spell definition I've seen involved an object name at the end and I was sure its a must have. (hence the 'for' and the checking) Sadly spells (and brains) don't have the...
by zimberzimber
Wed Jun 08, 2016 8:39 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3753
Views: 1480227

Re: Ask a simple question, get a simple answer

I hate to toot my own horn, but the MinAssets spells do everything you are asking about. Here is an example of how to implement a burst spell similar to Fireburst/Shockburst, which seems to be what you want: Looks good, will try it out once I have the chance to. So correct me if I'm wrong, but all ...
by zimberzimber
Wed Jun 08, 2016 7:05 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3753
Views: 1480227

Re: Ask a simple question, get a simple answer

Problem with those is that they don't check for wall objects such as secret doors, which could lead to some nasty exploits.

Any idea on the spells crediting the player? I assume this has to do with damage flags, but I'm having issues understanding on how to implement them in custom spells.
by zimberzimber
Wed Jun 08, 2016 3:57 am
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3753
Views: 1480227

Re: Ask a simple question, get a simple answer

After defining a few new spells I've noticed that the party isn't credited for the kill, as if the monster was killed by 'natural' means. How do I make custom spells credit the kill to the party? Another issue I have with spells is that when I tell them to spawn an entity, they do even if its inside...