im using RandomCombat by Zagreus to start my game off and i cant add onother enemy, heres what i know is the problem but i dont know how to fix it:
mob
//Check battlearea of usr and run randomencounter proc for that area when move
Move()
switch(onbattlefield)
if ("battlearea1")
randomencounter1(src)
return ..()
else
return ..()
switch(onbattlefield)
if("battlearea2")
randomencounter2(src)
return ..()
else
return ..()
^makes it so i only fight battlearea1 not 2
I have also tried::
mob
//Check battlearea of usr and run randomencounter proc for that area when move
Move()
switch(onbattlefield)
if ("battlearea1")
randomencounter1(src)
return ..()
else if("battlearea2")
randomencounter2(src)
return ..()
else
return ..()
but this one just makes me go into battle anywere
you know why?
ID:149752
Feb 22 2002, 6:35 pm
|
|
Feb 22 2002, 7:34 pm
|
|
well than i guess i just over everyones head.
|
In response to Scoobert
|
|
Yup.
|
In response to Foomer
|
|
damn by replaying you got my hopes up on help
|
In response to Scoobert
|
|
You're welcome.
|
In response to Foomer
|
|
Hey does anyone that is a little better than foomer know the answer??
|
In response to Scoobert
|
|
No :o)
|
In response to Foomer
|
|
Weres all the smart people at??
|
In response to Scoobert
|
|
Right here. =P
|
In response to BlackDeath
|
|
than help my fist post is the ?
|
Scoobert wrote:
mob Okay, for this first one. Whenever your mob moves, its onbattlefield value is passed to the switch and you either battle or not. In either case the deafault action for Move is done and the second switch is never evaluated. //Check battlearea of usr and run randomencounter proc for that area when move As for this second one... Again, whenever your mob moves its onbattlefield value is sent to the switch and it will either evaluate to randomencounter1,randomencounter2, or not battle. Now, if onbattlefield is always set to battlearea1 or battlearea2, a battle is started. If you don't want to have a mob battle everytime, then set it's onbattlefield value to null. |
In response to tenkuu
|
|
i do set it to null but it doesnt seem to work. I makes it like on on battlefield2
|
In response to Scoobert
|
|
Under the switch, just use if not else if. You can keep the else at the end.
|
In response to tenkuu
|
|
well thats what i had right?
|