Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Casius
Novice


Joined: 03 Sep 2004
Posts: 34

PostPosted: Fri Feb 04, 2005 3:21 pm   

importing scripts
 
Im having a problem importing one of my scripts.

I have written a txt file with 13 triggers in it as well as 13 conditions now i have check my scripting of eact one and it seems like there is no problems.

The problem comes when i import the file it only imports 9 of my triggers and not all 13 why is it doing this?
Reply with quote
Casius
Novice


Joined: 03 Sep 2004
Posts: 34

PostPosted: Fri Feb 04, 2005 4:22 pm   
 
okay i have found my problem. I have 13 triggers but i have a few that are the same and zmud is deleteing th repeated trigger, the problem comes in even though i have 13 triggers with 4 that are the same, those 4 have different conditions but now i cant run those conditions.

If you know what i mean please help
Reply with quote
Pega
Magician


Joined: 08 Jan 2001
Posts: 341
Location: Singapore

PostPosted: Fri Feb 04, 2005 4:59 pm   
 
Perhaps you could give them unique trigger IDs.
Reply with quote
Casius
Novice


Joined: 03 Sep 2004
Posts: 34

PostPosted: Sun Feb 06, 2005 12:37 am   
 
This is what i have tried but to no avail.

#TRIGGER {You let fly at %1 with a snap kick.} {#cw high,red}
#COND {You connect to the left leg} {#add llegpoint 2} {within|param=1}

#TRIGGER {You let fly at %1 with a snap kick.} {#cw high,green}
#cond {You connect to the right leg} {#add rlegpoint 2} {within|param=1}

#TRIGGER {You ball up one fist and hammerfist %1.} {#cw high,purple}
#cond {You connect to the right leg} {#add rlegpoint 1} {within|param=1}


#TRIGGER {You ball up one fist and hammerfist %1.} {#cw high,blue}
#cond {You connect to the left leg} {#add llegpoint 1} {within|param=1}

You see my problem is that the triggers are the same for two different actions, the one kick (snap kick) targets two limbs either the left or right same with the punch (hammerfist). In the game you get points 2 points if you connect a kick and one point for a punch, depending on the opponents health level will count to how many points will break a limb, eg opponents health is 3k - 4k it only requires 8 point to break a limb, which is two kicks and 4 punches. Now i want to track which limb gets hit.

I hope you can follow my meaning.

Now if i import these triggers and conditions it only imports half of them as it sees them as duplicate triggers even though they have different conditions

If anyone can give any suggestions that would be great
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Sun Feb 06, 2005 1:22 am   
 
Give your triggers ID's as Pega suggested

#TRIGGER "uniqueIDhere" {You ball up one fist and hammerfist %1.} {#cw high,blue}
#cond {You connect to the left leg} {#add llegpoint 1} {within|param=1}
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
Casius
Novice


Joined: 03 Sep 2004
Posts: 34

PostPosted: Mon Feb 07, 2005 12:14 am   
 
Well thanks alot it works, I was confused at what a Trigger Id was but i understand now. I have changed the script and it works

Thanks All for your help
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net