Im new to scripting but...

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
User avatar
Nanami
Posts: 1066
Joined: Tue Jul 15, 2003 5:13 pm
Location: That little island pritch created.
Contact:

Post by Nanami »

Chilvence wrote:One thing, it would be good if you could toggle the appearence of that readout with a key.
Sure, I could do that. How would you have it toggle? Left/right of screen? Colors, font?
User avatar
Chilvence
Posts: 1647
Joined: Mon Aug 11, 2003 6:36 pm
Contact:

Post by Chilvence »

Heh, you should be able to toggle the font colour from pink to army green! (doh...)


I meant to say toggle it appearing at all - it would be too distracting having it there constantly.
User avatar
Nanami
Posts: 1066
Joined: Tue Jul 15, 2003 5:13 pm
Location: That little island pritch created.
Contact:

Post by Nanami »

Sounds good. I'll just make a menu with options like:

Status Display:
Display (on/off)
Color of Text (red, green, blue, white, etc)
Side of Screen (left/right)
Font (if I even put fonts on it)

Any other suggestions? I'll code this in later.
User avatar
Chilvence
Posts: 1647
Joined: Mon Aug 11, 2003 6:36 pm
Contact:

Post by Chilvence »

I dont think anyone would worry about that, I think its more of a useful thing to refer to like the scoreboard in DM. My only wish would be for it to be tidy and easily readable. Maybe a background graphic would be nice though. Think of the character sheet in Hexen 2, and thats what I'd do.
User avatar
Nanami
Posts: 1066
Joined: Tue Jul 15, 2003 5:13 pm
Location: That little island pritch created.
Contact:

Post by Nanami »

Yeah, I could probably do that. Right now it's just regular text with no order to it. Maybe I'll flashy it up, put a background on it, and have it toggle on/off with a keystroke.
User avatar
Lexus Alyus
Posts: 4220
Joined: Tue Jul 15, 2003 5:07 pm
Location: Nottingham, UK
Contact:

Post by Lexus Alyus »

How would you add a background graphic to any hudmessage? I think, it wouiild be cool, then I could emulate a text message from a mobile phone or pager, or maybew even a book (like in Silent hill and stuff) with just the apropriate graphics... is that possible?

By the way, I love the MMRPG idea. If you get it running I'd happliy love to test it, I'd love to actually play a structured team fortress game where everyone follows commands and makes like it's the army or something ("Lexus, move out!" "Affirmitive" *lexus mives out and gets fragged...* :-D).

:twisted:
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Post by HotWax »

Ugh.. Please stop calling it an MMORPG....

Is Team Fortress an MMORPG? No it's an FPS.
Is Starcraft or Warcraft an MMORPG? No, they're RTS'es. Even with the hero system, Blizzard refused to call their game an RPS (Role-Playing Strategy) because they felt there wasn't enough (gasp) role-playing in it.
User avatar
Nanami
Posts: 1066
Joined: Tue Jul 15, 2003 5:13 pm
Location: That little island pritch created.
Contact:

Post by Nanami »

Heh, just thought I'd pimp a picture from the single-player mod we're working on:

Image <=-Weapon and projectiles it shoots

I haven't messed with the display yet, but I have a background to put on it.
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Post by HotWax »

Er... Are those Diablo II rune icons I see?
User avatar
Nanami
Posts: 1066
Joined: Tue Jul 15, 2003 5:13 pm
Location: That little island pritch created.
Contact:

Post by Nanami »

Yes. Instead of blue mana and green mana we have black magic and white magic.
User avatar
Lexus Alyus
Posts: 4220
Joined: Tue Jul 15, 2003 5:07 pm
Location: Nottingham, UK
Contact:

Post by Lexus Alyus »

That's cool, I love that weapon graphic :-).

Even though you didn't tell me how to add backgrounds to hud messages I think I got it. Basically (correct me if i'm wrong) you have a font made with your nifty new graphic (mobile phone or small computor screen in my case :-) ) and put that on screen with (via hudmessage) a TID of -1, then hudmessage your text with an higher TID and that should print on the image. I think that's how it would work, either way it's all cool stuff (I'm basically just trying to implement Quake 2's mission system). So, next question, how would I bring this up anytime the player pressed a specified key and get rid of it ONLY when they pressed the key again? Also, the text would have to change to reflect what I'd want it to say depending on wha tthe mission was.

:twisted:
User avatar
Nanami
Posts: 1066
Joined: Tue Jul 15, 2003 5:13 pm
Location: That little island pritch created.
Contact:

Post by Nanami »

You're correct about the background.

As far as being able to toggle it on or off, you need to make a script that disables it, and then bind a puke command to a key to us to it.
User avatar
Lexus Alyus
Posts: 4220
Joined: Tue Jul 15, 2003 5:07 pm
Location: Nottingham, UK
Contact:

Post by Lexus Alyus »

Thanks, but how do you attach puke commands to scripts?

:twisted:
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Post by HotWax »

Lexus Alyus wrote:Thanks, but how do you attach puke commands to scripts?

:twisted:
Errrrr... A puke command executes the given script... i.e:

> puke 1 -- execute script 1
> puke 100 -- execute script 100

(don't quote me on this one, but...)

> puke "127 0 18 38 0 0" -- execute script 127 with arguments 0, 18, 38, 0, and 0.

You can bind this to a key at the console, but if you want players of your WAD to have it pre-bound for them, you use a KEYCONF lump in your wad that contains new key settings and the default binds. If the defaults conflict with the player's key settings, then they won't be bound, but will show up in the controls menu while playing your game.

See LWM's great Chosen TC for an example of this.
User avatar
Lexus Alyus
Posts: 4220
Joined: Tue Jul 15, 2003 5:07 pm
Location: Nottingham, UK
Contact:

Post by Lexus Alyus »

Wow, that's really cool :-). This adds loads of flexibility to making levels :-).

:twisted:
Locked

Return to “Editing (Archive)”