Dark Age Games
Home Dark Age EX Dark Age 2 Message Board Fan Art FAQ Kelzar Mage DALpedia MS Forum
Board Index Dark Age General Bug Report Website Off Topic Register User Edit User User List Search

rpgcode question...
Posted by: Cesque
11:28:26 06-12-2004

This is piece of program I use for testing talent system for my game. It's supposed to display buttons determining whenever a talent is already learned, it can be learned, or it can't be learned.

Around point I marked here with comment, a debugger comes out, saying #putimage needs to have 5 variables, and quoting "#putimage(" as wrong piece of code.

Other than that, it seems to work properly. You can tell me if you need full talent test program with bitmaps to test this...

#setimage("perk_menu.gif",16,16,75,112)
#setimage(talent1p$,19,19,32,32)
#setimage(talent2p$,19,56,32,32)
#setimage(talent3p$,19,93,32,32)
#savescreen

#method refresht()
{
#restorescreen
#code$="#if("+talent1v$+"=>talent1r!){#setimage("button_talent_bought.gif",56,19,32,32)}"
#rpgcode(code$)
#code$="#if("+talent1v$+"talent1skp!){#setimage("button_talent_possible.gif",56,19,32,32)}
#if(skp!talent2r!){#setimage("button_talent_bought.gif",56,56,32,32)}"
#rpgcode(code$)
#code$="#if("+talent2v$+"talent2skp!){#setimage("button_talent_possible.gif",56,56,32,32)}
#if(skp!talent3r!){#setimage("button_talent_bought.gif",56,93,32,32)}"
#rpgcode(code$)
#code$="#if("+talent3v$+"talent3skp!){#setimage("button_talent_possible.gif",56,93,32,32)}
#if(skp!

"Xorlak is the most powerful, evil, vile and feared dark wizard known to man!"
Edit Post