Difference between revisions of "Scripting Tutorial: Spell Tome"

Jump to navigation Jump to search
no edit summary
imported>Vladimort
imported>Vladimort
Line 125: Line 125:
begin onActivate
begin onActivate
   Activate
   Activate
   if doonce == 0 ;has the player already learnt the spell?
  begin onActivate
      ;ask the player if they would like the spell
   if doonce == 0
       MessageBox "Would you like to learn the Spell of Frost Damage?", "Yes please", "No way, maybe later"
       MessageBox "Would you like to learn the Spell of Frost Damage?", "Yes please", "No way, maybe later"
       set doonce to 1 ;Don't ask them again
       set doonce to 1
       set buttonpressed to 1 ;tell the script to check what the player answered
       set buttonpressed to 1
   else
   else
      ;Tell the player that they have got the spell already.
       Message "You have already learned what you can from this Tome"
       Message "You have already learned what you can from this Tome"
   endif
   endif
Anonymous user

Navigation menu