Game
Starfire
10 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

Back in my art school days I used to ride the 710 COPSA line from Parque Del Plata to Montevideo almost everyday. This is the Marcopolo Viaggio G4 Mercedes Benz model from the late 80s, one of the older bus models that was running on the line.

Update 2.627

New challenges & new effects!

Horror WIP A track that will be featured in a future horror game soundtrack! Stay tuned!

Likes appreciated ✌️

#gamedev #composer #horrorgame #indiegame #IndieGameDev #soundtrack

Szayel Aporro Granz - Bleach

Let me introduce you to the new Mech line: Gendai Spec. Those are Mech that specializes in surprise attacks, covered operations, and stealth. They are equipped with melee weapons but one of Gendai's frames supports sniper rifles.

Made my first ever animation.

Our menu, gathered a huge feedback and positive comments among foreign audience, what you say? Game Steam: https://store.steampowered.com/app/1543090/LiBER/

Super Sonic Pixel art.

Hello my space friends! Now I added a space background to the ship. I love that space look but I still feel like stuff is missing. The lighting on the ship needs some improvements I think. Please tell me your opinion!

Hey you, rookie! Yes, I am talking to you!! Come over here? Relax! Just stick to me and everything will be fine. By the way, my name is James Varhuher, but you can call me Big J. I will bring you up to speed.