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?
How to show an image to a player?
Moderator: Cheaters
-
- Member
- Posts: 58
- Joined: December 8th, 2007, 8:11 pm
-
- Member
- Posts: 77
- Joined: May 27th, 2008, 9:08 pm
Re: How to show an image to a player?
if you upload the part of the map with the picture and the trigger i would take a look.
-
- Spice Pirate
- Posts: 862
- Joined: January 29th, 2009, 5:35 pm
- Title: LHC
- Location: Canada
Re: How to show an image to a player?
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.
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:
-
- Member
- Posts: 58
- Joined: December 8th, 2007, 8:11 pm
Re: How to show an image to a player?
I did it with WEU Advanced Triggers..
[blinking]Sorry for my english ^_^[/blinking]