Author Topic: REQUEST: ADD_SPELL workaround for not enough SPIN slots  (Read 3074 times)

Offline K4thos

  • Planewalker
  • *****
  • Posts: 110
REQUEST: ADD_SPELL workaround for not enough SPIN slots
« on: September 25, 2015, 06:19:53 PM »
When it comes to SPIN spells, level doesn't really matter. Currently if we use ADD_SPELL and there are not enough free slots for a particular level weidu won't add the spell at all. It would be great if weidu could automatically increase level if such situation occurs. Example implementation:

1. Add new option to ADD_SPELL so that weidu knows that it's ok to increase the current level by 1 (or better yet start from the level 0 just in case there are not enough slots for level 9)
2. Or simply do it automatically if type = 3 (SPIN spells) is chosen.

It's better to assign different name when it comes to these type of spells rather than not install them at all. And 990 slots is better than 99 ;)
« Last Edit: September 25, 2015, 07:41:41 PM by K4thos »

Offline Mike1072

  • Planewalker
  • *****
  • Posts: 298
  • Gender: Male
Re: REQUEST: ADD_SPELL workaround for not enough SPIN slots
« Reply #1 on: September 25, 2015, 07:11:45 PM »
I think option 2 is a good idea.  The level parameter can probably be ignored for both SPIN and SPCL spells.

I'll try to code it up.

Offline K4thos

  • Planewalker
  • *****
  • Posts: 110
Re: REQUEST: ADD_SPELL workaround for not enough SPIN slots
« Reply #2 on: September 25, 2015, 08:59:28 PM »
awesome. Indeed SPCL could use this feature too. 1 more suggestion for ADD_SPELL: "Couldn't add idsName to spell.ids as no slots remain" should be treated as a FAIL or at least WARN message. Currently if ADD_SPELL fails to add new spell due to not enough free slots it prints it without warning, so we don't know that something went wrong during installation.

edit: And another one: ADD_SPELL accepts variables as input but the "Adding spell idsName" message is not evaluated. It's not really important as the spell is correctly added but maybe worth fixing.
« Last Edit: September 25, 2015, 09:09:43 PM by K4thos »

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: