Jump to content
  • 0
Sign in to follow this  
GrumpyPanda

Guild skill problems.

Question

I was planning on making the guild auras a bit more useful by making the aoe 11x11. I ran into some problems, screenshot would make it easier to explain but I'll try without for now.

 

When you run into a portal / relog in a corner the guild aura is not initialized on unwalkable cells. Like clowns songs vs landprotector when cast in corner.

So when entering a portal inside a castle it will not be initialized for the whole 11x11 area. How do I change that to function similiar to clown songs and get initialized for the whole area even if there is something blocking the way?

 

I was expecting skill_unit_db to be the answer but the following doesnt seem to work. Its set to 0x040.

 

0x010(UF_PATHCHECK)    Only cells with a shootable path will be placed 

It's not placing the effect on unshootable cells even though this is not set so I guess I'll have to change something in source.

Edited by GrumpyPanda

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

I got it figured out myself, thought I'd answer myself too in case someone else want to fix this since it happens with a normal sized guild aura as well.

Skill initialisation is done in skill.c. Only this small change was needed.

 

if( !group->state.song_dance && !group->state.guildaura && !map->getcell(src->m,ux,uy,CELL_CHKREACH) )       continue; // don't place skill units on walls (except for songs/dances/encores/guildauras)

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.