Heroes Script command.

smoochy boys on tour

ashleyuk

Dedicated Member
Dedicated Member
Loyal Member
Nov 18, 2008
2,000
23
145
Script (Requesting help)

This is just a test on how this works.. And to be fair I have no clue..

[@Main]
#IF
Checkmonmap 0 1 Risen
#ACT
Goto @Risen
#ELSESAY
Hi


[@Risen]
#ACT
SENDMSG 6 "Works"


[@Risen2]
#ACT
SENDMSG 6 "Fails"

When ever I spawn a "Risen" mob on the map it says "Works" as it should? Then when ever there isn't any monster called "Risen" on the map it still shouts out "Works". It never ever goes to "Fails" which is confusing.

I'm not sure if the command works properly.

The way I see it is that it's suppose to check if there's a monster on that map called "Risen" if so then it should go to @Risen but if there isn't then it should go to @Risen2. Which it doesn't.

Really confusing command. Please could someone explain in better detail.

Thanks

-Ash

---------- Post Merged at 11:22 PM ---------- Previous Post was at 04:17 PM ----------

Bump. (Not sure if you're allowed to do this but could really do with a hand on this command.)

Thanks

-Ash
 
Last edited:

Ardbeg

Legend
Legendary
Aug 8, 2004
3,211
1
144
260
Southern England
With my Ruby hat on, I can't see anything calling Risen2.
Try this.

Code:
[@Main]
#IF
Checkmonmap 0 1 Risen
#ACT
Goto @Risen
 #ELSEACT
Goto @Risen2

 [@Risen]
 #ACT
 SENDMSG 6 "Works"
BREAK

 [@Risen2]
 #ACT
 SENDMSG 6 "Fails"
BREAK
 
Upvote 0

ashleyuk

Dedicated Member
Dedicated Member
Loyal Member
Nov 18, 2008
2,000
23
145
I've tested this and wherever there is or isn't a "Risen" monster on the map it gives me the same result "Works". Never a "Fail".

Also another question if you don't mind.

Can you CHECK [005] 1 & SET [005] 1 on two separate NPC's

I'm sure it's possible but I could be wrong.

-Ash
 
Upvote 0