Wingmen with Different Personalities

Post ideas & suggestions you have pertaining to the game here.
Post Reply
User avatar
Hatsuya Kanzaki
Militia Lieutenant
Militia Lieutenant
Posts: 145
Joined: Wed May 13, 2009 6:10 pm
Location: leading an armada of Realians driving sword-shaped gunships and WearGears

I wish that some wingmen can talk to you, and even program some of them to scream upon death.

BTW, how do I make a wingman say my player name?
[I'm using the Hornet wingman mod as my reference for now]

In my mod, I've planned to make some of my wingmen speak differently. Maybe it would need a table or some randomizing stuff.
Bobby
Militia Captain
Militia Captain
Posts: 675
Joined: Wed Jul 25, 2007 7:39 pm

for using the player's name try "%name%" (without quotes) in your messages.

for screaming on death, put a message in an <onDestroy> event.
User avatar
Hatsuya Kanzaki
Militia Lieutenant
Militia Lieutenant
Posts: 145
Joined: Wed May 13, 2009 6:10 pm
Location: leading an armada of Realians driving sword-shaped gunships and WearGears

I'm trying to apply that one on this line of code:
(objSendMessage gSender gSource "Okay, I'll be waiting, %name%")

but it doesn't display my character name T_T
User avatar
Prophet
Militia Captain
Militia Captain
Posts: 826
Joined: Tue Nov 18, 2008 6:09 pm

Try this:
(objSendMessage gSender gSource (cat "Okay, I'll be waiting, "%name%))

As for making dialogue, you could place your text into staticData on your wingman's ship and simply retrieve it with events.
Coming soon: The Syrtian War adventure mod!
A Turret defense genre mod exploring the worst era in Earth's history.
Can you defend the Earth from the Syrtian invaders?
Stay tuned for updates!
User avatar
alterecco
Fleet Officer
Fleet Officer
Posts: 1658
Joined: Wed Jan 14, 2009 3:08 am
Location: Previously enslaved by the Iocrym

Prophet wrote:Try this:
(objSendMessage gSender gSource (cat "Okay, I'll be waiting, "%name%))
Does that work??

If not you can use

Code: Select all

(plyComposeString gPlayer "Hello %name%")
Have a look on xelerus' function index
User avatar
Hatsuya Kanzaki
Militia Lieutenant
Militia Lieutenant
Posts: 145
Joined: Wed May 13, 2009 6:10 pm
Location: leading an armada of Realians driving sword-shaped gunships and WearGears

Prophet wrote:Try this:
(objSendMessage gSender gSource (cat "Okay, I'll be waiting, "%name%))

As for making dialogue, you could place your text into staticData on your wingman's ship and simply retrieve it with events.
You mean like the one in Arco Vaughn's? in CentauriWarlords.xml?
User avatar
Prophet
Militia Captain
Militia Captain
Posts: 826
Joined: Tue Nov 18, 2008 6:09 pm

Prophet wrote:
Try this:
(objSendMessage gSender gSource (cat "Okay, I'll be waiting, "%name%))


Does that work??

:oops: nope, it doesn't :oops:

I've been using (cat "") too much in my stations... sorry Hatsuya Kanzaki


You mean like the one in Arco Vaughn's? in CentauriWarlords.xml?
That's a great place to look. Korolov.xml has some stuff also.

If you could add some more detail about what kinds of things you want the wingmen to say, or better yet, when, we could give you a better answer as to *how* to do it. Needless to say there are many ways of making wingmen talk.
Coming soon: The Syrtian War adventure mod!
A Turret defense genre mod exploring the worst era in Earth's history.
Can you defend the Earth from the Syrtian invaders?
Stay tuned for updates!
User avatar
Hatsuya Kanzaki
Militia Lieutenant
Militia Lieutenant
Posts: 145
Joined: Wed May 13, 2009 6:10 pm
Location: leading an armada of Realians driving sword-shaped gunships and WearGears

These are the things on my mind right now.

Arcana Interceptors
Actually, the Arcana Interceptors were mostly piloted by cheery Arcana Apprentices.

If they're called, they'll say:
"Hello there, %sir% %name%!"

If they're told to attack and the target's there:
"I got one! I got one, master!"
"Sure, why not!"
"We'll hit that thing damn hard!!!"

If they're told to attack but no target available:
"Sorry dude, can't do that"
Post Reply