 
General Info
Main Page
Latest News
Schedule
What is it?
About Matt
About This Site
Duke Enhancements
Latest Features
Older Features
Cheat Codes
Duke Insider
Language Basics
Compile Time
Room over Room
Player Structures
UserDef Explanations
More Information
Features Database
E Duke Forum
WW2GI Enhancements
Variables
Weapon Changes
Weapon Settings
System Variables
Events
All
|

Enhanced Duke Nukem Ideas
Copyright (C) 2000, Matt Saettler. All Rights Reserved.
Criteria:
|
| IdeaID is 131 |
| No Sorting |
Ranking |
Name |
Thinker |
444 |
String Functions for values |
CONAN |
Difficulty Not Set by Matt |
Description |
Could you adopt a system sort of like the system IRC uses for scripting, where "token" states can return values as identifiers? Like this:
definequote 85 Hello, $name
$name would be gotten by this:
token name {
a bunch of code
return
} endt
So whenever $name was called, it would look for a token state called "name" that has a return statement in it, and use the returned value for
$name. So... if token name looked like this:
token name { gamevar HELLO 1 0 addvar HELLO 4 return HELLO } endt
Then the quote would say "Hello, 5". There could be a bunch of pre-defined tokens... $attacker and $victim would return the names of the attacker and the person who was killed in the game. $me would be the current player... in the player code, you could have
"ifvarvare
$attacker $me { do stuff }".
Does this make any sense? I doubt it does. |
Matt's Comments |
It does make sense, but they'll probably have to be specific commands to get this.
Also, definequote is compile time, not run time, I really need to write something up about that. And help the FAQ writers to represent it in their documents. |
|