How to show an image to a player?

For fulfilled maps that most likely don't work on the latest patch (1.24 or later).

Moderator: Cheaters

User avatar
br3akth3w1nd
Member
Posts: 58
Joined: December 8th, 2007, 8:11 pm

How to show an image to a player?

Post by br3akth3w1nd »

I cant figure out how can I show an image to a player? For example, the player uses an item and then an image splashes on his screen. I know its possible because I've seen it in other maps like Fight of Characters, Loap and other...

Edit: I made a little research and I found out that it needs a .blp image. Ok, I converted my .JPG image into a .TGA and then with wc3 Viewer I converted the .TGA image into a .BLP picture. But something didnt work out like it supposed to. When I converted the .TGA into .BLP it was 0kb large... thats impossible. Even so, I imported it into my map and when I try to use it the game crashes.. can somebody help me?

Edit2: Ok, I found out how, I converted the picture with war3 Model Editor and than I imported it into my map.. :)

Edit3: I cant figure out how to show the picture to only one player :? Can someone help me?
[blinking]Sorry for my english ^_^[/blinking]
Rich Kane
Member
Posts: 77
Joined: May 27th, 2008, 9:08 pm

Re: How to show an image to a player?

Post by Rich Kane »

if you upload the part of the map with the picture and the trigger i would take a look.
User avatar
Ken
Spice Pirate
Posts: 862
Joined: January 29th, 2009, 5:35 pm
Title: LHC
Location: Canada

Re: How to show an image to a player?

Post by Ken »

Convert the code to custom text, then find the line(s) that say "call ShowImageBJ( true, GetLastCreatedImage() )" or something similar.

Edit that line to this:
And pretend p is a local variable for the player you wanna show it to.

Code: Select all

if ( GetLocalPlayer() == p ) then
call ShowImageBJ( true, GetLastCreatedImage() )
endif
Spoiler:
xkiska wrote:BARTIMEAUS is more understandable then u
Senethior459 wrote:Wow, Dream Theatre reminds me of Dragonforce, but with real skill.
Ozzapoo wrote:We laughed, we cried. Trashed.
FatherSpace: You don't find smart chicks hawt?
GeorgeMots: not anymore, im fed up with that kind of girls
FatherSpace: lol
FatherSpace: What happened?
GeorgeMots: most smart girls find out that i date/do/see other girls....
FatherSpace: ...
FatherSpace: So monogamy is your enemy?
Bartimaeus: Hmm, well, I hope my sister hasn't been kidnapped.
FatherSpace: What happened, Bart?
Bartimaeus: She walked out of the house saying that she was going over to some friends, and it's been like two hours, and my mom is trying to get a hold of her, which she's been unable to.
Bartimaeus: I can also hear three car alarms going off.
GeorgeMots: how old is she?
Bartimaeus: I haven't a clue. Probably 17.
UndeadxAssassin: wut
AbusivePie: You don't know how old your sister is?
Bartimaeus: Nope.
UndeadxAssassin: Epic fail
GeorgeMots: is she cute??
Bartimaeus: So, uh, how about you get into the Christmas spirit and put that avatar on before I do it myself and take away your bloody avatar-changin' rights?
UndeadxAssassin: If I thought of a random one...
UndeadxAssassin: Like....
UndeadxAssassin: I'll get back to you on that
User avatar
br3akth3w1nd
Member
Posts: 58
Joined: December 8th, 2007, 8:11 pm

Re: How to show an image to a player?

Post by br3akth3w1nd »

I did it with WEU Advanced Triggers.. :P
[blinking]Sorry for my english ^_^[/blinking]