Recruit
icon_state ="recruit"
Click()
if(usr.purchasing ==1) return
if(usr.points >=100)
usr.points -=100
usr<<"Recruit unit has been purchased. Click anywhere on the screen to create the unit."
usr.purchasing =1
usr.client.mouse_pointer_icon =//???
It works if I just use something like 'Recruit.dmi', but I don't want to have to make a seperate DMI file for every single unit in the game. Any ideas?
Ideally you could also cache these so that you don't have to generate a new icon file every time, but the effort required to do that outweighs the minor (and almost certainly unnoticeable) benefit.