How to color one gump in one script?

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.
Post Reply
Juzeph
New User
Posts: 23
Joined: Sun Apr 15, 2007 5:58 pm

How to color one gump in one script?

Post by Juzeph »

How to color one gump in one script?

For example, a doll of player in one gump (in the help system).

...

this is a possible?
Yukiko
Distro Developer
Posts: 2826
Joined: Thu Feb 02, 2006 1:41 pm

Post by Yukiko »

If you want to change the colour of the GM character in that gump, yes it is possible.

I am going to tell you where it is found in the POL 0.95 Distro. This will also cover the converted one for POL 0.96. I have never looked at the help system for the POL 0.97 Distro. I don't know if it even looks the same as the "standard" one we all know and love.

First, look in \scripts\misc for the file help.src. Open that file and find the section of code at the top that looks like this:

Code: Select all

"resizepic 0 0 2600 600 450",
"resizepic 40 45 2620 175 315",
"page 0",
"gumppic 40 125 12",
"gumppic 40 125 50987",
"text 60 50 95 0",
"text 55 65 995 1",
"text 52 80 995 2",
"text 64 95 995 3",
If you notice the two lines with "gumppic" in them, those are the two images that appear as the robed character in the initial gump screen.

"gumppic 40 125 12" is the character and "gumppic 40 125 50987" is the robe. All you have to do is add hue= and a hue number after the equals sign and you'll change the pic to that colour. For example:

Code: Select all

"resizepic 0 0 2600 600 450",
"resizepic 40 45 2620 175 315",
"page 0",
"gumppic 40 125 12 hue=66",
"gumppic 40 125 50987 hue=35",
"text 60 50 95 0",
"text 55 65 995 1",
"text 52 80 995 2",
"text 64 95 995 3",
will make the character in the robe green and make the robe a light purple colour.

Hope this helps you.
Juzeph
New User
Posts: 23
Joined: Sun Apr 15, 2007 5:58 pm

Post by Juzeph »

It did not know this.

Tanks!!

^^



it functioned...
Yukiko
Distro Developer
Posts: 2826
Joined: Thu Feb 02, 2006 1:41 pm

Post by Yukiko »

It is s new feature and I should have told you it is only supported in clients newer than version 4 clients (version 5 and above) I believe. I am certain nothing before version 4 supported the hue attrribute. Hope it still is of benefit to you. I know some folks still run pre version 5 clients.
Juzeph
New User
Posts: 23
Joined: Sun Apr 15, 2007 5:58 pm

Post by Juzeph »

Certain, and I use client 4.0.0.

tanks... :D

it helped me sufficiently...
Yukiko
Distro Developer
Posts: 2826
Joined: Thu Feb 02, 2006 1:41 pm

Post by Yukiko »

YAY!!!

Atleast I can help someone without sticking my foot in my mouth and acting blonde!
Post Reply