05-03-2010, 03:06 PM
^Ehm, if one of those robbers hit me, I'll be dead, dead, dead.
Anyway, I'll repeat my if-branch from last time.
iow:
[code
suedo-code]
if{Actor="SirFrog" stat="HP"}="red"
then
call{functionname="Defend"}
else
if{enemy="Village Robber 2" stat="HP"} < {enemy="Village Robber 3" stat="HP"}
then
call{functionname="Spell" spellname="Ice Bolt" target="Village Robber 2"}
else
call{functionname="Spell" spellname="Ice Bolt" target="Village Robber 3"}
[/code]
Anyway, I'll repeat my if-branch from last time.
iow:
[code
suedo-code] if{Actor="SirFrog" stat="HP"}="red"
then
call{functionname="Defend"}
else
if{enemy="Village Robber 2" stat="HP"} < {enemy="Village Robber 3" stat="HP"}
then
call{functionname="Spell" spellname="Ice Bolt" target="Village Robber 2"}
else
call{functionname="Spell" spellname="Ice Bolt" target="Village Robber 3"}
[/code]
If that didn't make sense, look here (Click to View)
| Metaknight | G-types | Bottle Skinz | Companion Cube | Art Gallery |
"Do not grieve, it is logical. The needs of the many outweigh the needs of the few, or the one."
- Mr. Spock
"A man's not dead while his name is still spoken"
- Terry Pratchett, Going Postal
"Do not grieve, it is logical. The needs of the many outweigh the needs of the few, or the one."
- Mr. Spock
"A man's not dead while his name is still spoken"
- Terry Pratchett, Going Postal

Chat
