Missing a step with hudPrint?

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Missing a step with hudPrint?

Post by Neikun »

I can't seem to figure out how to make the hudPrint function operate only when I want it to. (Lets say hooked up to a pressure plate or something)
I know I'm missing something, I've seen it done in games before.
I hope it doesn't require 'if then' scripting.
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
  • Message me to join in!
User avatar
Xzalander
Posts: 62
Joined: Thu Sep 13, 2012 1:27 pm
Location: Yorkshire, United Kingdom

Re: Missing a step with hudPrint?

Post by Xzalander »

I have my hudprint scripts as such:

Code: Select all

function intro()
 hudPrint("Those purple cladded people seemed unhinged.")

 hudPrint("More to the point, this doesnt look like any kind of sewer..")

 hudPrint("It looks like a...")
end
And then theyre just tied normally to a hidden pressure plate:

Event - Activate
Target - ScriptName (intro)
Action - Intro
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: Missing a step with hudPrint?

Post by Neikun »

Ohh. I don't have a function bracket.
All my prints are happening at the same time without trigger. lol

Thanks, this helps me understand the language a bit better.

You know the saying novice programmer? Yeah I'm lower than that. I really only understand things that are already done for the most part, and from finished code I can make new stuff. I am learning though.

Edit: You know, I was wondering why it didn't want me to type the word end on the following line, haha.

-After implementation: This works well. It'll help me explain the story in a more personal level as opposed to just scattering notes everywhere. -my dungeon features first person narration, so the adventurer is YOU!
Last edited by Neikun on Wed Sep 19, 2012 3:03 pm, edited 1 time in total.
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
  • Message me to join in!
User avatar
Xzalander
Posts: 62
Joined: Thu Sep 13, 2012 1:27 pm
Location: Yorkshire, United Kingdom

Re: Missing a step with hudPrint?

Post by Xzalander »

Haha were all in it together. My last 'programming' experience was HTML and C+ from way back 2004 and I hadn't touched coding since ;)

But yeah Function brackets and end parameters are what catch me out too.
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: Missing a step with hudPrint?

Post by Neikun »

My last programming experience was a visual basic course I barely paid attention in.
There was a running gag where we'd use me.close for buttons that were supposed to advance our programs.
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
  • Message me to join in!
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: Missing a step with hudPrint?

Post by Neikun »

While on the topic of hudPrint and text in the dungeon.
Is there any way to alter the quality of the text being displayed in a particular instance?
Lets say you wanted a word italicized? or bolded, or larger font?
Or for the more advanced, adding a custom font such as Chiller?
Font colour (could be used for a colour coded riddle)
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
  • Message me to join in!
User avatar
LunasC
Posts: 38
Joined: Sun Feb 10, 2013 1:46 pm

Re: Missing a step with hudPrint?

Post by LunasC »

Neikun wrote:While on the topic of hudPrint and text in the dungeon.
Is there any way to alter the quality of the text being displayed in a particular instance?
Lets say you wanted a word italicized? or bolded, or larger font?
Or for the more advanced, adding a custom font such as Chiller?
Font colour (could be used for a colour coded riddle)

i have been trying to figure that out for notes.
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: Missing a step with hudPrint?

Post by Neikun »

Oh wow. Old thread!

I think the official statement is now, and it'd be difficult to achieve.
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
  • Message me to join in!
User avatar
Komag
Posts: 3659
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: Missing a step with hudPrint?

Post by Komag »

You can do a little variance with gui text, font size and color, but not italics or anything else. You can always show images, so you could make an entire font of image files and code it to piece them all together, someone will probably do that at some point
Finished Dungeons - complete mods to play
User avatar
petri
Posts: 1917
Joined: Thu Mar 01, 2012 4:58 pm
Location: Finland

Re: Missing a step with hudPrint?

Post by petri »

Toorum's Quest II has a custom font like that :)
Post Reply