HELP WITH PIC POINTER PATCH

Posts

Pages: 1
Hello, i have download the pic pointer patch and i've read the readme file. Even though it provides a good explanation at what it does and what you have to do in order to make it work, i still have some issues understanding it. Can anyone tell me how to use it in order to have a health bar without using too many conditional branches?
Very quick explanation for your specific example:

Name your bar images HealthBar0000 to HealthBar0010 if you have 11 different images (0-10). Then do (variable IDs 401-402 are an example):

(Create a value 0-10 for the hero's health in var 0402:HealthValue)
<> Change Variable: 0402:HealthValue = Hero's HP
<> Change Variable: 0402:HealthValue *= 10
<> Change Variable: 0402:HealthValue /= Hero's MaxHP
(Set the picture ID to 20 - as an example.)
<> Change Variable: 0401:HealthPicID = 20
(Show the picture. The patch will see picture ID 50401, subtract 50000 and use variable 0401 as picture ID and the next variable, 0402, as the last 4 characters of the picture name.)
<> Show Picture #50401, HealthBar0000

Let's say the value of variable 0402 was 7, then picture "HealthBar0007" would be loaded to picture ID 20.
That's how that works? I dunno why I thought pic pointer was all about finding the right pos to show an image in a certain spot. I'll have to try it out.
Pages: 1