RESEARCHSTAT -> human-readable

Get some help with creating maps or modding.
Need a map editor or other tools, look here!
Post Reply
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

RESEARCHSTAT -> human-readable

Post by NoQ » 14 Sep 2011, 07:42

How to convert a variable of type RESEARCHSTAT to a human-readable string?

For example, suppose a RESEARCHSTAT variable contains R-Sys-Engineering01 in it. I'm looking for a funtion that will understand that the player knows this research as "Engineering" and returns this as a string.

User avatar
effigy
Regular
Regular
Posts: 1217
Joined: 22 Jan 2010, 03:21
Contact:

Re: RESEARCHSTAT -> human-readable

Post by effigy » 14 Sep 2011, 21:13

IIRC Iluvalar has compiled a list himself... sorry, I don't have a link :(
This is why some features aren't implemented: http://forums.wz2100.net/viewtopic.php?f=30&t=7490&view=unread#p87241

Per
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3777
Joined: 03 Aug 2006, 19:39

Re: RESEARCHSTAT -> human-readable

Post by Per » 15 Sep 2011, 10:25

You mean from a script? There currently does not seem to be support for this.

User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: RESEARCHSTAT -> human-readable

Post by NoQ » 15 Sep 2011, 10:51

Ok i'll try contacting Iluvalar.

Also, how artifact messages are made? Are those "you discovered an artifact for _____" messages hard-coded?

User avatar
Iluvalar
Regular
Regular
Posts: 1819
Joined: 02 Oct 2010, 18:44

Re: RESEARCHSTAT -> human-readable

Post by Iluvalar » 15 Sep 2011, 15:53

Yeah artifact are hardcoded and i tought you were talking about script so I didn't talk to you about /messages/strings/names.txt .
Heretic 2.3 improver and proud of it.

User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: RESEARCHSTAT -> human-readable

Post by NoQ » 15 Sep 2011, 19:41

Hmm i *am* talking about scripts. What else can i be talking about? :oops:

User avatar
Iluvalar
Regular
Regular
Posts: 1819
Joined: 02 Oct 2010, 18:44

Re: RESEARCHSTAT -> human-readable

Post by Iluvalar » 15 Sep 2011, 20:55

Per wrote:You mean from a script? There currently does not seem to be support for this.
Heretic 2.3 improver and proud of it.

User avatar
milo christiansen
Regular
Regular
Posts: 749
Joined: 02 Jun 2009, 21:23
Location: Perrinton Michigan

Re: RESEARCHSTAT -> human-readable

Post by milo christiansen » 15 Sep 2011, 21:00

Well I'm sure you could somehow use a big if chain, that is if you didn't mind it breaking as soon as something changed :wink:

Not entirely sure if its possible but if I remember there's a callback that fires when research is completed which may be helpful
In general, if you see glowing, pulsating things in the game, you should click on them.
- Demigod Game Ganual

Post Reply