RETURN: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
LordMisfit (talk | contribs)
m Giving an example of RETURN used with 'espawn'
LordMisfit (talk | contribs)
mNo edit summary
Line 6: Line 6:


onevent GETLOADTILE
onevent GETLOADTILE
setvar RETURN <value>
setvar RETURN <value>
endevent
endevent


In this case, RETURN, well, 'return's the load screen background number into the var RETURN, setting it to something else changes it, changing the background for the loading screen.
In this case, RETURN, well, 'return's the load screen background number into the var RETURN, setting it to something else changes it, changing the background for the loading screen.
Line 14: Line 17:


espawn LIZTROOP
espawn LIZTROOP
setactor[RETURN].pal 21
setactor[RETURN].pal 21
setactor[RETURN].extra 400
setactor[RETURN].extra 400


In this case, RETURN will allow you to spawn an Assault Captain [LIZTROOP, Pal 21] with 400 health instead of 60 health.
In this case, RETURN will allow you to spawn an Assault Captain [LIZTROOP, Pal 21] with 400 health instead of 60 health.

Revision as of 22:40, 15 October 2007

The 'SuperVar'!!

This variable is constantly used to 'return' important values, such as those in events.

EXAMPLE:

onevent GETLOADTILE

setvar RETURN <value>

endevent


In this case, RETURN, well, 'return's the load screen background number into the var RETURN, setting it to something else changes it, changing the background for the loading screen.

EXAMPLE 2:

espawn LIZTROOP

setactor[RETURN].pal 21

setactor[RETURN].extra 400


In this case, RETURN will allow you to spawn an Assault Captain [LIZTROOP, Pal 21] with 400 health instead of 60 health.