Wall text as an image

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
User avatar
Jouki
Posts: 127
Joined: Fri Oct 24, 2014 12:57 pm

Wall text as an image

Post by Jouki »

Hello, can you help me clarify if it's even possible?
User avatar
Lark
Posts: 178
Joined: Wed Sep 19, 2012 4:23 pm
Location: Springfield, MO USA

Re: Wall text as an image

Post by Lark »

I'm not the best person to answer this, but since no one has said anything, I'd say that yes, it is possible. It is possible to create any object you desire, including a graphical object with text, and place it anywhere in the game you desire, including on a wall. How? Uh, I'm more of a scripter and not a 3D artist! Check out the Skuggasveinn's tutorials viewtopic.php?f=22&t=7055and note the making of the bows and the breakable walls ones specifically. I'm going to do this myself... someday! Good Luck, -Lark
User avatar
Doridion
Posts: 256
Joined: Tue Jun 10, 2014 9:23 pm

Re: Wall text as an image

Post by Doridion »

Hmmm, Jouki, not sure about that, but can't you hard script ( in the object definition ) your wall text comportement like a scroll or spawning a text scroll like there ?
User avatar
Jouki
Posts: 127
Joined: Fri Oct 24, 2014 12:57 pm

Re: Wall text as an image

Post by Jouki »

Doridion wrote:Hmmm, Jouki, not sure about that, but can't you hard script ( in the object definition ) your wall text comportement like a scroll or spawning a text scroll like there ?

Actaully I'm not sure I was thinking about that.
User avatar
Jouki
Posts: 127
Joined: Fri Oct 24, 2014 12:57 pm

Re: Wall text as an image

Post by Jouki »

Lark wrote:I'm not the best person to answer this, but since no one has said anything, I'd say that yes, it is possible. It is possible to create any object you desire, including a graphical object with text, and place it anywhere in the game you desire, including on a wall. How? Uh, I'm more of a scripter and not a 3D artist! Check out the Skuggasveinn's tutorials viewtopic.php?f=22&t=7055and note the making of the bows and the breakable walls ones specifically. I'm going to do this myself... someday! Good Luck, -Lark

yeah but's little bit overkill :D

I mean showing the image after click(, instead of text)
User avatar
Doridion
Posts: 256
Joined: Tue Jun 10, 2014 9:23 pm

Re: Wall text as an image

Post by Doridion »

Can you can clarify your idea please ? Y thought that you expect something like that :
SpoilerShow
Image
The code i made

Code: Select all

defineObject{
   name = "wall_text_image",
   baseObject = "dungeon_wall_text",
   components = {
    {
      class = "Model",
      model = "assets/models/env/dungeon_wall_text.fbx",
    },
    {
      class = "WallText",
      onShowText = function(self)
        GameMode.showImage("mod_assets/textures/pictures/example.tga")
      end
    },
    placement = "wall",
    replacesWall = true,
    editorIcon = 28,
  }
}
Edit : Updated my definition and works most fine, only thing is that seems a text must be entered after the image was shown. More else, the image must be as usual, in dds format ( .tga file )
User avatar
Jouki
Posts: 127
Joined: Fri Oct 24, 2014 12:57 pm

Re: Wall text as an image

Post by Jouki »

I'm sorry, I've misunderstood you. yeah your code is what I meant. however it's little bit glitchy but I really appreciate your kindness. :)
Post Reply