View Single Post
 
Reply
Posted 2004-08-12, 12:11 PM in reply to Draco2003's post "Need help making a shopkeeper character!"
I don't know how that works in DW4 (Never played it) so I'm guessing you just want money to trickle in at certain times?

If that's the case, you can just set up a common event like this:

Code:
<>If timer is 0
   <>Add some gold here
   <>Reset timer
:End
<>
Basically, when that character starts the shop, you would set up an invisible timer that just counts down from that point. Every five minutes or so you'd get your "income". Obviously, you can randomize a variable and use that to add your gold, if you wish.

To make it so you have another "trickle", you just check for the presence of another switch, and add gold if he's there.


Code:
<> If timer is 0
<> Comment:  ========Normal Income==========
   <> Add some gold here
   <> Comment:  =========Shopkeeper 2==========
   <> If (xxxx:Shopkeeper2) is TRUE
      <> If (xxxx:Shopkeeper2Active) is TRUE
          <> Add more gold here
          <>
      <> Else
          <> Set (xxxx:Shopkeeper2Active) to TRUE
          <>
      :End
      <>
   :End
   <> Comment:  =========Reset Timer===========
   <> Reset timer
   <>
:End
<>
The code above waits for one cycle to add gold on the second shopkeeper (otherwise, you could gain your extra gold in a matter of seconds, if you time it right). Just say it's for setting up the shop or something.
Old
Profile PM WWW Search
BlueCube enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHzBlueCube enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHz
 
 
BlueCube