Jump to content


Photo

ADD_KNOWN_SPELL/ADD_MEMORIZED_SPELL


2 replies to this topic

#1 Rastor

Rastor

    The last time that I was sober, I was five.

  • Fixpackers
  • 385 posts
  • Gender:Male
  • Location:Baator

Posted 02 April 2017 - 03:35 PM

Can ADD_KNOWN_SPELL/ADD_MEMORIZED_SPELL accept variables? For instance:

 

COPY_EXISTING ~dragred.cre~ ~override~
 ADD_KNOWN_SPELL ~%newspell%~ #1 ~wizard~

 

Where %newspell% is an array variable being fed into this in a loop? Or do I have to code each spell to add into the tp2 individually?

 

Thanks!



#2 Mike1072

Mike1072
  • Gibberling Poobah
  • 2332 posts
  • Gender:Male
  • Location:Canada

Posted 03 April 2017 - 02:50 AM

Yeah, that should work fine.



#3 Rastor

Rastor

    The last time that I was sober, I was five.

  • Fixpackers
  • 385 posts
  • Gender:Male
  • Location:Baator

Posted 03 April 2017 - 02:55 PM

Thanks, I was hoping it would, but wanted to make sure before I went through the effort of coding it up this way.





Reply to this topic



  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users