multiple messages

This forum is meant for requesting technical support or reporting bugs.

Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support

multiple messages

Postby bonzille » Wed Jan 04, 2012 11:25 am

I am starting a new game where you have several icons at the start. look speak ect. What I am after doing is when you use look icon on a character you get a discription like Its tony your best friend. I know how to do this using the action.message code but is it possible to have message change if you use the look icon from inventory twice so the messgae will change to stop starring at me

thank you
bonzille
New Member
 
Posts: 5
Joined: Fri Sep 11, 2009 7:38 pm

Postby reneuend » Wed Jan 04, 2012 1:49 pm

yes.

Create an integer variable (call it something like "nTonyLooks")
when you drag-n-drop the Look icon on the Tony character, you can use AM to switch the variable from 0 to 1, or use the advanced tab and enter:


Code: Select all
if nTonyLooks = 0 then
    action.message "This is Tony, your best friend."
else
    action.message "Stop starring at me!"
end if

nTonyLooks = nTonyLooks + 1
---


Image
Image
User avatar
reneuend
Administrator
 
Posts: 2762
Joined: Sat Nov 22, 2008 8:37 pm
Location: Midwest Cornfield, USA


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests

cron