slimeboss
icon_state = "Slime Boss.DMI"
Entered(mob/who)
var/probchance=100
who.randomencounter1(probchance,who)
i've asked before about help wit da bosses.... but here's what i have but i've tested it 3 times before its just not working, is it because i need to change the (mob/who) infront of entered?
------------------------------------------------------------
okay up there in a short story is i want to generate bosses like a random monster attack i want 1 specific turf/icon to trigger a thingy that'll make the boss attack and after 1 fight it goes away....ya'know?
ID:261710
Jan 22 2003, 2:28 pm (Edited on Jan 22 2003, 3:16 pm)
|
|
Jan 22 2003, 2:46 pm
|
|
whats your problem?please explain more clearly.
|
Elven_Hero wrote:
slimeboss Okay, where to start. <code>icon_state = "Slime Boss.DMI"</code> the icon_state variable holds the state, not the file Set the icon file with icon = 'Slime Boss.DMI' (Notice single quotes.) Next, your Entered() proc: The first arguement of Entered is a atom/movable. So: <code>Entered(atom/movable/O) if(istype(/mob,O)) var/mob/who = O var/probchance=100 who.randomencounter1(probchance,who)</code> I think that fixes up that code. If you still need help figuring out the difference between icon_state and icon, read the Refrence (F1) and a few tutorials. -<font color="#33ff33">Nova</font> |
In response to Nova2000
|
|
Nova2000 wrote:
if(istype(/mob,O)) You got that part backwards. The object you're comparing goes first, followed by the type. Lummox JR |