Author Topic: Wait command  (Read 2719 times)

0 Members and 1 Guest are viewing this topic.

Offline 12TimesOverTopic starter

  • Another Day, Another Vendetta
  • Global Moderator
  • *
  • *
  • Posts: 3694
  • Activity:
    0%
  • Reputation Power: 41
  • 12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.
  • Gender: Male
  • Respect: +321
  • Referrals: 2
    • View Profile
Wait command
« on: August 12, 2011, 11:06:09 AM »
0
Can anyone tell me if the Wait command supports the use of an equation as the value or if it requires the actual value to be set first? For example -

I know I can do this:
Code: [Select]
set %Wait 50
Wait %Wait

But can I do this?
Code: [Select]
Wait ( 25 + 25 )
Or, more imporatantly, I know that I can do this:
Code: [Select]
gosub PoisonItem
set %TempSCNT2 #SCNT2
gosub CureAndHeal
set %PoisWait 180 - ( ( #SCNT2 - %TempSCNT2 ) * 2 ) ;set %PoisWait to 9 seconds minus the time that already went by during the Healing/Curing sub call
wait %PoisWait

But can I do this?
Code: [Select]
gosub PoisonItem
set %TempSCNT2 #SCNT2
gosub CureAndHeal
Wait 180 - ( ( #SCNT2 - %TempSCNT2 ) * 2 ) ;Same as above without first setting the variable

X
« Last Edit: August 12, 2011, 11:08:48 AM by 12TimesOver »
When they come for me I'll be sitting at my desk
     with a gun in my hand wearing a bulletproof vest
My, my, my how the time does fly
     when you know you're gonna die by the end of the night

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13302
  • Activity:
    0.2%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: Wait command
« Reply #1 on: August 12, 2011, 12:15:55 PM »
0
That's a good question.  There are times when the EUO parser doesn't parse out what you think might be logical.  Good cases in point are found in the menu commands as well as the display command.
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline 12TimesOverTopic starter

  • Another Day, Another Vendetta
  • Global Moderator
  • *
  • *
  • Posts: 3694
  • Activity:
    0%
  • Reputation Power: 41
  • 12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.
  • Gender: Male
  • Respect: +321
  • Referrals: 2
    • View Profile
Re: Wait command
« Reply #2 on: August 12, 2011, 02:42:05 PM »
0
K, made it home from work and had a chance to test a little. Looks like it won't parse the equation, it needs to have the variable set first then the variable used.

wait 20 - resulted in a 1 second wait as expected
wait 10 + 10 - resulted in a .5 second wait, the + 10 was ignored
wait ( 10 + 10 ) - resulted in no wait at all

So there we go...

X
When they come for me I'll be sitting at my desk
     with a gun in my hand wearing a bulletproof vest
My, my, my how the time does fly
     when you know you're gonna die by the end of the night

Offline gimlet

  • Very Super Secret
  • Global Moderator
  • *
  • *
  • Posts: 6206
  • Activity:
    3%
  • Reputation Power: 71
  • gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!
  • Gender: Male
  • Respect: +274
  • Referrals: 3
    • View Profile
Re: Wait command
« Reply #3 on: August 12, 2011, 04:01:56 PM »
0
How about

wait %wait - 10

Offline 12TimesOverTopic starter

  • Another Day, Another Vendetta
  • Global Moderator
  • *
  • *
  • Posts: 3694
  • Activity:
    0%
  • Reputation Power: 41
  • 12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.
  • Gender: Male
  • Respect: +321
  • Referrals: 2
    • View Profile
Re: Wait command
« Reply #4 on: August 12, 2011, 04:23:34 PM »
0
How about

wait %wait - 10
It waited only the value of %wait, ignoring the equation following the variable.

X
When they come for me I'll be sitting at my desk
     with a gun in my hand wearing a bulletproof vest
My, my, my how the time does fly
     when you know you're gonna die by the end of the night

Offline Crome969

  • Elite
  • *
  • *
  • Posts: 2098
  • Activity:
    0%
  • Reputation Power: 25
  • Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.
  • Gender: Male
  • UO Enthusiast
  • Respect: +211
  • Referrals: 10
    • View Profile
    • ScriptSDK
Re: Wait command
« Reply #5 on: August 14, 2011, 12:12:36 PM »
0
In Openuo it would work as you like:
Code: [Select]
wait((((2*75)+(7.5*3))/3.5))as extreme sample.
in easyuo i think you must do:
Code: [Select]
set %Curwait ( 10 *4) + (3*2)
wait %Curwait
Hope it Helps...

Crome

Offline 12TimesOverTopic starter

  • Another Day, Another Vendetta
  • Global Moderator
  • *
  • *
  • Posts: 3694
  • Activity:
    0%
  • Reputation Power: 41
  • 12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.
  • Gender: Male
  • Respect: +321
  • Referrals: 2
    • View Profile
Re: Wait command
« Reply #6 on: August 14, 2011, 04:26:53 PM »
0
In Openuo it would work as you like:
Code: [Select]
wait((((2*75)+(7.5*3))/3.5))as extreme sample.
in easyuo i think you must do:
Code: [Select]
set %Curwait ( 10 *4) + (3*2)
wait %Curwait
Hope it Helps...
Thanks m8. I'm good as far as setting the variable first, I do that all the time. I was just wondering if the parser would allow you to set the equation as the wait time directly but seems like no dice.

Sounds like OpenEUO handles things a little more efficiently.

X
When they come for me I'll be sitting at my desk
     with a gun in my hand wearing a bulletproof vest
My, my, my how the time does fly
     when you know you're gonna die by the end of the night

Offline Crome969

  • Elite
  • *
  • *
  • Posts: 2098
  • Activity:
    0%
  • Reputation Power: 25
  • Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.
  • Gender: Male
  • UO Enthusiast
  • Respect: +211
  • Referrals: 10
    • View Profile
    • ScriptSDK
Re: Wait command
« Reply #7 on: August 14, 2011, 09:12:27 PM »
0
Well Compared to Openuo, euo goes allways the harder, more stupid, and less free controlable way.
But for having just one Result, euo gives you a clear path to it, no exception.

Crome

Tags: