Add an event that displays an image on screen

Post » Mon Jun 18, 2012 7:40 pm

Hello again.
I'm making my second mod and I'm stuck at the very beginning.
What I want to do is to display a certain image whenever a certain action is taken by the player.

To be more specific, I'd like to show an image on screen (random x/y position would be great) for like 0.5 seconds when the player hits a target with a certain weapon.
I can't find any reference inside the Papyrus API for both importing images or showing them on screen.

Is this actually doable?

The mod is going to be a little silly but (I hope) quite funny, and I'll need this function later with a bigger mod I'm planning to do in a few weeks, so it would be great if somebody could point me to the right direction.
Thanks to anybody that will help me with this.
User avatar
Chloe Botham
 
Posts: 3537
Joined: Wed Aug 30, 2006 12:11 am

Post » Tue Jun 19, 2012 4:08 am

Hello again.
I'm making my second mod and I'm stuck at the very beginning.
What I want to do is to display a certain image whenever a certain action is taken by the player.

To be more specific, I'd like to show an image on screen (random x/y position would be great) for like 0.5 seconds when the player hits a target with a certain weapon.
I can't find any reference inside the Papyrus API for both importing images or showing them on screen.

Is this actually doable?

The mod is going to be a little silly but (I hope) quite funny, and I'll need this function later with a bigger mod I'm planning to do in a few weeks, so it would be great if somebody could point me to the right direction.
Thanks to anybody that will help me with this.

Your best bet would be to look up the elder scroll. It leaves a sort of burn-in effect on the screen when you use it. Check to see if it has any functions you can use, but it might be hardcoded / part of the UI.
User avatar
GRAEME
 
Posts: 3363
Joined: Sat May 19, 2007 2:48 am

Post » Tue Jun 19, 2012 8:01 am

How about importing it as a texture?
I mean, like the on-screen blood when you get hit, could it be possible to show a texture not when I'm hit but when I do hit somebody (maybe unarmed, with my fists?).

Ok I'll give it away :biggrin: my aim is to make a mod that shows on-screen comic-like words to simulate the old Batman series (the one with Adam West from the sixties), so that when you fight unarmed it shows THUD - POW - CRASH and silly words like those on screen, I know it's stupid but I want to give it a try.

Video reference on youtube: watch?v=Wd_nhICGCNs&t=2m58s - play at 2m58s :smile:
User avatar
Epul Kedah
 
Posts: 3545
Joined: Tue Oct 09, 2007 3:35 am

Post » Tue Jun 19, 2012 1:43 am

Hm... What about the game's title in the intro?
User avatar
James Shaw
 
Posts: 3399
Joined: Sun Jul 08, 2007 11:23 pm

Post » Tue Jun 19, 2012 3:10 am

Never did this myself, but have a look in the CK and the Wiki at Visual Effects. As far as I get it (Documentation is pretty short, maybe there are Tutorials on the topic [actually I'm pretty sure I've already come accross tutorials regarding Visual Effects in the Wiki]) they are based on nif's (so just like any of the other 3D Objects) and can also be attached to the camera, which would make it possible to create a textured plane in front of the camera that displays the text. So you could for every word create it's own visual effect. Since VisualEffect is actually a Form Type you can pass it as a property to scripts and call the play function of a randomly chosen visual effect in an OnHit Event.

That's all just guessing from looking around the wiki and the CK.
User avatar
ladyflames
 
Posts: 3355
Joined: Sat Nov 25, 2006 9:45 am

Post » Mon Jun 18, 2012 9:17 pm

Never did this myself, but have a look in the CK and the Wiki at Visual Effects. As far as I get it (Documentation is pretty short, maybe there are Tutorials on the topic [actually I'm pretty sure I've already come accross tutorials regarding Visual Effects in the Wiki]) they are based on nif's (so just like any of the other 3D Objects) and can also be attached to the camera, which would make it possible to create a textured plane in front of the camera that displays the text. So you could for every word create it's own visual effect. Since VisualEffect is actually a Form Type you can pass it as a property to scripts and call the play function of a randomly chosen visual effect in an OnHit Event.

That's all just guessing from looking around the wiki and the CK.

Thanks, that's pretty clear, but that was what I was most afraid of :D
Never used any 3D tool to make objects, I work most on scripts, not really an artist :) I hoped it would be manageable without using 3D objects, but if nobody has any idea I'll have to do a step forward and try to deal with them.

Can you suggest me any software that could make me do such a simple task? I don't think I'll start doing complex 3D models, if I've understood correctly I just need a flat transparent panel and "skin" it with my image.

Thanks a lot for your help!
User avatar
Trista Jim
 
Posts: 3308
Joined: Sat Aug 25, 2007 10:39 pm

Post » Mon Jun 18, 2012 6:31 pm

Well basically the same problem here. I'm not much an artist. During my studies I had a course about Animation (more about theoretics than practice) we used Maya there which was quite easy to understand in terms of how to create an object and put a texture on it. Maya of course is not a free software. Blender is good too but it's interface is quite confusing because it's (in my view) overloaded with funtions and information for experts. But it's fully free. Another free alternative would be GMax (I used to make light saber hilts for JKA with that) which is a tuned down version of 3DSMax stripped of anny function not necessarily needed to create game content, though I don't know if there exist any plugins to support nifs in it (just looked it up. http://niftools.sourceforge.net/wiki/Gmax/Installation aswell so that's probably your best bet).

I'd sugest getting one of them and create a simple cube. Put your texture on one side (the side facing camera if you can find that info anywhere, if not just try and test after all it's just four sides).
User avatar
Tha King o Geekz
 
Posts: 3556
Joined: Mon May 07, 2007 9:14 pm


Return to V - Skyrim