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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Geggs
Beginner


Joined: 13 Aug 2013
Posts: 14

PostPosted: Tue Aug 13, 2013 9:16 pm   

Alias for mixing colours
 
Hi,

i'm just trying to create a script that helps me to mix some ampulla with different colours.

I can fill the ampula with base colours (blue, red, yellow...) and than i can mix them e.g blue and yellow will be green.
But there are also some fake colours that i can mix e.g. yellow and green will be yellow-green or red and purple-red will be ruby.

So, i know that for healing i need a darkred ampule, so i have to mix a red and a orange-green (this is orange with green).

I know which colors i have in my pocket so i want to create an alias called darkred and this alias should mix all colours by itself.
In this case, i first need to mix an orange one with a green one and then a red one with the orange-green.
It would be perfect if the alias checks if i have the correct colours in my inv.

Not sure if my english is good enough to explain what i like :)

Regards

Geggs
Reply with quote
Shalimar2
Newbie


Joined: 16 Aug 2013
Posts: 8

PostPosted: Fri Aug 16, 2013 10:03 pm   
 
Entirely possible...
I would suggest a separate alias for each color you need to make.
You will need some triggers to populate a variable to hold the various ingredients you have on you.

#ALIAS orangegreen {mix orange and green}
#ALIAS darkred {orangegreen;mix red and orange-green}

If you nest it like this, so that any intermediary colors are only created when you need them, then you only need to make sure your primary colors are stocked up.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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