Game
Starfire
11 years ago

A little bit more about the XML in Starfire


So this is the “technical” companion to the last news post. Namely, how can I rewrite the stuff in the file so that it looks good?

To start, we have three different (possibly more) XML files called “responses_something.xml” where something is a personality type. Currently, there is mean, calm, and weak. Each one of these has a section for Offensive messages, Defensive messages, and Death messages. The last one is pretty self explanatory, but the other two are a little different than they might sound. The Offensive/Defensive statements are said when the Bot is either in Offensive mode (aka aggressive) or Defensive (aka retreating). Usually these two states line up to when the bot is either chasing you or being chased by you. Within each of these is a <Message> tag, which is where the actual message goes.

Example XML for responses_Calm.xml:

<Personality>

<Offensive>

<Message>Let’s see what you’ve got.</Message>

<Message>This is gonna be fun.</Message>

</Offensive>

<Defensive>

<Message>Playing follow the leader, huh? When’s my turn?</Message>

<Message>You do a good chase, kid. I’m impressed.</Message>

</Defensive>

<Death>

<Message>See you, space cowboy.</Message>

<Message>I shoulda practiced more, huh?</Message>

</Death>

</Personality>

As time goes on there will be more things that go into these, but for now, this is it. Pretty straightforward, eh?



0 comments

Loading...

Next up

🍒Did you like the game? A demo is available for free on Steam.

✌️ Thanks for playing IndieGameiacs!

⚙️ Free Demo: http://bit.ly/UniDuni

📺 Full Video: https://youtu.be/5qEbVXg7GaQ

#steam #uniduni #clops #screenshotsaturday

Why walk when you can jump?

Very ambitious construction going on in Planet Zoo on Plays today. We're tryin'. LIVE: www.twitch.tv/dreamhackplays

blender animation experimentation, getting the hang of things fast. arms, rig, & gun models by me ofc

ooh yes..

:] me sigue sin gustar

:] I still don't like it

Our Japanese themed game released yesterday on Gamejolt + Itch io if anyone would like to check it out! :) You play as a spirit of a japanese wolf.

I hate that stupid cupcake.

(New FNAF Friday show this week) (was sick for the last few days, sorry)

After more than two years of hard work, Aeon Nightmares, a story focused horror themed platformer finally has a public demo.

Be sure to let me know what you think!

https://gamejolt.com/games/AeonNightmares/605184

Hi everyone! For screenshot saturday we showed some some new sfx sounds. Check it out [Sound On] :)